Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.jst.j2ee.core/mofj2ee')
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/ejb.properties51
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/ejb_de.properties51
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/ejb_es.properties51
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/ejb_fr.properties51
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/ejb_it.properties51
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/ejb_ja.properties51
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/ejb_ko.properties51
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/ejb_pt_BR.properties51
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/ejb_zh.properties51
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/ejb_zh_TW.properties51
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/j2eeplugin.properties16
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/j2eeplugin_de.properties16
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/j2eeplugin_es.properties16
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/j2eeplugin_fr.properties16
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/j2eeplugin_it.properties16
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/j2eeplugin_ja.properties16
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/j2eeplugin_ko.properties16
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/j2eeplugin_pt_BR.properties16
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/j2eeplugin_zh.properties16
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/j2eeplugin_zh_TW.properties16
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/j2eexml.properties28
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/j2eexml_de.properties28
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/j2eexml_es.properties28
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/j2eexml_fr.properties28
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/j2eexml_it.properties28
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/j2eexml_ja.properties28
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/j2eexml_ko.properties28
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/j2eexml_pt_BR.properties28
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/j2eexml_zh.properties28
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/j2eexml_zh_TW.properties28
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/mofj2ee.properties28
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/mofj2ee_de.properties28
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/mofj2ee_es.properties28
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/mofj2ee_fr.properties28
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/mofj2ee_it.properties28
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/mofj2ee_ja.properties28
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/mofj2ee_ko.properties28
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/mofj2ee_pt_BR.properties28
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/mofj2ee_zh.properties28
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/mofj2ee_zh_TW.properties28
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/Application.java116
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/ApplicationFactory.java73
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/ApplicationPackage.java353
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/ApplicationResource.java18
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/ConnectorModule.java23
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/EjbModule.java24
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/JavaClientModule.java24
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/Module.java75
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/WebModule.java38
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/impl/ApplicationFactoryImpl.java121
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/impl/ApplicationImpl.java434
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/impl/ApplicationPackageImpl.java364
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/impl/ApplicationResourceFactory.java70
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/impl/ApplicationResourceImpl.java147
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/impl/ConnectorModuleImpl.java176
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/impl/EjbModuleImpl.java177
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/impl/JavaClientModuleImpl.java177
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/impl/ModuleImpl.java307
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/impl/WebModuleImpl.java233
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/util/ApplicationAdapterFactory.java248
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/util/ApplicationSwitch.java254
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/client/ApplicationClient.java212
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/client/ApplicationClientResource.java19
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/client/ClientFactory.java42
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/client/ClientPackage.java277
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/client/ResAuthApplicationType.java133
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/client/impl/ApplicationClientImpl.java606
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/client/impl/ApplicationClientResourceFactory.java71
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/client/impl/ApplicationClientResourceImpl.java154
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/client/impl/ClientFactoryImpl.java101
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/client/impl/ClientPackageImpl.java321
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/client/util/ClientAdapterFactory.java158
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/client/util/ClientSwitch.java140
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/CommonFactory.java230
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/CommonPackage.java2106
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/CompatibilityDescriptionGroup.java146
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/DeploymentExtension.java103
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/Description.java101
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/DescriptionGroup.java89
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/DisplayName.java99
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/EJBLocalRef.java46
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/EjbRef.java196
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/EjbRefType.java126
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/EnvEntry.java142
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/EnvEntryType.java266
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/ExtensibleType.java58
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/IconType.java152
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/Identity.java75
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/J2EEVersionResource.java26
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/J2EEXMIResource.java58
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/J2EEXMIResourceFactory.java51
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/JNDIEnvRefsGroup.java160
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/Listener.java71
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/MessageDestination.java86
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/MessageDestinationRef.java189
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/MessageDestinationUsageType.java166
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/ParamValue.java145
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/QName.java150
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/ResAuthTypeBase.java173
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/ResSharingScopeType.java126
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/ResourceEnvRef.java99
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/ResourceRef.java206
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/RunAsSpecifiedIdentity.java40
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/SecurityIdentity.java61
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/SecurityRole.java68
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/SecurityRoleRef.java86
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/UseCallerIdentity.java25
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/XMLResource.java88
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/CommonFactoryImpl.java369
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/CommonPackageImpl.java1502
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/CompatibilityDescriptionGroupImpl.java601
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/DescriptionGroupAdapter.java119
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/DescriptionGroupImpl.java221
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/DescriptionImpl.java218
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/DisplayNameImpl.java218
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/EJBLocalRefImpl.java333
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/EjbRefImpl.java514
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/EnvEntryImpl.java371
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/IconTypeImpl.java272
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/IdentityImpl.java248
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/J2EEResouceFactorySaxRegistry.java53
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/J2EEResourceFactoryDomRegistry.java61
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/J2EEResourceFactoryRegistry.java30
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/JNDIEnvRefsGroupImpl.java454
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/ListenerImpl.java267
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/MessageDestinationImpl.java262
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/MessageDestinationRefImpl.java412
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/ParamValueImpl.java331
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/QNameImpl.java416
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/ResourceEnvRefImpl.java323
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/ResourceRefImpl.java508
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/RunAsSpecifiedIdentityImpl.java193
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/SecurityIdentityImpl.java214
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/SecurityRoleImpl.java289
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/SecurityRoleRefImpl.java288
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/UseCallerIdentityImpl.java137
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/XMLResourceFactory.java53
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/XMLResourceImpl.java261
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/util/CommonAdapterFactory.java464
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/util/CommonSwitch.java571
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/util/CommonUtil.java82
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/util/Defaultable.java21
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/util/DefaultedAdapterImpl.java64
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/util/Defaultor.java29
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/util/IDUtility.java77
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/util/XmlSpecifiedDataAdapter.java31
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/AcknowledgeMode.java125
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/ActivationConfig.java81
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/ActivationConfigProperty.java108
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/AssemblyDescriptor.java120
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/CMPAttribute.java97
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/CMRField.java52
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/CommonRelationship.java29
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/CommonRelationshipRole.java110
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/ContainerManagedEntity.java235
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/DestinationType.java126
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/EJBExtensionFilter.java72
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/EJBJar.java231
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/EJBMethodCategory.java23
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/EJBRelation.java126
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/EJBRelationshipRole.java307
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/EJBResource.java38
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/EjbFactory.java182
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/EjbMethodElementComparator.java81
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/EjbMethodElementHelper.java435
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/EjbPackage.java2775
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/EnterpriseBean.java328
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/Entity.java103
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/ExcludeList.java70
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/IRoleShapeStrategy.java34
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/MessageDriven.java281
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/MessageDrivenDestination.java132
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/MethodElement.java368
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/MethodElementKind.java214
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/MethodPermission.java148
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/MethodTransaction.java139
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/MultiplicityKind.java126
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/Query.java197
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/QueryMethod.java45
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/Relationships.java82
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/ReturnTypeMapping.java126
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/RoleSource.java84
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/Session.java163
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/SessionType.java126
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/SubscriptionDurabilityKind.java126
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/TransactionAttributeType.java206
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/TransactionType.java126
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/AbstractRelationshipRoleAttributeFilter.java99
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/AbstractRequiredRelationshipRoleFilter.java115
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/ActivationConfigImpl.java191
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/ActivationConfigPropertyImpl.java218
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/AssemblyDescriptorImpl.java483
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/CMPAttributeImpl.java605
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/CMRFieldImpl.java470
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/ContainerManagedEntityFilter.java101
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/ContainerManagedEntityImpl.java1142
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/EJB20FlattenedRoleShapeStrategy.java157
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/EJBJarImpl.java817
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/EJBJarResourceFactory.java71
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/EJBMethodCategoryImpl.java41
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/EJBRelationImpl.java449
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/EJBRelationshipRoleImpl.java1012
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/EJBResourceImpl.java211
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/EjbFactoryImpl.java503
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/EjbPackageImpl.java1772
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/EnterpriseBeanImpl.java1447
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/EntityImpl.java643
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/ExcludeListImpl.java245
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/KeyRelationshipRoleAttributeFilter.java93
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/KeyRelationshipRoleFilter.java56
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/LocalKeyAttributeFilter.java102
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/LocalModelledPersistentAttributeFilter.java59
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/LocalOppositeRelationshipRoleFilter.java57
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/LocalPersistentAttributeFilter.java103
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/LocalRelationshipRoleAttributeFilter.java92
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/LocalRelationshipRoleKeyAttributeFilter.java52
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/MessageDrivenDestinationImpl.java359
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/MessageDrivenImpl.java982
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/MethodElementImpl.java1039
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/MethodPermissionImpl.java465
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/MethodTransactionImpl.java432
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/ModelledKeyAttributeFilter.java105
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/ModelledPersistentAttributeFilter.java105
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/NonKeyRequiredRoleFilter.java61
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/QueryImpl.java513
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/QueryMethodImpl.java373
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/RelationshipRoleAttributeFilter.java92
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/RelationshipsImpl.java313
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/RequiredLocalRelationshipRoleFilter.java91
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/RequiredRelationshipRoleFilter.java60
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/RoleShapeStrategy.java171
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/RoleSourceImpl.java330
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/SessionImpl.java670
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/SupertypeCMPAttributeFilter.java117
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/util/CMPFieldDescriptor.java66
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/util/CMPHelper.java263
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/util/CMPKeySynchronizationAdapter.java398
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/util/CommonRelationshipAttributeMaintenanceAdapter.java173
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/util/ConvertedEJBAdapter.java68
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/util/EJBAttributeMaintenanceFactoryImpl.java47
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/util/EJBRelationAttributeMaintenanceAdapter.java46
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/util/EjbAdapterFactory.java607
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/util/EjbSwitch.java743
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/util/MethodElementHelper.java61
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/util/RelationshipsAttributeMaintenanceAdapter.java57
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/DefaultEJBModelExtenderProvider.java51
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/EJBModelExtenderManager.java59
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/EjbModuleExtensionHelper.java42
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/ExceptionHelper.java59
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/IEJBModelExtenderManager.java37
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/IEJBModelExtenderProvider.java41
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/IWrappedException.java35
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/J2EEConstants.java162
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/J2EEInit.java229
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/J2EEModuleExtensionHelper.java29
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/J2EEVersionConstants.java71
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/MOFJ2EEResourceHandler.java57
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/WrappedException.java91
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/WrappedRuntimeException.java94
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/application/ApplicationTranslator.java90
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/application/ModuleTranslator.java144
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/client/ApplicationClientTranslator.java94
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/common/BooleanTranslator.java60
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/common/CommonTranslators.java423
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/common/EnvEntryTranslator.java77
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/common/EnvEntryTypeTranslator.java47
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/common/JavaClassTranslator.java120
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/common/ResAuthTranslator.java92
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/connector/ConnectorTranslator.java300
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/ejb/AbstractEJBTranslator.java146
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/ejb/AcknowledgeModeTranslator.java59
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/ejb/CMPFieldTranslator.java103
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/ejb/CMPVersionTranslator.java50
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/ejb/ContainerManagedEntityTranslator.java447
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/ejb/EJBJarTranslator.java426
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/ejb/EnterpriseBeansTranslator.java87
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/ejb/EntityTranslator.java118
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/ejb/MessageDrivenDestinationTypeTranslator.java62
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/ejb/MessageDrivenTranslator.java179
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/ejb/MethodElementKindTranslator.java74
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/ejb/MethodParamsTranslator.java103
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/ejb/MultiplicityTranslator.java49
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/ejb/PrimKeyFieldTranslator.java65
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/ejb/SecurityIdentityTranslator.java106
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/ejb/SessionTranslator.java92
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/webapplication/ErrorPageTranslator.java76
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/webapplication/WebAppTranslator.java548
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/webapplication/WebTypeTranslator.java86
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/webservices/EJBLinkTranslator.java64
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/webservices/ElementNameTranslator.java63
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/webservices/InterfaceMappingTranslator.java301
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/webservices/JaxrpcmapTranslator.java225
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/webservices/JaxrpcmapXmlMapperI.java66
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/webservices/SOAPRoleTranslator.java66
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/webservices/ServletLinkTranslator.java65
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/webservices/WebServiceCommonXmlMapperI.java40
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/webservices/WebServicesTranslator.java158
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/webservices/WsddTranslator.java281
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/webservices/WsddXmlMapperI.java35
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/xml/CollectingErrorHandler.java61
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/xml/DeploymentDescriptorXmlMapperI.java102
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/xml/EarDeploymentDescriptorXmlMapperI.java32
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/xml/EjbDeploymentDescriptorXmlMapperI.java85
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/xml/GeneralXmlDocumentReader.java329
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/xml/J2EEXMLResourceHandler.java57
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/xml/J2EEXmlDtDEntityResolver.java126
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/xml/MissingRequiredDataException.java33
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/xml/NotSupportedException.java50
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/xml/RarDeploymentDescriptorXmlMapperI.java64
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/xml/WarDeploymentDescriptorXmlMapperI.java81
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/xml/WebServicesDeploymentDescriptorXmlMapperI.java32
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/xml/XMLParseResourceHandler.java58
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/xml/XmlDocumentReader.java85
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/ActivationSpec.java96
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/AdminObject.java130
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/AuthenticationMechanism.java463
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/AuthenticationMechanismType.java126
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/ConfigProperty.java125
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/ConnectionDefinition.java255
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/Connector.java126
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/ConnectorResource.java23
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/InboundResourceAdapter.java71
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/JcaFactory.java288
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/JcaPackage.java2087
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/License.java89
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/MessageAdapter.java58
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/MessageListener.java104
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/OutboundResourceAdapter.java203
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/RequiredConfigPropertyType.java88
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/ResourceAdapter.java326
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/SecurityPermission.java75
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/TransactionSupportKind.java146
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/impl/ActivationSpecImpl.java223
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/impl/AdminObjectImpl.java277
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/impl/AuthenticationMechanismImpl.java866
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/impl/ConfigPropertyImpl.java357
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/impl/ConnectionDefinitionImpl.java439
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/impl/ConnectorImpl.java508
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/impl/ConnectorResourceFactory.java67
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/impl/ConnectorResourceImpl.java180
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/impl/InboundResourceAdapterImpl.java181
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/impl/JcaFactoryImpl.java422
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/impl/JcaPackageImpl.java2107
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/impl/LicenseImpl.java275
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/impl/MessageAdapterImpl.java154
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/impl/MessageListenerImpl.java248
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/impl/OutboundResourceAdapterImpl.java383
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/impl/RequiredConfigPropertyTypeImpl.java223
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/impl/ResourceAdapterImpl.java817
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/impl/SecurityPermissionImpl.java246
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/util/JCADescriptionHelper.java157
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/util/JcaAdapterFactory.java392
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/util/JcaSwitch.java427
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jsp/JSPConfig.java73
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jsp/JSPPropertyGroup.java340
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jsp/JspFactory.java68
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jsp/JspPackage.java447
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jsp/TagLibRefType.java106
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jsp/impl/JSPConfigImpl.java191
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jsp/impl/JSPPropertyGroupImpl.java637
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jsp/impl/JspFactoryImpl.java102
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jsp/impl/JspPackageImpl.java398
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jsp/impl/TagLibRefTypeImpl.java218
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jsp/util/JspAdapterFactory.java196
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jsp/util/JspSwitch.java184
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/migration/Connector14SpecificationMigrator.java135
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/migration/J2EEMigrationMultiStatus.java114
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/migration/J2EEMigrationStatus.java232
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/migration/J2EESpecificationMigrationConstants.java39
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/migration/J2EESpecificationMigrator.java484
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/migration/SpecificationMigrator.java209
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/migration/War14SpecificationMigrator.java202
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/BodyContentType.java178
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/ExtensibleType.java58
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/Function.java206
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/JSPScriptingVariableScope.java151
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/JSPTag.java227
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/JSPTagAttribute.java186
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/JSPVariable.java125
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/TagFile.java148
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/TagLib.java162
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/TaglibFactory.java95
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/TaglibPackage.java1053
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/TldExtension.java76
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/Validator.java74
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/impl/ExtensibleTypeImpl.java164
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/impl/FunctionImpl.java431
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/impl/JSPTagAttributeImpl.java473
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/impl/JSPTagImpl.java599
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/impl/JSPVariableImpl.java397
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/impl/TagFileImpl.java370
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/impl/TagLibImpl.java594
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/impl/TaglibFactoryImpl.java183
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/impl/TaglibPackageImpl.java851
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/impl/TldExtensionImpl.java223
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/impl/ValidatorImpl.java245
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/util/TaglibAdapterFactory.java303
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/util/TaglibSwitch.java318
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/AuthConstraint.java86
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/AuthMethodKind.java191
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/ContextParam.java82
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/DispatcherType.java194
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/ErrorCodeErrorPage.java46
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/ErrorPage.java61
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/ExceptionTypeErrorPage.java57
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/Filter.java96
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/FilterMapping.java104
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/FormLoginConfig.java72
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/HTTPMethodType.java54
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/HTTPMethodTypeEnum.java277
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/InitParam.java71
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/JSPType.java47
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/LocalEncodingMapping.java85
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/LocalEncodingMappingList.java49
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/LoginConfig.java148
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/MimeMapping.java71
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/ResAuthServletType.java130
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/RoleNameType.java44
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/SecurityConstraint.java120
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/Servlet.java186
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/ServletMapping.java102
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/ServletType.java44
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/SessionConfig.java82
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/TagLibRef.java90
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/TransportGuaranteeType.java151
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/URLPatternType.java70
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/UserDataConstraint.java129
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/WebApp.java363
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/WebAppResource.java42
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/WebResourceCollection.java147
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/WebType.java35
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/WebapplicationFactory.java215
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/WebapplicationPackage.java2128
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/WelcomeFile.java57
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/WelcomeFileList.java53
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/AuthConstraintImpl.java318
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/ContextParamImpl.java332
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/ErrorCodeErrorPageImpl.java233
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/ErrorPageImpl.java258
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/ExceptionTypeErrorPageImpl.java248
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/FilterImpl.java387
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/FilterMappingImpl.java341
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/FormLoginConfigImpl.java291
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/HTTPMethodTypeImpl.java164
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/InitParamImpl.java237
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/JSPTypeImpl.java153
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/LocalEncodingMappingImpl.java218
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/LocalEncodingMappingListImpl.java154
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/LoginConfigImpl.java445
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/MimeMappingImpl.java290
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/RoleNameTypeImpl.java147
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/SecurityConstraintImpl.java449
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/ServletImpl.java699
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/ServletMappingImpl.java349
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/ServletTypeImpl.java150
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/SessionConfigImpl.java281
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/TagLibRefImpl.java296
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/URLPatternTypeImpl.java243
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/UserDataConstraintImpl.java376
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/WebAppImpl.java1399
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/WebAppResourceFactory.java91
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/WebAppResourceImpl.java201
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/WebResourceCollectionImpl.java499
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/WebTypeImpl.java61
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/WebapplicationFactoryImpl.java402
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/WebapplicationPackageImpl.java1833
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/WelcomeFileImpl.java245
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/WelcomeFileListImpl.java234
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/util/WebapplicationAdapterFactory.java700
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/util/WebapplicationSwitch.java776
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/WebServiceConstants.java45
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/WebServiceInit.java60
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/util/DescriptionGroupHelper.java1577
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/util/DescriptionGroupItem.java77
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/util/QNameHelper.java130
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/ComponentScopedRefs.java80
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/Handler.java177
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/PortComponentRef.java109
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/ServiceRef.java249
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/WebServicesClient.java70
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/WebServicesResource.java23
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/Webservice_clientFactory.java86
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/Webservice_clientPackage.java729
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/impl/ComponentScopedRefsImpl.java223
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/impl/HandlerImpl.java473
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/impl/PortComponentRefImpl.java226
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/impl/ServiceRefImpl.java575
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/impl/WebServicesClientImpl.java191
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/impl/WebServicesClientResourceFactory.java71
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/impl/WebServicesResourceImpl.java145
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/impl/Webservice_clientFactoryImpl.java127
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/impl/Webservice_clientPackageImpl.java531
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/util/Webservice_clientAdapterFactory.java231
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/util/Webservice_clientSwitch.java230
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/DescriptionType.java26
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/DisplayNameType.java26
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/InitParam.java130
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/PortName.java58
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/SOAPHeader.java31
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/SOAPRole.java63
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/WscommonFactory.java95
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/WscommonPackage.java443
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/impl/DescriptionTypeImpl.java113
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/impl/DisplayNameTypeImpl.java113
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/impl/InitParamImpl.java332
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/impl/PortNameImpl.java165
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/impl/SOAPHeaderImpl.java133
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/impl/SOAPRoleImpl.java165
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/impl/WscommonFactoryImpl.java140
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/impl/WscommonPackageImpl.java409
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/util/WscommonAdapterFactory.java269
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/util/WscommonSwitch.java268
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/BeanLink.java26
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/EJBLink.java70
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/Handler.java145
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/PortComponent.java364
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/ServiceImplBean.java119
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/ServletLink.java66
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/WSDLPort.java31
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/WebServiceDescription.java346
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/WebServices.java55
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/WsddFactory.java122
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/WsddPackage.java1180
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/WsddResource.java24
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/WsddResourceFactory.java67
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/impl/BeanLinkImpl.java48
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/impl/EJBLinkImpl.java164
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/impl/HandlerImpl.java431
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/impl/PortComponentImpl.java829
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/impl/ServiceImplBeanImpl.java316
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/impl/ServletLinkImpl.java164
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/impl/WSDLPortImpl.java133
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/impl/WebServiceDescriptionImpl.java969
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/impl/WebServicesImpl.java241
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/impl/WsddFactoryImpl.java176
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/impl/WsddPackageImpl.java783
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/impl/WsddResourceImpl.java181
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/util/WsddAdapterFactory.java323
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/util/WsddSwitch.java338
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/xmlparse.properties18
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/xmlparse_de.properties18
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/xmlparse_es.properties18
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/xmlparse_fr.properties18
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/xmlparse_it.properties18
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/xmlparse_ja.properties18
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/xmlparse_ko.properties18
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/xmlparse_pt_BR.properties18
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/xmlparse_zh.properties18
-rw-r--r--plugins/org.eclipse.jst.j2ee.core/mofj2ee/xmlparse_zh_TW.properties18
549 files changed, 0 insertions, 123408 deletions
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/ejb_de.properties b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/ejb_de.properties
deleted file mode 100644
index b5a5be422..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/ejb_de.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=Start des EJB-Provider-Plug-ins - Fehler bei Plug-in-Initialisierung
-Ejbext_provider_plugin_prob=Start des EJBEXT-Provider-Plug-ins - Fehler bei Plug-in-Initialisierung
-EJB_UI_STARTUP=EJB-UI-START
-EJB_Path__=EJB-Pfad:
-Size__=Gr\u00f6\u00dfe:
-Edit_the_bean_class=Bean-Klasse bearbeiten
-EJB_Tree=EJB-Baumstruktur
-EJB_Jar_Components=EJB-JAR-Komponenten
-EJB_Models=EJB-Modelle
-EJB_Features=EJB-Funktionen
-Exception_loading_plugin=Ausnahmebedingung beim Laden des Plug-ins
-Create=Erstellen
-Create_Attribute...=Attribut erstellen...
-createAttribute=createAttribute
-Edit=Bearbeiten
-Add_To_Key=Zu Schl\u00fcssel hinzuf\u00fcgen
-delete=L\u00f6schen
-Unknown=Unbekannt
-Remove_From_Key=Aus Schl\u00fcssel entfernen
-Delete=L\u00f6schen
-Delete_Attribute...=Attribut l\u00f6schen...
-additions=Erg\u00e4nzungen
-CMDS_Cannot_reflect_JavaClass_ERROR_=IWAE0068E Java-Klasse (JavaClass) kann nicht wiedergegeben werden, weil ihr Name nicht definiert ist.
-CMDS_CLASS_SET_FAILED_STRING_ERROR_=IWAE0069E Der Java-Typ mit dem Namen {0} konnte nicht f\u00fcr {1} definiert werden, weil die EJB Null ist.
-CMDS_Cannot_perform_INFO_=IWAE0070I Die Befehlsanforderung kann nicht ausgef\u00fchrt werden, weil die EJB f\u00fcr den Befehl Null ist:
-CMDS_Cannot_add_the_feat_INFO_=IWAE0071I Die Funktion kann nicht zum Schl\u00fcssel hinzugef\u00fcgt werden, weil die Funktion f\u00fcr den Befehl Null ist:
-CMDS_Cannot_remove_the_INFO_=IWAE0072I Die Funktion kann nicht aus dem Schl\u00fcssel entfernt werden, weil die Funktion f\u00fcr den Befehl Null ist:
-CMDS_Initializing_UI_=-- Java-Generierung :: Initialisierung l\u00e4uft...
-CMDS_Generating_UI_=-- Java-Generierung :: Generierung l\u00e4uft...
-CMDS_Finishing_UI_=-- Java-Generierung :: Fertigstellung l\u00e4uft...
-CMDS_Analyzing_UI_=-- Java-Generierung :: Analyse l\u00e4uft...
-CMDS_Cancelled_WARNING_=Abgebrochen
-CMDS_Multiple_EnterpriseBean_Up_INFO_=IWAE0073I Aktualisierungen von mehreren Enterprise-Beans
-CMDS_CREATING_TASK_UI_=Bean mit dem Namen "{0}" wird erstellt
-CMDS_UPDATING_TASK_UI_=Bean mit dem Namen "{0}" wird aktualisiert
-CMDS_DELETING_TASK_UI_=Bean mit dem Namen "{0}" wird gel\u00f6scht
-CMDS_Updating_Metadata..._UI_=-- Metadaten werden aktualisiert...
-Updating=Aktualisierung l\u00e4uft
-New_key_attribute_added_wi=Neues Schl\u00fcsselattribut wurde ohne Attribut-Helper hinzugef\u00fcgt
-Error_has_occurred=Ein Fehler ist aufgetreten.
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/ejb_es.properties b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/ejb_es.properties
deleted file mode 100644
index df7ea9ae5..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/ejb_es.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=Inicio del conector del proveedor Ejb - Se ha producido un problema al inicializar el conector
-Ejbext_provider_plugin_prob=Inicio del conector del proveedor Ejbext - Se ha producido un problema al inicializar el conector
-EJB_UI_STARTUP=INICIO DE LA UI DE EJB
-EJB_Path__=V\u00eda de acceso de EJB:
-Size__=Tama\u00f1o:
-Edit_the_bean_class=Editar la clase de bean
-EJB_Tree=\u00c1rbol de EJB
-EJB_Jar_Components=Componentes de JAR EJB
-EJB_Models=Modelos de EJB
-EJB_Features=Caracter\u00edsticas de EJB
-Exception_loading_plugin=Se ha producido una excepci\u00f3n al cargar el conector
-Create=Crear
-Create_Attribute...=Crear atributo...
-createAttribute=createAttribute
-Edit=Editar
-Add_To_Key=A\u00f1adir a clave
-delete=suprimir
-Unknown=Desconocido
-Remove_From_Key=Eliminar de clave
-Delete=Suprimir
-Delete_Attribute...=Suprimir atributo...
-additions=adiciones
-CMDS_Cannot_reflect_JavaClass_ERROR_=IWAE0068E No puede reflejarse la clase Java porque su nombre no se ha establecido para
-CMDS_CLASS_SET_FAILED_STRING_ERROR_=IWAE0069E El tipo Java denominado {0} no se ha podido establecer para {1} porque su EJB es nulo.
-CMDS_Cannot_perform_INFO_=IWAE0070I No puede efectuarse la petici\u00f3n del mandato porque el EJB es nulo para el mandato:
-CMDS_Cannot_add_the_feat_INFO_=IWAE0071I No puede a\u00f1adirse la caracter\u00edstica a la clave porque la caracter\u00edstica es nula para el mandato:
-CMDS_Cannot_remove_the_INFO_=IWAE0072I No puede eliminarse la caracter\u00edstica de la clave porque la caracter\u00edstica es nula para el mandato:
-CMDS_Initializing_UI_=-- Generaci\u00f3n Java :: Inicializando...
-CMDS_Generating_UI_=-- Generaci\u00f3n Java :: Generando...
-CMDS_Finishing_UI_=-- Generaci\u00f3n Java :: Finalizando...
-CMDS_Analyzing_UI_=-- Generaci\u00f3n Java :: Analizando...
-CMDS_Cancelled_WARNING_=Cancelado
-CMDS_Multiple_EnterpriseBean_Up_INFO_=IWAE0073I Varias actualizaciones de EnterpriseBean
-CMDS_CREATING_TASK_UI_=Creando bean denominado "{0}"
-CMDS_UPDATING_TASK_UI_=Actualizando bean denominado "{0}"
-CMDS_DELETING_TASK_UI_=Suprimiendo bean denominado "{0}"
-CMDS_Updating_Metadata..._UI_=-- Actualizando metadatos...
-Updating=Actualizando
-New_key_attribute_added_wi=Se ha a\u00f1adido un atributo de clave nuevo sin ayudante de atributos.
-Error_has_occurred=Se ha producido un error
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/ejb_fr.properties b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/ejb_fr.properties
deleted file mode 100644
index 8486ffe4b..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/ejb_fr.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=D\u00e9marrage du plug-in fournisseur d'EJB - Probl\u00e8me d'initialisation du plug-in
-Ejbext_provider_plugin_prob=D\u00e9marrage du plug-in fournisseur Ejbext - Probl\u00e8me d'initialisation du plug-in
-EJB_UI_STARTUP=DEMARRAGE DE L'INTERFACE UTILISATEUR EJB
-EJB_Path__=Chemin des EJB :
-Size__=Taille :
-Edit_the_bean_class=Editer la classe du bean
-EJB_Tree=Arborescence d'EJB
-EJB_Jar_Components=Composants du fichier JAR d'EJB
-EJB_Models=Mod\u00e8les d'EJB
-EJB_Features=Fonctions d'EJB
-Exception_loading_plugin=Exception au chargement du plug-in
-Create=Cr\u00e9er
-Create_Attribute...=Cr\u00e9er attribut...
-createAttribute=createAttribute
-Edit=Editer
-Add_To_Key=Ajouter \u00e0 la cl\u00e9
-delete=delete
-Unknown=Inconnu
-Remove_From_Key=Supprimer de la cl\u00e9
-Delete=Supprimer
-Delete_Attribute...=Supprimer attribut...
-additions=additions
-CMDS_Cannot_reflect_JavaClass_ERROR_=IWAE0068E Impossible de refl\u00e9ter la classe Java car son nom n'est pas d\u00e9fini pour
-CMDS_CLASS_SET_FAILED_STRING_ERROR_=IWAE0069E Le type Java nomm\u00e9 {0} n''a pas pu \u00eatre d\u00e9fini pour la {1} car sa sp\u00e9cification d''EJB est null.
-CMDS_Cannot_perform_INFO_=IWAE0070I Impossible de satisfaire la demande de commande car la sp\u00e9cification d'EJB est null pour la commande :
-CMDS_Cannot_add_the_feat_INFO_=IWAE0071I Impossible d'ajouter la fonction \u00e0 la cl\u00e9 car elle est null pour la commande :
-CMDS_Cannot_remove_the_INFO_=IWAE0072I Impossible de supprimer la fonction de la cl\u00e9 car elle est null pour la commande :
-CMDS_Initializing_UI_=-- G\u00e9n\u00e9ration Java :: Initialisation...
-CMDS_Generating_UI_=-- G\u00e9n\u00e9ration Java :: G\u00e9n\u00e9ration...
-CMDS_Finishing_UI_=-- G\u00e9n\u00e9ration Java :: Finition...
-CMDS_Analyzing_UI_=-- G\u00e9n\u00e9ration Java :: Analyse...
-CMDS_Cancelled_WARNING_=Annul\u00e9
-CMDS_Multiple_EnterpriseBean_Up_INFO_=IWAE0073I Mises \u00e0 jour de beans enterprise multiple
-CMDS_CREATING_TASK_UI_=Cr\u00e9ation du bean nomm\u00e9 "{0}"
-CMDS_UPDATING_TASK_UI_=Mise \u00e0 jour du bean nomm\u00e9 "{0}"
-CMDS_DELETING_TASK_UI_=Suppression du bean nomm\u00e9 "{0}"
-CMDS_Updating_Metadata..._UI_=-- Mise \u00e0 jour des m\u00e9tadonn\u00e9es...
-Updating=Mise \u00e0 jour
-New_key_attribute_added_wi=Nouvel attribut de cl\u00e9 ajout\u00e9 sans auxiliaire.
-Error_has_occurred=Une erreur s'est produite.
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/ejb_it.properties b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/ejb_it.properties
deleted file mode 100644
index 7d18c5579..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/ejb_it.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=Avvio del plug-in del provider Ejb: problemi di inizializzazione del plug-in
-Ejbext_provider_plugin_prob=Avvio del plug-in del provider Ejbext: problemi di inizializzazione del plug-in
-EJB_UI_STARTUP=AVVIO INTERFACCIA UTENTE EJB
-EJB_Path__=Percorso EJB:
-Size__=Dimensione:
-Edit_the_bean_class=Modifica la classe bean
-EJB_Tree=Struttura EJB
-EJB_Jar_Components=Componenti JAR EJB
-EJB_Models=Modelli EJB
-EJB_Features=Funzioni EJB
-Exception_loading_plugin=Eccezione durante il caricamento del plug-in
-Create=Crea
-Create_Attribute...=Crea attributo...
-createAttribute=createAttribute
-Edit=Modifica
-Add_To_Key=Aggiungi alla chiave
-delete=elimina
-Unknown=Sconosciuto
-Remove_From_Key=Rimuovi dalla chiave
-Delete=Elimina
-Delete_Attribute...=Elimina attributo...
-additions=aggiunte
-CMDS_Cannot_reflect_JavaClass_ERROR_=IWAE0068E Impossibile riflettere JavaClass poich\u00e9 il nome non \u00e8 impostato
-CMDS_CLASS_SET_FAILED_STRING_ERROR_=IWAE0069E Impossibile impostare il tipo Java denominato {0} per {1} poich\u00e9 il rispettivo EJB \u00e8 null.
-CMDS_Cannot_perform_INFO_=IWAE0070I Impossibile eseguire la richiesta di comando poich\u00e9 l'EJB del comando \u00e8 null:
-CMDS_Cannot_add_the_feat_INFO_=IWAE0071I Impossibile aggiungere la funzione alla chiave poich\u00e9 tale funzione \u00e8 Null per il comando:
-CMDS_Cannot_remove_the_INFO_=IWAE0072I Impossibile rimuovere la funzione dalla chiave poich\u00e9 tale funzione \u00e8 Null per il comando:
-CMDS_Initializing_UI_=-- Generazione Java :: inizializzazione in corso...
-CMDS_Generating_UI_=-- Generazione Java :: generazione in corso...
-CMDS_Finishing_UI_=-- Generazione Java :: completamento in corso...
-CMDS_Analyzing_UI_=-- Generazione Java :: analisi in corso...
-CMDS_Cancelled_WARNING_=Operazione annullata
-CMDS_Multiple_EnterpriseBean_Up_INFO_=IWAE0073I Aggiornamenti EnterpriseBean multipli
-CMDS_CREATING_TASK_UI_=Creazione del bean "{0}" in corso
-CMDS_UPDATING_TASK_UI_=Aggiornamento del bean "{0}" in corso
-CMDS_DELETING_TASK_UI_=Eliminazione del bean "{0}" in corso
-CMDS_Updating_Metadata..._UI_=-- Aggiornamento dei metadati in corso...
-Updating=Aggiornamento in corso
-New_key_attribute_added_wi=Sono stati aggiunti nuovi attributi chiave senza l'aggiunta dell'helper di attributo.
-Error_has_occurred=Si \u00e8 verificato un errore
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/ejb_ja.properties b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/ejb_ja.properties
deleted file mode 100644
index 3ee34a8cc..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/ejb_ja.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 \u30d7\u30ed\u30d0\u30a4\u30c0\u30fc\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u59cb\u52d5 - \u30d7\u30e9\u30b0\u30a4\u30f3\u521d\u671f\u5316\u4e2d\u306e\u554f\u984c
-Ejbext_provider_plugin_prob=Ejbext \u30d7\u30ed\u30d0\u30a4\u30c0\u30fc\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u59cb\u52d5 - \u30d7\u30e9\u30b0\u30a4\u30f3\u521d\u671f\u5316\u4e2d\u306e\u554f\u984c
-EJB_UI_STARTUP=EJB UI \u59cb\u52d5
-EJB_Path__=EJB \u30d1\u30b9:
-Size__=\u30b5\u30a4\u30ba:
-Edit_the_bean_class=Bean \u30af\u30e9\u30b9\u306e\u7de8\u96c6
-EJB_Tree=EJB \u30c4\u30ea\u30fc
-EJB_Jar_Components=EJB JAR \u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8
-EJB_Models=EJB \u30e2\u30c7\u30eb
-EJB_Features=EJB \u6a5f\u80fd
-Exception_loading_plugin=\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u30ed\u30fc\u30c9\u4e2d\u306e\u4f8b\u5916
-Create=\u4f5c\u6210
-Create_Attribute...=\u5c5e\u6027\u306e\u4f5c\u6210...
-createAttribute=createAttribute
-Edit=\u7de8\u96c6
-Add_To_Key=\u30ad\u30fc\u306b\u8ffd\u52a0
-delete=\u524a\u9664
-Unknown=\u4e0d\u660e
-Remove_From_Key=\u30ad\u30fc\u304b\u3089\u9664\u53bb
-Delete=\u524a\u9664
-Delete_Attribute...=\u5c5e\u6027\u306e\u524a\u9664...
-additions=\u8ffd\u52a0
-CMDS_Cannot_reflect_JavaClass_ERROR_=IWAE0068E JavaClass \u306e\u540d\u524d\u304c\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u306a\u3044\u305f\u3081\u3001JavaClass \u3092\u53cd\u6620\u3067\u304d\u307e\u305b\u3093
-CMDS_CLASS_SET_FAILED_STRING_ERROR_=IWAE0069E EJB \u304c NULL \u3067\u3042\u308b\u305f\u3081\u3001{0} \u3068\u3044\u3046\u540d\u524d\u306e Java \u306e\u578b\u3092 {1} \u306b\u8a2d\u5b9a\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002
-CMDS_Cannot_perform_INFO_=IWAE0070I \u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3067 EJB \u304c NULL \u3067\u3042\u308b\u305f\u3081\u3001\u30b3\u30de\u30f3\u30c9\u8981\u6c42\u3092\u5b9f\u884c\u3067\u304d\u307e\u305b\u3093:
-CMDS_Cannot_add_the_feat_INFO_=IWAE0071I \u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3067\u6a5f\u80fd\u304c NULL \u3067\u3042\u308b\u305f\u3081\u3001\u6a5f\u80fd\u3092\u30ad\u30fc\u306b\u8ffd\u52a0\u3067\u304d\u307e\u305b\u3093:
-CMDS_Cannot_remove_the_INFO_=IWAE0072I \u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3067\u6a5f\u80fd\u304c NULL \u3067\u3042\u308b\u305f\u3081\u3001\u6a5f\u80fd\u3092\u30ad\u30fc\u304b\u3089\u9664\u53bb\u3067\u304d\u307e\u305b\u3093:
-CMDS_Initializing_UI_=-- Java \u751f\u6210 :: \u521d\u671f\u5316\u4e2d...
-CMDS_Generating_UI_=-- Java \u751f\u6210 :: \u751f\u6210\u4e2d...
-CMDS_Finishing_UI_=-- Java \u751f\u6210 :: \u7d42\u4e86\u4e2d...
-CMDS_Analyzing_UI_=-- Java \u751f\u6210 :: \u5206\u6790\u4e2d...
-CMDS_Cancelled_WARNING_=\u30ad\u30e3\u30f3\u30bb\u30eb\u3055\u308c\u307e\u3057\u305f
-CMDS_Multiple_EnterpriseBean_Up_INFO_=IWAE0073I \u8907\u6570\u306e\u30a8\u30f3\u30bf\u30fc\u30d7\u30e9\u30a4\u30ba Bean \u306e\u66f4\u65b0
-CMDS_CREATING_TASK_UI_="{0}" \u3068\u3044\u3046\u540d\u524d\u306e Bean \u3092\u4f5c\u6210\u4e2d
-CMDS_UPDATING_TASK_UI_="{0}" \u3068\u3044\u3046\u540d\u524d\u306e Bean \u3092\u66f4\u65b0\u4e2d
-CMDS_DELETING_TASK_UI_="{0}" \u3068\u3044\u3046\u540d\u524d\u306e Bean \u3092\u524a\u9664\u4e2d
-CMDS_Updating_Metadata..._UI_=-- \u30e1\u30bf\u30c7\u30fc\u30bf\u306e\u66f4\u65b0\u4e2d...
-Updating=\u66f4\u65b0\u4e2d
-New_key_attribute_added_wi=\u65b0\u898f\u30ad\u30fc\u5c5e\u6027\u304c\u5c5e\u6027\u30d8\u30eb\u30d1\u30fc\u306a\u3057\u3067\u8ffd\u52a0\u3055\u308c\u307e\u3057\u305f\u3002
-Error_has_occurred=\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/ejb_ko.properties b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/ejb_ko.properties
deleted file mode 100644
index ec3bfec49..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/ejb_ko.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 \uc81c\uacf5\uc790 \ud50c\ub7ec\uadf8\uc778 \uc2dc\uc791 - \ud50c\ub7ec\uadf8\uc778 \ucd08\uae30\ud654 \uc911\uc5d0 \ubb38\uc81c\uc810 \ubc1c\uc0dd
-Ejbext_provider_plugin_prob=Ejbext \uc81c\uacf5\uc790 \ud50c\ub7ec\uadf8\uc778 \uc2dc\uc791 - \ud50c\ub7ec\uadf8\uc778 \ucd08\uae30\ud654 \uc911\uc5d0 \ubb38\uc81c\uc810 \ubc1c\uc0dd
-EJB_UI_STARTUP=EJB UI STARTUP
-EJB_Path__=EJB \uacbd\ub85c:
-Size__=\ud06c\uae30:
-Edit_the_bean_class=Bean \ud074\ub798\uc2a4 \ud3b8\uc9d1
-EJB_Tree=EJB \ud2b8\ub9ac
-EJB_Jar_Components=EJB JAR \uad6c\uc131\uc694\uc18c
-EJB_Models=EJB \ubaa8\ub378
-EJB_Features=EJB \uae30\ub2a5
-Exception_loading_plugin=\ud50c\ub7ec\uadf8\uc778 \ub85c\ub4dc \uc911\uc5d0 \uc608\uc678 \ubc1c\uc0dd
-Create=\uc791\uc131
-Create_Attribute...=\uc18d\uc131 \uc791\uc131...
-createAttribute=createAttribute
-Edit=\ud3b8\uc9d1
-Add_To_Key=\ud0a4\uc5d0 \ucd94\uac00
-delete=\uc0ad\uc81c
-Unknown=\uc54c \uc218 \uc5c6\uc74c
-Remove_From_Key=\ud0a4\uc5d0\uc11c \uc81c\uac70
-Delete=\uc0ad\uc81c
-Delete_Attribute...=\uc18d\uc131 \uc0ad\uc81c...
-additions=\ucd94\uac00
-CMDS_Cannot_reflect_JavaClass_ERROR_=IWAE0068E JavaClass\uc758 \uc774\ub984\uc774 \ub2e4\uc74c\uc5d0 \ub300\ud574 \uc124\uc815\ub418\uc5b4 \uc788\uc9c0 \uc54a\uae30 \ub54c\ubb38\uc5d0 JavaClass\ub97c \ubc18\uc601\ud560 \uc218 \uc5c6\uc74c -
-CMDS_CLASS_SET_FAILED_STRING_ERROR_=IWAE0069E EJB\uac00 \ub110\uc774\uc5b4\uc11c \uc774\ub984\uc774 {0}\uc778 Java \uc720\ud615\uc744 {1}\uc5d0 \ub300\ud574 \uc124\uc815\ud560 \uc218 \uc5c6\uc5c8\uc2b5\ub2c8\ub2e4.
-CMDS_Cannot_perform_INFO_=IWAE0070I EJB\uac00 \ub2e4\uc74c \uba85\ub839\uc5d0 \ub300\ud574 \ub110\uc774\uc5b4\uc11c \uba85\ub839 \uc694\uccad\uc744 \uc218\ud589\ud560 \uc218 \uc5c6\uc74c:
-CMDS_Cannot_add_the_feat_INFO_=IWAE0071I \uae30\ub2a5\uc774 \ub2e4\uc74c \uba85\ub839\uc5d0 \ub300\ud574 \ub110\uc774\uc5b4\uc11c \ud0a4\uc5d0 \uae30\ub2a5\uc744 \ucd94\uac00\ud560 \uc218 \uc5c6\uc74c:
-CMDS_Cannot_remove_the_INFO_=IWAE0072I \uae30\ub2a5\uc774 \ub2e4\uc74c \uba85\ub839\uc5d0 \ub300\ud574 \ub110\uc774\uc5b4\uc11c \ud0a4\uc5d0\uc11c \uae30\ub2a5\uc744 \uc81c\uac70\ud560 \uc218 \uc5c6\uc74c:
-CMDS_Initializing_UI_=-- Java \uc0dd\uc131 :: \ucd08\uae30\ud654 \uc911...
-CMDS_Generating_UI_=-- Java \uc0dd\uc131 :: \uc0dd\uc131 \uc911...
-CMDS_Finishing_UI_=-- Java \uc0dd\uc131 :: \uc644\ub8cc \uc911...
-CMDS_Analyzing_UI_=-- Java \uc0dd\uc131 :: \ubd84\uc11d \uc911...
-CMDS_Cancelled_WARNING_=\ucde8\uc18c\ub428
-CMDS_Multiple_EnterpriseBean_Up_INFO_=IWAE0073I \uc5ec\ub7ec EnterpriseBean \uac31\uc2e0
-CMDS_CREATING_TASK_UI_=\uc774\ub984\uc774 "{0}"\uc778 Bean \uc791\uc131 \uc911
-CMDS_UPDATING_TASK_UI_=\uc774\ub984\uc774 "{0}"\uc778 Bean \uac31\uc2e0 \uc911
-CMDS_DELETING_TASK_UI_=\uc774\ub984\uc774 "{0}"\uc778 Bean \uc0ad\uc81c \uc911
-CMDS_Updating_Metadata..._UI_=-- \uba54\ud0c0\ub370\uc774\ud130 \uac31\uc2e0 \uc911...
-Updating=\uac31\uc2e0 \uc911
-New_key_attribute_added_wi=\uc18d\uc131 \ud5ec\ud37c \uc5c6\uc774 \uc0c8 \ud0a4 \uc18d\uc131\uc774 \ucd94\uac00\ub418\uc5c8\uc2b5\ub2c8\ub2e4.
-Error_has_occurred=\uc624\ub958 \ubc1c\uc0dd
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/ejb_pt_BR.properties b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/ejb_pt_BR.properties
deleted file mode 100644
index 0370eb0cd..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/ejb_pt_BR.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=Inicializa\u00e7\u00e3o do plug-in do provedor ejb - Problema ao inicializar plug-in
-Ejbext_provider_plugin_prob=Inicializa\u00e7\u00e3o do plug-in do provedor ejbext - Problema ao inicializar plug-in
-EJB_UI_STARTUP=EJB UI STARTUP
-EJB_Path__=Caminho EJB:
-Size__=Tamanho:
-Edit_the_bean_class=Editar a classe do bean
-EJB_Tree=\u00c1rvore EJB
-EJB_Jar_Components=Componentes de JAR EJB
-EJB_Models=Modelos EJB
-EJB_Features=Recursos EJB
-Exception_loading_plugin=Exce\u00e7\u00e3o no carregamento do plug-in
-Create=Criar
-Create_Attribute...=Criar Atributo...
-createAttribute=createAttribute
-Edit=Editar
-Add_To_Key=Incluir na Chave
-delete=excluir
-Unknown=Desconhecido
-Remove_From_Key=Remover da Chave
-Delete=Excluir
-Delete_Attribute...=Excluir Atributo...
-additions=adi\u00e7\u00f5es
-CMDS_Cannot_reflect_JavaClass_ERROR_=IWAE0068E N\u00e3o \u00e9 poss\u00edvel refletir JavaClass porque o nome n\u00e3o est\u00e1 definido para
-CMDS_CLASS_SET_FAILED_STRING_ERROR_=IWAE0069E O tipo Java denominado {0} n\u00e3o p\u00f4de ser definido para {1} porque seu EJB \u00e9 nulo.
-CMDS_Cannot_perform_INFO_=IWAE0070I N\u00e3o \u00e9 poss\u00edvel executar o pedido de comando porque o EJB \u00e9 nulo para o comando:
-CMDS_Cannot_add_the_feat_INFO_=IWAE0071I N\u00e3o \u00e9 poss\u00edvel incluir o recurso na chave porque o recurso \u00e9 nulo para o comando:
-CMDS_Cannot_remove_the_INFO_=IWAE0072I N\u00e3o \u00e9 poss\u00edvel remover o recurso da chave porque o recurso \u00e9 nulo para o comando:
-CMDS_Initializing_UI_=-- Java Generation :: Inicializando...
-CMDS_Generating_UI_=-- Java Generation :: Gerando...
-CMDS_Finishing_UI_=-- Java Generation :: Concluindo...
-CMDS_Analyzing_UI_=-- Java Generation :: Analisando...
-CMDS_Cancelled_WARNING_=Cancelado
-CMDS_Multiple_EnterpriseBean_Up_INFO_=IWAE0073I Atualiza\u00e7\u00f5es de V\u00e1rios EnterpriseBean
-CMDS_CREATING_TASK_UI_=Criando bean nomeado "{0}"
-CMDS_UPDATING_TASK_UI_=Atualizando bean nomeado "{0}"
-CMDS_DELETING_TASK_UI_=Excluindo bean nomeado "{0}"
-CMDS_Updating_Metadata..._UI_=-- Atualizando Metadados...
-Updating=Atualizando
-New_key_attribute_added_wi=Novo atributo de chave inclu\u00eddo sem o auxiliar de atributos.
-Error_has_occurred=Ocorreu um erro
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/ejb_zh.properties b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/ejb_zh.properties
deleted file mode 100644
index 7079cf1ff..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/ejb_zh.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 \u63d0\u4f9b\u7a0b\u5e8f\u63d2\u4ef6\u542f\u52a8 \uff0d \u521d\u59cb\u5316\u63d2\u4ef6\u65f6\u51fa\u73b0\u95ee\u9898
-Ejbext_provider_plugin_prob=Ejbext \u63d0\u4f9b\u7a0b\u5e8f\u63d2\u4ef6\u542f\u52a8 \uff0d \u521d\u59cb\u5316\u63d2\u4ef6\u65f6\u51fa\u73b0\u95ee\u9898
-EJB_UI_STARTUP=EJB UI \u542f\u52a8
-EJB_Path__=EJB \u8def\u5f84\uff1a
-Size__=\u5927\u5c0f\uff1a
-Edit_the_bean_class=\u7f16\u8f91 bean \u7c7b
-EJB_Tree=EJB \u6811
-EJB_Jar_Components=EJB JAR \u7ec4\u4ef6
-EJB_Models=EJB \u6a21\u578b
-EJB_Features=EJB \u529f\u80fd\u90e8\u4ef6
-Exception_loading_plugin=\u88c5\u5165\u63d2\u4ef6\u65f6\u51fa\u73b0\u5f02\u5e38
-Create=\u521b\u5efa
-Create_Attribute...=\u521b\u5efa\u5c5e\u6027...
-createAttribute=createAttribute
-Edit=\u7f16\u8f91
-Add_To_Key=\u6dfb\u52a0\u81f3\u952e
-delete=\u5220\u9664
-Unknown=\u672a\u77e5
-Remove_From_Key=\u4ece\u952e\u4e2d\u9664\u53bb
-Delete=\u5220\u9664
-Delete_Attribute...=\u5220\u9664\u5c5e\u6027...
-additions=\u9644\u52a0\u9879
-CMDS_Cannot_reflect_JavaClass_ERROR_=IWAE0068E \u4e0d\u80fd\u53cd\u6620 Java \u7c7b\uff0c\u56e0\u4e3a\u672a\u8bbe\u7f6e\u5176\u540d\u79f0
-CMDS_CLASS_SET_FAILED_STRING_ERROR_=IWAE0069E \u672a\u80fd\u4e3a {1} \u8bbe\u7f6e\u540d\u4e3a {0} \u7684 Java \u7c7b\u578b\uff0c\u539f\u56e0\u662f\u5176 EJB \u4e3a\u7a7a\u3002
-CMDS_Cannot_perform_INFO_=IWAE0070I \u4e0d\u80fd\u6267\u884c\u547d\u4ee4\u8bf7\u6c42\uff0c\u539f\u56e0\u662f\u5bf9\u4e8e\u4ee5\u4e0b\u547d\u4ee4 EJB \u4e3a\u7a7a\uff1a
-CMDS_Cannot_add_the_feat_INFO_=IWAE0071I \u4e0d\u80fd\u5c06\u529f\u80fd\u90e8\u4ef6\u6dfb\u52a0\u81f3\u952e\uff0c\u539f\u56e0\u662f\u5bf9\u4e8e\u4ee5\u4e0b\u547d\u4ee4\u529f\u80fd\u90e8\u4ef6\u4e3a\u7a7a\uff1a
-CMDS_Cannot_remove_the_INFO_=IWAE0072I \u4e0d\u80fd\u4ece\u952e\u4e2d\u9664\u53bb\u529f\u80fd\u90e8\u4ef6\uff0c\u539f\u56e0\u662f\u5bf9\u4e8e\u4ee5\u4e0b\u547d\u4ee4\u529f\u80fd\u90e8\u4ef6\u4e3a\u7a7a\uff1a
-CMDS_Initializing_UI_=-- Java \u751f\u6210 :: \u6b63\u5728\u521d\u59cb\u5316...
-CMDS_Generating_UI_=-- Java \u751f\u6210 :: \u6b63\u5728\u751f\u6210...
-CMDS_Finishing_UI_=-- Java \u751f\u6210 :: \u6b63\u5728\u5b8c\u6210...
-CMDS_Analyzing_UI_=-- Java \u751f\u6210 :: \u6b63\u5728\u5206\u6790...
-CMDS_Cancelled_WARNING_=\u5df2\u53d6\u6d88
-CMDS_Multiple_EnterpriseBean_Up_INFO_=IWAE0073I \u591a\u4e2a\u4f01\u4e1a Bean \u66f4\u65b0
-CMDS_CREATING_TASK_UI_=\u6b63\u5728\u521b\u5efa\u540d\u4e3a\u201c{0}\u201d\u7684 bean
-CMDS_UPDATING_TASK_UI_=\u6b63\u5728\u66f4\u65b0\u540d\u4e3a\u201c{0}\u201d\u7684 bean
-CMDS_DELETING_TASK_UI_=\u6b63\u5728\u5220\u9664\u540d\u4e3a\u201c{0}\u201d\u7684 bean
-CMDS_Updating_Metadata..._UI_=-- \u6b63\u5728\u66f4\u65b0\u5143\u6570\u636e...
-Updating=\u6b63\u5728\u66f4\u65b0
-New_key_attribute_added_wi=\u5728\u6ca1\u6709\u5c5e\u6027 helper \u7684\u60c5\u51b5\u4e0b\u6dfb\u52a0\u4e86\u65b0\u7684\u952e\u5c5e\u6027\u3002
-Error_has_occurred=\u53d1\u751f\u4e86\u9519\u8bef
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/ejb_zh_TW.properties b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/ejb_zh_TW.properties
deleted file mode 100644
index 17b49a5b5..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/ejb_zh_TW.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 \u63d0\u4f9b\u8005\u5916\u639b\u7a0b\u5f0f\u555f\u52d5 - \u7121\u6cd5\u8d77\u59cb\u8a2d\u5b9a\u5916\u639b\u7a0b\u5f0f
-Ejbext_provider_plugin_prob=Ejbext \u63d0\u4f9b\u8005\u5916\u639b\u7a0b\u5f0f\u555f\u52d5 - \u7121\u6cd5\u8d77\u59cb\u8a2d\u5b9a\u5916\u639b\u7a0b\u5f0f
-EJB_UI_STARTUP=EJB UI STARTUP
-EJB_Path__=EJB \u8def\u5f91\uff1a
-Size__=\u5927\u5c0f\uff1a
-Edit_the_bean_class=\u7de8\u8f2f Bean \u985e\u5225
-EJB_Tree=EJB \u6a39\u72c0\u7d50\u69cb
-EJB_Jar_Components=EJB JAR \u5143\u4ef6
-EJB_Models=EJB \u6a21\u578b
-EJB_Features=EJB \u7279\u6027
-Exception_loading_plugin=\u8f09\u5165\u5916\u639b\u7a0b\u5f0f\u6642\u767c\u751f\u7570\u5e38\u72c0\u6cc1
-Create=\u5efa\u7acb
-Create_Attribute...=\u5efa\u7acb\u5c6c\u6027...
-createAttribute=createAttribute
-Edit=\u7de8\u8f2f
-Add_To_Key=\u65b0\u589e\u81f3\u7d22\u5f15\u9375
-delete=\u522a\u9664
-Unknown=\u4e0d\u660e
-Remove_From_Key=\u81ea\u7d22\u5f15\u9375\u79fb\u9664
-Delete=\u522a\u9664
-Delete_Attribute...=\u522a\u9664\u5c6c\u6027...
-additions=\u65b0\u589e\u5167\u5bb9
-CMDS_Cannot_reflect_JavaClass_ERROR_=IWAE0068E \u7121\u6cd5\u53cd\u6620 JavaClass\uff0c\u56e0\u70ba\u5b83\u7684\u540d\u7a31\u672a\u8a2d\u5b9a
-CMDS_CLASS_SET_FAILED_STRING_ERROR_=IWAE0069E \u7121\u6cd5\u70ba {1} \u8a2d\u5b9a\u540d\u7a31\u70ba {0} \u7684 Java \u985e\u578b\uff0c\u56e0\u70ba\u5b83\u7684 EJB \u662f\u7a7a\u503c\u3002
-CMDS_Cannot_perform_INFO_=IWAE0070I \u7121\u6cd5\u57f7\u884c\u6307\u4ee4\u8981\u6c42\uff0c\u56e0\u70ba\u5c0d\u65bc\u6307\u4ee4\u800c\u8a00 EJB \u662f\u7a7a\u503c\uff1a
-CMDS_Cannot_add_the_feat_INFO_=IWAE0071I \u7121\u6cd5\u5c07\u9019\u9805\u7279\u6027\u65b0\u589e\u81f3\u9019\u500b\u7d22\u5f15\u9375\uff0c\u56e0\u70ba\u5c0d\u65bc\u6307\u4ee4\u4f86\u8aaa\u9019\u9805\u7279\u6027\u662f\u7a7a\u503c\uff1a
-CMDS_Cannot_remove_the_INFO_=IWAE0072I \u7121\u6cd5\u5f9e\u9019\u500b\u7d22\u5f15\u9375\u79fb\u9664\u9019\u9805\u7279\u6027\uff0c\u56e0\u70ba\u5c0d\u65bc\u6307\u4ee4\u4f86\u8aaa\u9019\u9805\u7279\u6027\u662f\u7a7a\u503c\uff1a
-CMDS_Initializing_UI_=-- Java \u7522\u751f :: \u8d77\u59cb\u8a2d\u5b9a...
-CMDS_Generating_UI_=-- Java \u7522\u751f :: \u7522\u751f\u4e2d...
-CMDS_Finishing_UI_=-- Java \u7522\u751f :: \u5b8c\u6210\u4e2d...
-CMDS_Analyzing_UI_=-- Java \u7522\u751f :: \u5206\u6790\u4e2d...
-CMDS_Cancelled_WARNING_=\u5df2\u53d6\u6d88
-CMDS_Multiple_EnterpriseBean_Up_INFO_=IWAE0073I \u591a\u500b EnterpriseBean \u66f4\u65b0
-CMDS_CREATING_TASK_UI_=\u6b63\u5728\u5efa\u7acb Bean "{0}"
-CMDS_UPDATING_TASK_UI_=\u6b63\u5728\u66f4\u65b0 Bean "{0}"
-CMDS_DELETING_TASK_UI_=\u6b63\u5728\u522a\u9664 Bean "{0}"
-CMDS_Updating_Metadata..._UI_=-- \u6b63\u5728\u66f4\u65b0 Meta \u8cc7\u6599...
-Updating=\u6b63\u5728\u66f4\u65b0
-New_key_attribute_added_wi=\u5df2\u65b0\u589e\u7d22\u5f15\u9375\u5c6c\u6027\u4f46\u6c92\u6709\u5c6c\u6027\u8aaa\u660e\u7a0b\u5f0f\u3002
-Error_has_occurred=\u767c\u751f\u932f\u8aa4
-
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/j2eeplugin_de.properties b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/j2eeplugin_de.properties
deleted file mode 100644
index ed1eab058..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/j2eeplugin_de.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 Das Stammobjekt wurde nicht gefunden in Ressource: {0}
-An_error_occurred_while_sa_ERROR_=IWAE0075E Beim Sichern ist ein Fehler aufgetreten.
-Cannot_run_J2EEUIWorkingCo_ERROR_=IWAE0076E Die Operation J2EEUIWorkingCopyManager kann nicht ausgef\u00fchrt werden, da der Arbeitsbereichsbaum gesperrt ist.
-Unable_to_save_read-only_f_ERROR_=IWAE0077E die schreibgesch\u00fctzte Datei kann nicht gesichert werden: {0}
-The_following_resources_ne_UI_=Die folgenden Ressourcen m\u00fcssen gesichert werden, werden aber momentan gemeinsam verwendet. Sollen Sie jetzt gesichert werden?
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/j2eeplugin_es.properties b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/j2eeplugin_es.properties
deleted file mode 100644
index a79910f56..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/j2eeplugin_es.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 No se ha podido encontrar el objeto ra\u00edz en el recurso: {0}
-An_error_occurred_while_sa_ERROR_=IWAE0075E Se produjo un error mientras se guardaba.
-Cannot_run_J2EEUIWorkingCo_ERROR_=IWAE0076E No se puede ejecutar la operaci\u00f3n J2EEUIWorkingCopyManager porque el \u00e1rbol del \u00e1rea de trabajo est\u00e1 bloqueado.
-Unable_to_save_read-only_f_ERROR_=IWAE0077E No se puede guardar en un archivo solo de lectura: {0}
-The_following_resources_ne_UI_=Los siguientes recursos deben guardarse pero actualmente est\u00e1n comparti\u00e9ndose, \u00bfdesea guardarlos ahora?
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/j2eeplugin_fr.properties b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/j2eeplugin_fr.properties
deleted file mode 100644
index 7df1a03b3..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/j2eeplugin_fr.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 L''objet racine est introuvable dans la ressource : {0}.
-An_error_occurred_while_sa_ERROR_=IWAE0075E Une erreur s'est produite lors de la sauvegarde.
-Cannot_run_J2EEUIWorkingCo_ERROR_=IWAE0076E Impossible d'ex\u00e9cuter l'op\u00e9ration J2EEUIWorkingCopyManager car l'arborescence de l'espace de travail est verrouill\u00e9e.
-Unable_to_save_read-only_f_ERROR_=IWAE0077E Impossible de sauvegarder le fichier en lecture seule : {0}
-The_following_resources_ne_UI_=Les ressources suivantes doivent \u00eatre sauvegard\u00e9es, mais elles sont actuellement partag\u00e9es. Voulez-vous effectuer la sauvegarde maintenant ?
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/j2eeplugin_it.properties b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/j2eeplugin_it.properties
deleted file mode 100644
index ad2484c54..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/j2eeplugin_it.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 Impossibile trovare l''oggetto radice nella risorsa: {0}
-An_error_occurred_while_sa_ERROR_=IWAE0075E Errore durante il salvataggio.
-Cannot_run_J2EEUIWorkingCo_ERROR_=IWAE0076E Impossibile eseguire l'operazione J2EEUIWorkingCopyManager poich\u00e9 la struttura dello spazio di lavoro \u00e8 bloccata.
-Unable_to_save_read-only_f_ERROR_=IWAE0077E Impossibile salvare il file di sola lettura: {0}
-The_following_resources_ne_UI_=Le seguenti risorse devono essere salvate ma sono attualmente condivise. Si desidera salvarle ora?
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/j2eeplugin_ja.properties b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/j2eeplugin_ja.properties
deleted file mode 100644
index a3ac401f3..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/j2eeplugin_ja.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 \u30ea\u30bd\u30fc\u30b9 {0} \u5185\u3067\u30eb\u30fc\u30c8\u30fb\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093\u3067\u3057\u305f
-An_error_occurred_while_sa_ERROR_=IWAE0075E \u4fdd\u7ba1\u4e2d\u306b\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002
-Cannot_run_J2EEUIWorkingCo_ERROR_=IWAE0076E \u30ef\u30fc\u30af\u30b9\u30da\u30fc\u30b9\u30fb\u30c4\u30ea\u30fc\u304c\u30ed\u30c3\u30af\u3055\u308c\u3066\u3044\u308b\u305f\u3081\u3001J2EEUIWorkingCopyManager \u64cd\u4f5c\u3092\u5b9f\u884c\u3067\u304d\u307e\u305b\u3093\u3002
-Unable_to_save_read-only_f_ERROR_=IWAE0077E \u8aad\u307f\u53d6\u308a\u5c02\u7528\u30d5\u30a1\u30a4\u30eb {0} \u3092\u4fdd\u7ba1\u3067\u304d\u307e\u305b\u3093
-The_following_resources_ne_UI_=\u6b21\u306e\u30ea\u30bd\u30fc\u30b9\u3092\u4fdd\u7ba1\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u73fe\u5728\u306f\u5171\u7528\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u3059\u3050\u306b\u4fdd\u7ba1\u3057\u307e\u3059\u304b?
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/j2eeplugin_ko.properties b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/j2eeplugin_ko.properties
deleted file mode 100644
index 757dba601..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/j2eeplugin_ko.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 \uc790\uc6d0\uc5d0\uc11c \ub8e8\ud2b8 \uc624\ube0c\uc81d\ud2b8\ub97c \ucc3e\uc744 \uc218 \uc5c6\uc5c8\uc74c: {0}
-An_error_occurred_while_sa_ERROR_=IWAE0075E \uc800\uc7a5 \uc911\uc5d0 \uc624\ub958\uac00 \ubc1c\uc0dd\ud588\uc2b5\ub2c8\ub2e4.
-Cannot_run_J2EEUIWorkingCo_ERROR_=IWAE0076E \uc791\uc5c5\uacf5\uac04 \ud2b8\ub9ac\uac00 \uc7a0\uaca8 \uc788\uc5b4\uc11c J2EEUIWorkingCopyManager \uc870\uc791\uc744 \uc2e4\ud589\ud560 \uc218 \uc5c6\uc2b5\ub2c8\ub2e4.
-Unable_to_save_read-only_f_ERROR_=IWAE0077E \uc77d\uae30 \uc804\uc6a9 \ud30c\uc77c\uc744 \uc800\uc7a5\ud560 \uc218 \uc5c6\uc74c: {0}
-The_following_resources_ne_UI_=\ub2e4\uc74c \uc790\uc6d0\uc740 \uc800\uc7a5\ud574\uc57c \ud558\uc9c0\ub9cc \ud604\uc7ac \uacf5\uc720\ub418\uc5b4 \uc788\uc2b5\ub2c8\ub2e4. \uc9c0\uae08 \uc800\uc7a5\ud558\uc2dc\uaca0\uc2b5\ub2c8\uae4c?
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/j2eeplugin_pt_BR.properties b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/j2eeplugin_pt_BR.properties
deleted file mode 100644
index 63ffdb9e2..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/j2eeplugin_pt_BR.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 A raiz do objeto n\u00e3o p\u00f4de ser encontrada no recurso: {0}
-An_error_occurred_while_sa_ERROR_=IWAE0075E Ocorreu um erro durante o salvamento.
-Cannot_run_J2EEUIWorkingCo_ERROR_=IWAE0076E N\u00e3o \u00e9 poss\u00edvel executar a opera\u00e7\u00e3o J2EEUIWorkingCopyManager porque a \u00e1rvore Workspace est\u00e1 travada.
-Unable_to_save_read-only_f_ERROR_=IWAE0077E N\u00e3o \u00e9 poss\u00edvel salvar o arquivo somente leitura: {0}
-The_following_resources_ne_UI_=Os recursos a seguir necessitam ser salvos mas est\u00e3o atualmente compartilhado, voc\u00ea deseja salv\u00e1-los agora?
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/j2eeplugin_zh.properties b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/j2eeplugin_zh.properties
deleted file mode 100644
index bb2e57035..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/j2eeplugin_zh.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 \u672a\u80fd\u5728\u8d44\u6e90 {0} \u4e2d\u627e\u5230\u6839\u5bf9\u8c61
-An_error_occurred_while_sa_ERROR_=IWAE0075E \u4fdd\u5b58\u65f6\u53d1\u751f\u4e86\u9519\u8bef\u3002
-Cannot_run_J2EEUIWorkingCo_ERROR_=IWAE0076E \u4e0d\u80fd\u8fd0\u884c J2EEUIWorkingCopyManager \u64cd\u4f5c\uff0c\u539f\u56e0\u662f\u9501\u5b9a\u4e86\u201c\u5de5\u4f5c\u7a7a\u95f4\u201d\u6811\u3002
-Unable_to_save_read-only_f_ERROR_=IWAE0077E \u65e0\u6cd5\u4fdd\u5b58\u53ea\u8bfb\u6587\u4ef6\uff1a{0}
-The_following_resources_ne_UI_=\u9700\u8981\u4fdd\u5b58\u4e0b\u5217\u8d44\u6e90\uff0c\u4f46\u5f53\u524d\u5b83\u4eec\u6b63\u5904\u4e8e\u5171\u4eab\u72b6\u6001\uff0c\u60f3\u8981\u73b0\u5728\u4fdd\u5b58\u5417\uff1f
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/j2eeplugin_zh_TW.properties b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/j2eeplugin_zh_TW.properties
deleted file mode 100644
index 55fa6f9ff..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/j2eeplugin_zh_TW.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 \u8cc7\u6e90\u4e2d\u7121\u6cd5\u627e\u5230\u6839\u7269\u4ef6\uff1a{0}
-An_error_occurred_while_sa_ERROR_=IWAE0075E \u5132\u5b58\u6642\u767c\u751f\u932f\u8aa4\u3002
-Cannot_run_J2EEUIWorkingCo_ERROR_=IWAE0076E \u7121\u6cd5\u57f7\u884c J2EEUIWorkingCopyManager \u4f5c\u696d\uff0c\u56e0\u70ba\u5de5\u4f5c\u5340\u6a39\u72c0\u7d50\u69cb\u5df2\u9396\u5b9a\u3002
-Unable_to_save_read-only_f_ERROR_=IWAE0077E \u7121\u6cd5\u5132\u5b58\u552f\u8b80\u6a94\u6848\uff1a{0}
-The_following_resources_ne_UI_=\u4e0b\u5217\u8cc7\u6e90\u5fc5\u9808\u8981\u5132\u5b58\uff0c\u4f46\u76ee\u524d\u70ba\u5171\u7528\u7684\uff0c\u60a8\u73fe\u5728\u8981\u5132\u5b58\u55ce\uff1f
-
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 492f7aa01..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/j2eexml.properties
+++ /dev/null
@@ -1,28 +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
-###############################################################################
-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:
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/j2eexml_de.properties b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/j2eexml_de.properties
deleted file mode 100644
index fdd83d799..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/j2eexml_de.properties
+++ /dev/null
@@ -1,28 +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
-###############################################################################
-rar_dtd_not_found_EXC_=IWAE0078E Unterst\u00fctzung f\u00fcr RAR-Datei: DTD-Datei nicht gefunden: {0}
-io_ex_saving_EXC_=IWAE0079E E/A-Ausnahmebedingung beim Speichern von {0}.
-could_not_create_file_EXC_=IWAE0080E Die Datei mit dem Namen {0} konnte nicht erstellt werden.
-unsupported_encoding_EXC_=IWAE0081E {0} ist auf dieser Plattform keine unterst\u00fctzte Codierung.
-unsupported_type_EXC_=IWAE0082E Der Typ wird nicht erkannt oder noch nicht unterst\u00fctzt: PUBLIC_ID={0} SYSTEM_ID={1}
-dtd_not_found_EXC_=IWAE0083E F\u00fcr die XML konnte kein Parsing ausgef\u00fchrt werden, weil die aufgel\u00f6ste Ressourcen "{0}" nicht im Klassenpfad gefunden wurde.
-must_be_boolean_EXC_=IWAE0084E Beim Lesen von {0} ist eine Ausnahmebedingung aufgetreten. Der Wert muss ein Boolescher Wert sein: Zeichenfolgewert = {1}
-must_be_int_EXC_=IWAE0085E Beim Lesen von {0} ist eine Ausnahmebedingung aufgetreten. Der Wert muss eine ganze Zahl sein: Zeichenfolgewert = {1}
-empty_collection_EXC_=IWAE0086E Leere Collection f\u00fcr {0} in {1}
-missing_req_field_EXC_=IWAE0087E Das erforderliche Feld {0} in {1} fehlt.
-An_Exception_occurred_whil_EXC_=IWAE0088E Beim Schreiben von XML ist eine Ausnahmebedingung aufgetreten.
-Not_supported_in_this_rele_EXC_=IWAE0089E Keine Unterst\u00fctzung in diesem Release
-RAR_file_support__IO_excep_EXC_=IWAE0090E Unterst\u00fctzung f\u00fcr RAR-Datei: E/A-Ausnahmebedingung im angepassten DTD-Aufl\u00f6ser.
-An_IO_Exception_occurred_w_EXC_=IWAE0091E Beim Schreiben von XML ist eine Ausnahmebedingung aufgetreten.
-Failure_occurred_reading_x_EXC_=IWAE0092E Fehler beim Lesen von XML:
-Invalid_value_for__EXC_=IWAE0093E Ung\u00fcltiger Wert f\u00fcr
-Valid_values_are___EXC_=IWAE0094E G\u00fcltige Werte sind:
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/j2eexml_es.properties b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/j2eexml_es.properties
deleted file mode 100644
index 58721cfc7..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/j2eexml_es.properties
+++ /dev/null
@@ -1,28 +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
-###############################################################################
-rar_dtd_not_found_EXC_=IWAE0078E Soporte de archivo RAR: No se ha encontrado el archivo DTD: {0}
-io_ex_saving_EXC_=IWAE0079E Se ha producido una excepci\u00f3n de E/S al guardar {0}
-could_not_create_file_EXC_=IWAE0080E No se ha podido crear el archivo denominado {0}
-unsupported_encoding_EXC_=IWAE0081E {0} no es una codificaci\u00f3n soportada en esta plataforma
-unsupported_type_EXC_=IWAE0082E El tipo no est\u00e1 reconocido o todav\u00eda no est\u00e1 soportado: PUBLIC_ID={0} SYSTEM_ID={1}
-dtd_not_found_EXC_=IWAE0083E No se ha podido analizar xml ya que el recurso resuelto "{0}" no se ha podido encontrar en la v\u00eda de acceso de clases
-must_be_boolean_EXC_=IWAE0084E Se ha producido una excepci\u00f3n al leer {0}. El valor debe ser un booleano: Valor de la serie = {1}
-must_be_int_EXC_=IWAE0085E Se ha producido una excepci\u00f3n al leer {0}. El valor debe ser un entero: Valor de la serie = {1}
-empty_collection_EXC_=IWAE0086E Colecci\u00f3n vac\u00eda para {0} en {1}
-missing_req_field_EXC_=IWAE0087E Falta el campo obligatorio {0} en {1}
-An_Exception_occurred_whil_EXC_=IWAE0088E Se ha producido una excepci\u00f3n durante la escritura de xml
-Not_supported_in_this_rele_EXC_=IWAE0089E No soportado en este release
-RAR_file_support__IO_excep_EXC_=IWAE0090E Soporte de archivo RAR: excepci\u00f3n de E/S en resolutor de DTD personalizado.
-An_IO_Exception_occurred_w_EXC_=IWAE0091E Se ha producido una excepci\u00f3n de E/S durante la escritura de xml
-Failure_occurred_reading_x_EXC_=IWAE0092E Se ha producido una anomal\u00eda al leer xml:
-Invalid_value_for__EXC_=IWAE0093E Valor no v\u00e1lido para
-Valid_values_are___EXC_=IWAE0094E Los valores v\u00e1lidos son:
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/j2eexml_fr.properties b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/j2eexml_fr.properties
deleted file mode 100644
index f2bad0ef6..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/j2eexml_fr.properties
+++ /dev/null
@@ -1,28 +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
-###############################################################################
-rar_dtd_not_found_EXC_=IWAE0078E Support de fichier RAR : fichier DTD introuvable : {0}
-io_ex_saving_EXC_=IWAE0079E Une exception d''E-S s''est produite lors de la sauvegarde de {0}.
-could_not_create_file_EXC_=IWAE0080E Impossible de cr\u00e9er le fichier nomm\u00e9 {0}.
-unsupported_encoding_EXC_=IWAE0081E {0} n''est pas un encodage support\u00e9 sur cette plateforme.
-unsupported_type_EXC_=IWAE0082E Type non reconnu ou pas encore support\u00e9 : PUBLIC_ID={0} SYSTEM_ID={1}
-dtd_not_found_EXC_=IWAE0083E Impossible d''analyser le fichier xml car la ressource r\u00e9solue "{0}" est introuvable dans le chemin d''acc\u00e8s aux classes.
-must_be_boolean_EXC_=IWAE0084E Une exception s''est produite lors de la lecture de {0}. La valeur doit \u00eatre un bool\u00e9en : valeur de cha\u00eene = {1}
-must_be_int_EXC_=IWAE0085E Une exception s''est produite lors de la lecture de {0}. La valeur doit \u00eatre un entier : valeur de cha\u00eene = {1}
-empty_collection_EXC_=IWAE0086E Collection vide pour {0} dans {1}.
-missing_req_field_EXC_=IWAE0087E Zone requise manquante {0} dans {1}.
-An_Exception_occurred_whil_EXC_=IWAE0088E Une exception s'est produite lors de l'\u00e9criture du fichier xml
-Not_supported_in_this_rele_EXC_=IWAE0089E Non support\u00e9 dans cette \u00e9dition.
-RAR_file_support__IO_excep_EXC_=IWAE0090E Support du fichier RAR : exception d'E-S dans le r\u00e9solveur DTD personnalis\u00e9.
-An_IO_Exception_occurred_w_EXC_=IWAE0091E Une exception d'E-S s'est produite lors de l'\u00e9criture du fichier xml.
-Failure_occurred_reading_x_EXC_=IWAE0092E Echec lors de la lecture du fichier xml :
-Invalid_value_for__EXC_=IWAE0093E Valeur non valide pour
-Valid_values_are___EXC_=IWAE0094E Les valeurs valides sont :
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/j2eexml_it.properties b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/j2eexml_it.properties
deleted file mode 100644
index bd2bf17f1..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/j2eexml_it.properties
+++ /dev/null
@@ -1,28 +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
-###############################################################################
-rar_dtd_not_found_EXC_=IWAE0078E Supporto file RAR: impossibile trovare il file DTD: {0}
-io_ex_saving_EXC_=IWAE0079E Eccezione IO durante il salvataggio di {0}
-could_not_create_file_EXC_=IWAE0080E Impossibile creare il file {0}
-unsupported_encoding_EXC_=IWAE0081E {0} non \u00e8 un tipo di codice supportato su questa piattaforma
-unsupported_type_EXC_=IWAE0082E Tipo non riconosciuto o non supportato: PUBLIC_ID={0} SYSTEM_ID={1}
-dtd_not_found_EXC_=IWAE0083E Impossibile eseguire l''analisi xml. Risorsa risolta "{0}" non trovata nel percorso classi
-must_be_boolean_EXC_=IWAE0084E Eccezione durante la lettura di {0}. Il valore fornito deve essere booleano: valore stringa = {1}
-must_be_int_EXC_=IWAE0085E Eccezione durante la lettura di {0}. Il valore fornito deve essere un numero intero: valore stringa = {1}
-empty_collection_EXC_=IWAE0086E Insieme vuoto per {0} in {1}
-missing_req_field_EXC_=IWAE0087E Campo {0} richiesto mancante in {1}
-An_Exception_occurred_whil_EXC_=IWAE0088E Eccezione durante la scrittura xml
-Not_supported_in_this_rele_EXC_=IWAE0089E Non supportato in questa versione
-RAR_file_support__IO_excep_EXC_=IWAE0090E Supporto file RAR: eccezione IO nel resolver personalizzato DTD.
-An_IO_Exception_occurred_w_EXC_=IWAE0091E Eccezione IO durante la scrittura xml
-Failure_occurred_reading_x_EXC_=IWAE0092E Errore durante la lettura xml:
-Invalid_value_for__EXC_=IWAE0093E Valore non valido per
-Valid_values_are___EXC_=IWAE0094E I valori non validi sono:
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/j2eexml_ja.properties b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/j2eexml_ja.properties
deleted file mode 100644
index d48776b05..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/j2eexml_ja.properties
+++ /dev/null
@@ -1,28 +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
-###############################################################################
-rar_dtd_not_found_EXC_=IWAE0078E RAR \u30d5\u30a1\u30a4\u30eb\u30fb\u30b5\u30dd\u30fc\u30c8: DTD \u30d5\u30a1\u30a4\u30eb\u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093: {0}
-io_ex_saving_EXC_=IWAE0079E {0} \u3092\u4fdd\u7ba1\u4e2d\u306b I/O \u4f8b\u5916\u304c\u767a\u751f\u3057\u307e\u3057\u305f
-could_not_create_file_EXC_=IWAE0080E {0} \u3068\u3044\u3046\u540d\u524d\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f
-unsupported_encoding_EXC_=IWAE0081E {0} \u306f\u3001\u3053\u306e\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3067\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u3044\u308b\u30a8\u30f3\u30b3\u30fc\u30c9\u3067\u306f\u3042\u308a\u307e\u305b\u3093
-unsupported_type_EXC_=IWAE0082E \u30bf\u30a4\u30d7\u304c\u8a8d\u8b58\u3055\u308c\u306a\u3044\u304b\u3001\u307e\u305f\u306f\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u3044\u307e\u305b\u3093: PUBLIC_ID={0} SYSTEM_ID={1}
-dtd_not_found_EXC_=IWAE0083E \u30af\u30e9\u30b9\u30d1\u30b9\u3067\u89e3\u6c7a\u3055\u308c\u305f\u30ea\u30bd\u30fc\u30b9 "{0}" \u304c\u898b\u3064\u304b\u3089\u306a\u304b\u3063\u305f\u305f\u3081\u3001xml \u3092\u89e3\u6790\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f
-must_be_boolean_EXC_=IWAE0084E {0} \u3092\u8aad\u307f\u53d6\u308a\u4e2d\u306b\u4f8b\u5916\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002 \u5024\u306f\u30d6\u30fc\u30eb\u3067\u3042\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059: \u30b9\u30c8\u30ea\u30f3\u30b0\u5024 = {1}
-must_be_int_EXC_=IWAE0085E {0} \u3092\u8aad\u307f\u53d6\u308a\u4e2d\u306b\u4f8b\u5916\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002 \u5024\u306f\u6574\u6570\u3067\u3042\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059: \u30b9\u30c8\u30ea\u30f3\u30b0\u5024 = {1}
-empty_collection_EXC_=IWAE0086E {1} \u5185\u306e {0} \u306e\u30b3\u30ec\u30af\u30b7\u30e7\u30f3\u304c\u7a7a\u3067\u3059
-missing_req_field_EXC_=IWAE0087E {1} \u5185\u3067\u5fc5\u9808\u30d5\u30a3\u30fc\u30eb\u30c9 {0} \u304c\u6307\u5b9a\u3055\u308c\u3066\u3044\u307e\u305b\u3093
-An_Exception_occurred_whil_EXC_=IWAE0088E xml \u3092\u66f8\u304d\u8fbc\u307f\u4e2d\u306b\u4f8b\u5916\u304c\u767a\u751f\u3057\u307e\u3057\u305f
-Not_supported_in_this_rele_EXC_=IWAE0089E \u3053\u306e\u30ea\u30ea\u30fc\u30b9\u3067\u306f\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u3044\u307e\u305b\u3093
-RAR_file_support__IO_excep_EXC_=IWAE0090E RAR \u30d5\u30a1\u30a4\u30eb\u30fb\u30b5\u30dd\u30fc\u30c8: \u30ab\u30b9\u30bf\u30e0 DTD \u30ea\u30be\u30eb\u30d0\u30fc\u3067 I/O \u4f8b\u5916\u304c\u767a\u751f\u3057\u307e\u3057\u305f\u3002
-An_IO_Exception_occurred_w_EXC_=IWAE0091E xml \u3092\u66f8\u304d\u8fbc\u307f\u4e2d\u306b I/O \u4f8b\u5916\u304c\u767a\u751f\u3057\u307e\u3057\u305f
-Failure_occurred_reading_x_EXC_=IWAE0092E xml \u3092\u8aad\u307f\u53d6\u308a\u4e2d\u306b\u5931\u6557\u3057\u307e\u3057\u305f:
-Invalid_value_for__EXC_=IWAE0093E \u7121\u52b9\u306a\u5024
-Valid_values_are___EXC_=IWAE0094E \u6709\u52b9\u306a\u5024:
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/j2eexml_ko.properties b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/j2eexml_ko.properties
deleted file mode 100644
index 66c880b02..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/j2eexml_ko.properties
+++ /dev/null
@@ -1,28 +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
-###############################################################################
-rar_dtd_not_found_EXC_=IWAE0078E RAR \ud30c\uc77c \uc9c0\uc6d0: DTD \ud30c\uc77c \uc5c6\uc74c: {0}
-io_ex_saving_EXC_=IWAE0079E {0} \uc800\uc7a5 \uc911\uc5d0 IOException \ubc1c\uc0dd
-could_not_create_file_EXC_=IWAE0080E {0}(\uc774)\ub77c\ub294 \uc774\ub984\uc758 \ud30c\uc77c\uc744 \uc791\uc131\ud560 \uc218 \uc5c6\uc5c8\uc74c
-unsupported_encoding_EXC_=IWAE0081E {0}\uc740(\ub294) \uc774 \ud50c\ub7ab\ud3fc\uc5d0\uc11c \uc9c0\uc6d0\ub418\ub294 \uc778\ucf54\ub529\uc774 \uc544\ub2d8
-unsupported_type_EXC_=IWAE0082E \uc720\ud615\uc774 \uc778\uc2dd\ub418\uc9c0 \uc54a\uac70\ub098 \uc544\uc9c1 \uc9c0\uc6d0\ub418\uc9c0 \uc54a\uc74c: PUBLIC_ID={0} SYSTEM_ID={1}
-dtd_not_found_EXC_=IWAE0083E \ubd84\uc11d\ub41c "{0}" \uc790\uc6d0\uc744 \ud074\ub798\uc2a4 \uacbd\ub85c\uc5d0\uc11c \ucc3e\uc744 \uc218 \uc5c6\uc5c8\uae30 \ub54c\ubb38\uc5d0 xml\uc758 \uad6c\ubb38\uc744 \ubd84\uc11d\ud560 \uc218 \uc5c6\uc5c8\uc74c
-must_be_boolean_EXC_=IWAE0084E {0}\uc744(\ub97c) \uc77d\ub294 \uc911\uc5d0 \uc608\uc678\uac00 \ubc1c\uc0dd\ud588\uc2b5\ub2c8\ub2e4. \uac12\uc774 \ubd80\uc6b8\uc774\uc5b4\uc57c \ud568: \ubb38\uc790\uc5f4 \uac12 = {1}
-must_be_int_EXC_=IWAE0085E {0}\uc744(\ub97c) \uc77d\ub294 \uc911\uc5d0 \uc608\uc678\uac00 \ubc1c\uc0dd\ud588\uc2b5\ub2c8\ub2e4. \uac12\uc774 \uc815\uc218\uc5ec\uc57c \ud568: \ubb38\uc790\uc5f4 \uac12 = {1}
-empty_collection_EXC_=IWAE0086E {1}\uc5d0\uc11c {0}\uc5d0 \ub300\ud55c \ucf5c\ub809\uc158\uc774 \ube44\uc5b4 \uc788\uc74c
-missing_req_field_EXC_=IWAE0087E {1}\uc5d0\uc11c {0} \ud544\uc218 \ud544\ub4dc\uac00 \uc5c6\uc74c
-An_Exception_occurred_whil_EXC_=IWAE0088E xml\uc744 \uc4f0\ub294 \ub3d9\uc548 \uc608\uc678 \ubc1c\uc0dd
-Not_supported_in_this_rele_EXC_=IWAE0089E \uc774 \ub9b4\ub9ac\uc2a4\uc5d0\uc11c\ub294 \uc9c0\uc6d0\ub418\uc9c0 \uc54a\uc74c
-RAR_file_support__IO_excep_EXC_=IWAE0090E RAR \ud30c\uc77c \uc9c0\uc6d0: \uc0ac\uc6a9\uc790 \uc815\uc758 DTD \ubd84\uc11d\uae30\uc5d0\uc11c IO \uc608\uc678.
-An_IO_Exception_occurred_w_EXC_=IWAE0091E xml\uc744 \uc4f0\ub294 \ub3d9\uc548 IO \uc608\uc678 \ubc1c\uc0dd
-Failure_occurred_reading_x_EXC_=IWAE0092E xml\uc744 \uc77d\ub294 \uc911\uc5d0 \uc7a5\uc560 \ubc1c\uc0dd:
-Invalid_value_for__EXC_=IWAE0093E \ub2e4\uc74c\uc5d0 \uc720\ud6a8\ud558\uc9c0 \uc54a\uc740 \uac12 -
-Valid_values_are___EXC_=IWAE0094E \uc62c\ubc14\ub978 \uac12:
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/j2eexml_pt_BR.properties b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/j2eexml_pt_BR.properties
deleted file mode 100644
index e23899f69..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/j2eexml_pt_BR.properties
+++ /dev/null
@@ -1,28 +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
-###############################################################################
-rar_dtd_not_found_EXC_=IWAE0078E Suporte ao arquivo RAR: arquivo DTD n\u00e3o encontrado: {0}
-io_ex_saving_EXC_=IWAE0079E Ocorreu uma Exce\u00e7\u00e3o E/S ao salvar {0}
-could_not_create_file_EXC_=IWAE0080E N\u00e3o foi poss\u00edvel criar o arquivo denominado {0}
-unsupported_encoding_EXC_=IWAE0081E {0} n\u00e3o \u00e9 uma codifica\u00e7\u00e3o suportada nesta plataforma
-unsupported_type_EXC_=IWAE0082E O tipo n\u00e3o \u00e9 reconhecido ou ainda n\u00e3o \u00e9 suportado: PUBLIC_ID={0} SYSTEM_ID={1}
-dtd_not_found_EXC_=IWAE0083E N\u00e3o foi poss\u00edvel analisar xml porque o recurso resolvido "{0}" n\u00e3o p\u00f4de ser encontrado no classpath
-must_be_boolean_EXC_=IWAE0084E Ocorreu uma exce\u00e7\u00e3o ao ler {0}. O valor deve ser um booleano: Valor de cadeia = {1}
-must_be_int_EXC_=IWAE0085E Ocorreu uma exce\u00e7\u00e3o ao ler {0}. O valor deve ser um inteiro: Valor de cadeia = {1}
-empty_collection_EXC_=IWAE0086E Coleta vazia para {0} em {1}
-missing_req_field_EXC_=IWAE0087E Campo requerido ausente {0} em {1}
-An_Exception_occurred_whil_EXC_=IWAE0088E Ocorreu uma Exce\u00e7\u00e3o durante a grava\u00e7\u00e3o de xml
-Not_supported_in_this_rele_EXC_=IWAE0089E N\u00e3o suportado neste release
-RAR_file_support__IO_excep_EXC_=IWAE0090E Suporte ao arquivo RAR: exce\u00e7\u00e3o ES no solucionador DTD personalizado.
-An_IO_Exception_occurred_w_EXC_=IWAE0091E Ocorreu uma Exce\u00e7\u00e3o E/S durante a grava\u00e7\u00e3o de xml
-Failure_occurred_reading_x_EXC_=IWAE0092E Ocorreu uma falha ao ler xml:
-Invalid_value_for__EXC_=IWAE0093E Valor inv\u00e1lido para
-Valid_values_are___EXC_=IWAE0094E Os valores v\u00e1lidos s\u00e3o:
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/j2eexml_zh.properties b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/j2eexml_zh.properties
deleted file mode 100644
index 5a28ade88..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/j2eexml_zh.properties
+++ /dev/null
@@ -1,28 +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
-###############################################################################
-rar_dtd_not_found_EXC_=IWAE0078E RAR \u6587\u4ef6\u652f\u6301\uff1a\u627e\u4e0d\u5230 DTD \u6587\u4ef6\uff1a{0}
-io_ex_saving_EXC_=IWAE0079E \u4fdd\u5b58 {0} \u65f6\u53d1\u751f\u4e86 IO \u5f02\u5e38
-could_not_create_file_EXC_=IWAE0080E \u672a\u80fd\u521b\u5efa\u540d\u4e3a {0} \u7684\u6587\u4ef6
-unsupported_encoding_EXC_=IWAE0081E {0} \u5728\u6b64\u5e73\u53f0\u4e0a\u4e0d\u662f\u53d7\u652f\u6301\u7684\u7f16\u7801
-unsupported_type_EXC_=IWAE0082E \u7c7b\u578b\u4e0d\u80fd\u8bc6\u522b\u6216\u5c1a\u672a\u53d7\u652f\u6301\uff1aPUBLIC_ID={0} SYSTEM_ID={1}
-dtd_not_found_EXC_=IWAE0083E \u672a\u80fd\u89e3\u6790 xml\uff0c\u539f\u56e0\u662f\u5728\u7c7b\u8def\u5f84\u4e2d\u627e\u4e0d\u5230\u5df2\u89e3\u6790\u8d44\u6e90\u201c{0}\u201d
-must_be_boolean_EXC_=IWAE0084E \u8bfb\u53d6 {0} \u65f6\u53d1\u751f\u4e86\u5f02\u5e38\u3002\u503c\u5fc5\u987b\u4e3a\u5e03\u5c14\u503c\uff1a\u5b57\u7b26\u4e32\u503c = {1}
-must_be_int_EXC_=IWAE0085E \u8bfb\u53d6 {0} \u65f6\u53d1\u751f\u4e86\u5f02\u5e38\u3002\u503c\u5fc5\u987b\u4e3a\u6574\u6570\uff1a\u5b57\u7b26\u4e32\u503c = {1}
-empty_collection_EXC_=IWAE0086E {1} \u4e2d {0} \u7684\u96c6\u5408\u4e3a\u7a7a
-missing_req_field_EXC_=IWAE0087E {1} \u4e2d\u4e22\u5931\u5fc5\u9700\u7684\u5b57\u6bb5 {0}
-An_Exception_occurred_whil_EXC_=IWAE0088E \u7f16\u5199 xml \u65f6\u53d1\u751f\u4e86\u5f02\u5e38
-Not_supported_in_this_rele_EXC_=IWAE0089E \u5728\u6b64\u53d1\u884c\u7248\u4e2d\u4e0d\u53d7\u652f\u6301
-RAR_file_support__IO_excep_EXC_=IWAE0090E RAR \u6587\u4ef6\u652f\u6301\uff1a\u5b9a\u5236 DTD \u89e3\u6790\u5668\u4e2d\u5b58\u5728 IO \u5f02\u5e38\u3002
-An_IO_Exception_occurred_w_EXC_=IWAE0091E \u7f16\u5199 xml \u65f6\u53d1\u751f\u4e86 IO \u5f02\u5e38
-Failure_occurred_reading_x_EXC_=IWAE0092E \u8bfb\u53d6 xml \u65f6\u53d1\u751f\u4e86\u6545\u969c\uff1a
-Invalid_value_for__EXC_=IWAE0093E \u503c\u65e0\u6548
-Valid_values_are___EXC_=IWAE0094E \u6709\u6548\u503c\u4e3a\uff1a
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/j2eexml_zh_TW.properties b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/j2eexml_zh_TW.properties
deleted file mode 100644
index 8f9149b57..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/j2eexml_zh_TW.properties
+++ /dev/null
@@ -1,28 +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
-###############################################################################
-rar_dtd_not_found_EXC_=IWAE0078E RAR \u6a94\u652f\u63f4\uff1a\u627e\u4e0d\u5230 DTD \u6a94\uff1a{0}
-io_ex_saving_EXC_=IWAE0079E \u5132\u5b58 {0} \u6642\u767c\u751f IOException
-could_not_create_file_EXC_=IWAE0080E \u7121\u6cd5\u5efa\u7acb {0} \u6a94
-unsupported_encoding_EXC_=IWAE0081E \u5728\u9019\u500b\u5e73\u53f0\u4e0a {0} \u4e0d\u662f\u652f\u63f4\u7684\u7de8\u78bc
-unsupported_type_EXC_=IWAE0082E \u7121\u6cd5\u8fa8\u8b58\u985e\u578b\u6216\u5c1a\u4e0d\u652f\u63f4\uff1aPUBLIC_ID={0} SYSTEM_ID={1}
-dtd_not_found_EXC_=IWAE0083E \u7121\u6cd5\u5256\u6790 xml\uff0c\u56e0\u70ba\u5728\u985e\u5225\u8def\u5f91\u627e\u4e0d\u5230\u89e3\u6790\u7684\u8cc7\u6e90 "{0}"
-must_be_boolean_EXC_=IWAE0084E \u8b80\u53d6 {0} \u6642\u767c\u751f\u7570\u5e38\u72c0\u6cc1\u3002\u503c\u5fc5\u9808\u662f Boolean\uff1aString \u503c = {1}
-must_be_int_EXC_=IWAE0085E \u8b80\u53d6 {0} \u6642\u767c\u751f\u7570\u5e38\u72c0\u6cc1\u3002\u503c\u5fc5\u9808\u662f\u6574\u6578\uff1aString \u503c = {1}
-empty_collection_EXC_=IWAE0086E {1} \u4e2d\u7684 {0} \u7684\u7a7a\u96c6\u5408
-missing_req_field_EXC_=IWAE0087E {1} \u4e2d\u907a\u6f0f\u5fc5\u8981\u7684\u6b04\u4f4d {0}
-An_Exception_occurred_whil_EXC_=IWAE0088E \u64b0\u5beb xml \u6642\u767c\u751f\u7570\u5e38\u72c0\u6cc1
-Not_supported_in_this_rele_EXC_=IWAE0089E \u672c\u7248\u6b21\u4e0d\u652f\u63f4
-RAR_file_support__IO_excep_EXC_=IWAE0090E RAR \u6a94\u652f\u63f4\uff1a\u81ea\u8a02\u7684 DTD \u5206\u8fa8\u5668\u767c\u751f IO \u7570\u5e38\u72c0\u6cc1\u3002
-An_IO_Exception_occurred_w_EXC_=IWAE0091E \u64b0\u5beb xml \u6642\u767c\u751f IO \u7570\u5e38\u72c0\u6cc1
-Failure_occurred_reading_x_EXC_=IWAE0092E \u8b80\u53d6 xml \u6642\u767c\u751f\u5931\u6557\uff1a
-Invalid_value_for__EXC_=IWAE0093E \u7121\u6548\u503c
-Valid_values_are___EXC_=IWAE0094E \u7121\u6548\u503c\uff1a
-
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 8745d941a..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/mofj2ee.properties
+++ /dev/null
@@ -1,28 +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
-###############################################################################
-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/mofj2ee_de.properties b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/mofj2ee_de.properties
deleted file mode 100644
index 47f37dbb4..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/mofj2ee_de.properties
+++ /dev/null
@@ -1,28 +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
-###############################################################################
-Stack_trace_of_nested_exce=Stack-Trace der verschachtelten Ausnahmebedingung:
-ERROR=Fehler:
-WARNING=Warnung:
-INFO=Info:
-DEFAULT_COMPLETED_STATUS_MSG=Die Migration von {0} ist abgeschlossen.
-DEFAULT_NOT_NEEDED_STATUS_MSG=Die Migration von {0} war nicht erforderlich.
-DEFAULT_NOT_POSSIBLE_STATUS_MSG=Die Migration von {0} war nicht m\u00f6glich.
-DEFAULT_ERROR_STATUS_MSG=IWAE0100E Fehler beim Migrieren von {0}.
-REMOVED_LOCAL_CLIENT_MSG=Die lokale Clientsicht f\u00fcr EJB {0} wurde entfernt.
-REMOVED_ACCESS_INTENTS_MSG=Die Werte f\u00fcr den geplanten Zugriff auf {0} 1.1-Methoden wurden aus der CMP-Bean {1} entfernt.
-REMOVED_ISOLATION_LEVELS_MSG=Die Isolationsstufen f\u00fcr {0} 1.1-Methoden wurden aus der CMP-Bean {1} entfernt.
-CONVERTED_FINDER_MSG=Der Finderdeskriptor f\u00fcr {0} in der CMP-Bean {1} wurde konvertiert. Die EJB QL-Abfrage k\u00f6nnen Sie mit dem EJB-Editor aktualisieren.
-UNNAMED_EJB=<Nicht benannte CMP-Bean>
-CONVERTED_QUERY_DESCRIPTION=Konvertiert aus IBM Erweiterung der Version 1.1
-MIGRATED_DEFAULT_DATASOURCE_JAR_MSG=Das Standarddatenquellenbinding wurde f\u00fcr die EJB-JAR \"{0}\" auf ein Standardbinding f\u00fcr eine CMP-Verbindungsfactory migriert.
-MIGRATED_DEFAULT_DATASOURCE_MSG=Das Standarddatenquellenbinding wurde f\u00fcr die EJB-JAR auf ein Standardbinding f\u00fcr eine CMP-Verbindungsfactory migriert.
-J2EE_VERSION_NULL_ERROR=Die J2EE-Version des Objekts kann nicht ermittelt werden, da es nicht in einem Dokument enthalten ist.
-J2EE_VERSION_PROXY_ERROR=Die J2EE-Version des Referenzobjekts kann nicht ermittelt werden, da der Proxy nicht aufgel\u00f6st werden kann. Pr\u00fcfen Sie die IDs in den Deploymentdeskriptordateien. HREF = {0}.
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/mofj2ee_es.properties b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/mofj2ee_es.properties
deleted file mode 100644
index 545561219..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/mofj2ee_es.properties
+++ /dev/null
@@ -1,28 +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
-###############################################################################
-Stack_trace_of_nested_exce=Rastreo de pila de excepci\u00f3n anidada:
-ERROR=Error:
-WARNING=Aviso:
-INFO=Informaci\u00f3n:
-DEFAULT_COMPLETED_STATUS_MSG=Se ha completado la migraci\u00f3n para {0}.
-DEFAULT_NOT_NEEDED_STATUS_MSG=No era necesaria la migraci\u00f3n para {0}.
-DEFAULT_NOT_POSSIBLE_STATUS_MSG=No era posible la migraci\u00f3n para {0}.
-DEFAULT_ERROR_STATUS_MSG=IWAE0100E Error al migrar {0}.
-REMOVED_LOCAL_CLIENT_MSG=Se ha eliminado vista de cliente local para EJB {0}.
-REMOVED_ACCESS_INTENTS_MSG=Se han eliminado {0} prop\u00f3sitos de acceso al m\u00e9todo 1.1 del bean CMP {1}.
-REMOVED_ISOLATION_LEVELS_MSG=Se han eliminado {0} niveles de aislamiento de m\u00e9todo 1.1 del bean CMP {1}.
-CONVERTED_FINDER_MSG=Se ha convertido el descriptor de buscador para {0} en el bean CMP {1}. Utilice el editor EJB para actualizar el EJB QL de consulta.
-UNNAMED_EJB=<Bean CMP sin nombre>
-CONVERTED_QUERY_DESCRIPTION=Convertido a partir de extensiones IBM versi\u00f3n 1.1.
-MIGRATED_DEFAULT_DATASOURCE_JAR_MSG=El enlace de origen de datos predeterminado se ha migrado a un enlace de f\u00e1brica de conexiones CMP predeterminado para el JAR EJB \"{0}\".
-MIGRATED_DEFAULT_DATASOURCE_MSG=El enlace de origen de datos predeterminado se ha migrado a un enlace de f\u00e1brica de conexiones CMP predeterminado para el JAR EJB.
-J2EE_VERSION_NULL_ERROR=No se puede obtener la versi\u00f3n de J2EE del objeto ya que este no est\u00e1 en un documento.
-J2EE_VERSION_PROXY_ERROR=No se puede obtener la versi\u00f3n de J2EE del objeto al que se hace referencia ya que el proxy no puede resolverse. Compruebe los ID en los archivos de descriptor de despliegue. HREF = {0}.
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/mofj2ee_fr.properties b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/mofj2ee_fr.properties
deleted file mode 100644
index 8c37edcc5..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/mofj2ee_fr.properties
+++ /dev/null
@@ -1,28 +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
-###############################################################################
-Stack_trace_of_nested_exce=Trace de pile de l'exception imbriqu\u00e9e :
-ERROR=Erreur :
-WARNING=Avertissement :
-INFO=Information :
-DEFAULT_COMPLETED_STATUS_MSG=Migration termin\u00e9e pour {0}.
-DEFAULT_NOT_NEEDED_STATUS_MSG=Migration non requise pour {0}.
-DEFAULT_NOT_POSSIBLE_STATUS_MSG=Migration impossible pour {0}.
-DEFAULT_ERROR_STATUS_MSG=IWAE0100E Erreur lors de la migration de {0}.
-REMOVED_LOCAL_CLIENT_MSG=Vue du client local supprim\u00e9e pour l''EJB {0}.
-REMOVED_ACCESS_INTENTS_MSG=Tentatives d''acc\u00e8s \u00e0 la m\u00e9thode 1.1 {0} supprim\u00e9es du bean CMP {1}.
-REMOVED_ISOLATION_LEVELS_MSG=Niveaux d''isolement \u00e0 la m\u00e9thode 1.1 {0} supprim\u00e9s du bean CMP {1}.
-CONVERTED_FINDER_MSG=Descripteur de m\u00e9thode finder de {0} converti dans le bean CMP {1}. Utilisez l''\u00e9diteur d''EJB pour mettre \u00e0 jour la requ\u00eate EJB QL.
-UNNAMED_EJB=<bean CMP sans nom>
-CONVERTED_QUERY_DESCRIPTION=Convertie \u00e0 partir des extensions d'IBM version 1.1.
-MIGRATED_DEFAULT_DATASOURCE_JAR_MSG=Liaison de source de donn\u00e9es par d\u00e9faut migr\u00e9e vers une liaison de fabrique de connexions CMP par d\u00e9faut pour EJB JAR \"{0}\".
-MIGRATED_DEFAULT_DATASOURCE_MSG=Liaison de source de donn\u00e9es par d\u00e9faut migr\u00e9e vers une liaison de fabrique de connexions CMP par d\u00e9faut pour EJB JAR.
-J2EE_VERSION_NULL_ERROR=Impossible d'obtenir la version J2EE de l'objet car elle ne figure pas dans un document.
-J2EE_VERSION_PROXY_ERROR=Impossible d''obtenir la version J2EE de l''objet r\u00e9f\u00e9renc\u00e9 car le proxy ne peut pas \u00eatre converti. V\u00e9rifiez les ID dans les fichiers de descripteur de d\u00e9ploiement. HREF = {0}.
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/mofj2ee_it.properties b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/mofj2ee_it.properties
deleted file mode 100644
index 8f8144de0..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/mofj2ee_it.properties
+++ /dev/null
@@ -1,28 +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
-###############################################################################
-Stack_trace_of_nested_exce=Traccia nello stack dell'eccezione nidificata:
-ERROR=Errore:
-WARNING=Avviso:
-INFO=Info:
-DEFAULT_COMPLETED_STATUS_MSG=La migrazione di {0} \u00e8 stata completata.
-DEFAULT_NOT_NEEDED_STATUS_MSG=La migrazione di {0} non \u00e8 stata richiesta.
-DEFAULT_NOT_POSSIBLE_STATUS_MSG=La migrazione di {0} non \u00e8 stata possibile.
-DEFAULT_ERROR_STATUS_MSG=IWAE0100E Errore durante la migrazione di {0}.
-REMOVED_LOCAL_CLIENT_MSG=Vista client locale per EJB {0} rimossa.
-REMOVED_ACCESS_INTENTS_MSG=Intenti di accesso al metodo {0} 1.1 rimossi dal bean CMP {1}.
-REMOVED_ISOLATION_LEVELS_MSG=Livelli di isolamento del metodo {0} 1.1 rimossi dal bean CMP {1}.
-CONVERTED_FINDER_MSG=Descrittore finder per {0} convertito in bean CMP {1}. Utilizzare l'editor EJB per l'aggiornamento della query EJB QL.
-UNNAMED_EJB=<Unnamed CMP bean>
-CONVERTED_QUERY_DESCRIPTION=Convertito dalle estensioni della versione 1.1 di IBM.
-MIGRATED_DEFAULT_DATASOURCE_JAR_MSG=Eseguita migrazione della binding di origine dati predefinita verso la binding di un factory di connessione predefinito CMP per JAR EJB \"{0}\".
-MIGRATED_DEFAULT_DATASOURCE_MSG=Eseguita migrazione della binding di origine dati predefinita verso la binding di un factory di connessione predefinito CMP per JAR EJB.
-J2EE_VERSION_NULL_ERROR=Impossibile ottenere la versione J2EE dell'oggetto perch\u00e9 non \u00e8 contenuta in un documento.
-J2EE_VERSION_PROXY_ERROR=Impossibile ottenere la versione J2EE dell'oggetto indicato come riferimento perch\u00e9 non \u00e8 possibile risolvere il proxy. Verificare gli ID nei file del descrittore di distribuzione. HREF = {0}.
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/mofj2ee_ja.properties b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/mofj2ee_ja.properties
deleted file mode 100644
index ddd5ffb99..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/mofj2ee_ja.properties
+++ /dev/null
@@ -1,28 +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
-###############################################################################
-Stack_trace_of_nested_exce=\u30cd\u30b9\u30c8\u3055\u308c\u305f\u4f8b\u5916\u306e\u30b9\u30bf\u30c3\u30af\u30fb\u30c8\u30ec\u30fc\u30b9:
-ERROR=\u30a8\u30e9\u30fc:
-WARNING=\u8b66\u544a:
-INFO=\u60c5\u5831:
-DEFAULT_COMPLETED_STATUS_MSG={0} \u306e\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u304c\u5b8c\u4e86\u3057\u307e\u3057\u305f\u3002
-DEFAULT_NOT_NEEDED_STATUS_MSG={0} \u306e\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u306f\u5fc5\u8981\u3042\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u3002
-DEFAULT_NOT_POSSIBLE_STATUS_MSG={0} \u306e\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u306f\u4e0d\u53ef\u80fd\u3067\u3057\u305f\u3002
-DEFAULT_ERROR_STATUS_MSG=IWAE0100E {0} \u306e\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u4e2d\u306b\u30a8\u30e9\u30fc\u3002
-REMOVED_LOCAL_CLIENT_MSG=EJB {0} \u306e\u30ed\u30fc\u30ab\u30eb\u30fb\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30fb\u30d3\u30e5\u30fc\u3092\u9664\u53bb\u3057\u307e\u3057\u305f\u3002
-REMOVED_ACCESS_INTENTS_MSG=CMP Bean {1} \u304b\u3089 {0} 1.1 \u30e1\u30bd\u30c3\u30c9\u30fb\u30a2\u30af\u30bb\u30b9\u30fb\u30a4\u30f3\u30c6\u30f3\u30c8\u3092\u9664\u53bb\u3057\u307e\u3057\u305f\u3002
-REMOVED_ISOLATION_LEVELS_MSG=CMP Bean {1} \u304b\u3089 {0} 1.1 \u30e1\u30bd\u30c3\u30c9\u5206\u96e2\u30ec\u30d9\u30eb\u3092\u9664\u53bb\u3057\u307e\u3057\u305f\u3002
-CONVERTED_FINDER_MSG=CMP Bean {1} \u5185 {0} \u306e\u30d5\u30a1\u30a4\u30f3\u30c0\u30fc\u8a18\u8ff0\u5b50\u3092\u5909\u63db\u3057\u307e\u3057\u305f\u3002 EJB \u30a8\u30c7\u30a3\u30bf\u30fc\u3092\u4f7f\u7528\u3057\u3066\u3001\u7167\u4f1a EJB QL \u3092\u66f4\u65b0\u3057\u3066\u304f\u3060\u3055\u3044\u3002
-UNNAMED_EJB=<\u540d\u524d\u306a\u3057 CMP Bean>
-CONVERTED_QUERY_DESCRIPTION=IBM \u30d0\u30fc\u30b8\u30e7\u30f3 1.1 \u62e1\u5f35\u304b\u3089\u5909\u63db\u3057\u307e\u3057\u305f\u3002
-MIGRATED_DEFAULT_DATASOURCE_JAR_MSG=\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30c7\u30fc\u30bf\u30fb\u30bd\u30fc\u30b9\u30fb\u30d0\u30a4\u30f3\u30c7\u30a3\u30f3\u30b0\u3092\u3001EJB JAR \"{0}\" \u306e\u30c7\u30d5\u30a9\u30eb\u30c8 CMP \u63a5\u7d9a\u30d5\u30a1\u30af\u30c8\u30ea\u30fc\u30fb\u30d0\u30a4\u30f3\u30c7\u30a3\u30f3\u30b0\u306b\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u3057\u307e\u3057\u305f\u3002
-MIGRATED_DEFAULT_DATASOURCE_MSG=\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30c7\u30fc\u30bf\u30fb\u30bd\u30fc\u30b9\u30fb\u30d0\u30a4\u30f3\u30c7\u30a3\u30f3\u30b0\u3092\u3001EJB JAR \u306e\u30c7\u30d5\u30a9\u30eb\u30c8 CMP \u63a5\u7d9a\u30d5\u30a1\u30af\u30c8\u30ea\u30fc\u30fb\u30d0\u30a4\u30f3\u30c7\u30a3\u30f3\u30b0\u306b\u30de\u30a4\u30b0\u30ec\u30fc\u30b7\u30e7\u30f3\u3057\u307e\u3057\u305f\u3002
-J2EE_VERSION_NULL_ERROR=\u6587\u66f8\u306b\u542b\u307e\u308c\u3066\u3044\u306a\u3044\u305f\u3081\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e J2EE \u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u53d6\u5f97\u3067\u304d\u307e\u305b\u3093\u3002
-J2EE_VERSION_PROXY_ERROR=\u30d7\u30ed\u30ad\u30b7\u30fc\u3092\u89e3\u6c7a\u3067\u304d\u306a\u3044\u305f\u3081\u3001\u53c2\u7167\u3055\u308c\u3066\u3044\u308b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u306e J2EE \u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u53d6\u5f97\u3067\u304d\u307e\u305b\u3093\u3002 \u30c7\u30d7\u30ed\u30a4\u30e1\u30f3\u30c8\u8a18\u8ff0\u5b50\u30d5\u30a1\u30a4\u30eb\u5185\u306e ID \u3092\u30c1\u30a7\u30c3\u30af\u3057\u3066\u304f\u3060\u3055\u3044\u3002 HREF = {0}\u3002
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/mofj2ee_ko.properties b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/mofj2ee_ko.properties
deleted file mode 100644
index 8c6fb4db4..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/mofj2ee_ko.properties
+++ /dev/null
@@ -1,28 +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
-###############################################################################
-Stack_trace_of_nested_exce=\uc911\ucca9\ub41c \uc608\uc678\uc758 \uc2a4\ud0dd \ucd94\uc801:
-ERROR=\uc624\ub958:
-WARNING=\uacbd\uace0:
-INFO=\uc815\ubcf4:
-DEFAULT_COMPLETED_STATUS_MSG={0}\uc5d0 \ub300\ud55c \uc774\uc8fc\uac00 \uc644\ub8cc\ub418\uc5c8\uc2b5\ub2c8\ub2e4.
-DEFAULT_NOT_NEEDED_STATUS_MSG={0}\uc5d0 \ub300\ud574 \uc774\uc8fc\uac00 \ud544\uc694\ud558\uc9c0 \uc54a\uc558\uc2b5\ub2c8\ub2e4.
-DEFAULT_NOT_POSSIBLE_STATUS_MSG={0}\uc5d0 \ub300\ud574 \uc774\uc8fc\uac00 \ubd88\uac00\ub2a5\ud588\uc2b5\ub2c8\ub2e4.
-DEFAULT_ERROR_STATUS_MSG=IWAE0100E {0} \uc774\uc8fc \uc911 \uc624\ub958 \ubc1c\uc0dd.
-REMOVED_LOCAL_CLIENT_MSG={0} EJB\uc758 \ub85c\uceec \ud074\ub77c\uc774\uc5b8\ud2b8 \ubcf4\uae30\ub97c \uc81c\uac70\ud588\uc2b5\ub2c8\ub2e4.
-REMOVED_ACCESS_INTENTS_MSG={1} CMP Bean\uc5d0\uc11c {0} 1.1 \uba54\uc18c\ub4dc \uc561\uc138\uc2a4 \ubaa9\uc801\uc744 \uc81c\uac70\ud588\uc2b5\ub2c8\ub2e4.
-REMOVED_ISOLATION_LEVELS_MSG={1} CMP Bean\uc5d0\uc11c {0} 1.1 \uba54\uc18c\ub4dc \ubd84\ub9ac \ub808\ubca8\uc744 \uc81c\uac70\ud588\uc2b5\ub2c8\ub2e4.
-CONVERTED_FINDER_MSG={1} CMP Bean\uc5d0\uc11c {0}\uc5d0 \ub300\ud55c \ud30c\uc778\ub354 \uc124\uba85\uc790\ub97c \ubcc0\ud658\ud588\uc2b5\ub2c8\ub2e4. EJB \ud3b8\uc9d1\uae30\ub97c \uc0ac\uc6a9\ud558\uc5ec \uc870\ud68c EJB QL\uc744 \uac31\uc2e0\ud558\uc2ed\uc2dc\uc624.
-UNNAMED_EJB=<\uc774\ub984 \uc5c6\ub294 CMP Bean>
-CONVERTED_QUERY_DESCRIPTION=IBM \ubc84\uc804 1.1 \ud655\uc7a5\uc5d0\uc11c \ubcc0\ud658\ud588\uc2b5\ub2c8\ub2e4.
-MIGRATED_DEFAULT_DATASOURCE_JAR_MSG=EJB JAR \"{0}\"\uc5d0 \ub300\ud574 \uae30\ubcf8 \ub370\uc774\ud130 \uc18c\uc2a4 \ubc14\uc778\ub529\uc5d0\uc11c \uae30\ubcf8 CMP \uc5f0\uacb0 \ud329\ud1a0\ub9ac \ubc14\uc778\ub529\uc73c\ub85c \uc774\uc8fc\ud588\uc2b5\ub2c8\ub2e4.
-MIGRATED_DEFAULT_DATASOURCE_MSG=EJB JAR\uc5d0 \ub300\ud574 \uae30\ubcf8 \ub370\uc774\ud130 \uc18c\uc2a4 \ubc14\uc778\ub529\uc5d0\uc11c \uae30\ubcf8 CMP \uc5f0\uacb0 \ud329\ud1a0\ub9ac \ubc14\uc778\ub529\uc73c\ub85c \uc774\uc8fc\ud588\uc2b5\ub2c8\ub2e4.
-J2EE_VERSION_NULL_ERROR=\uc624\ube0c\uc81d\ud2b8\uc758 J2EE \ubc84\uc804\uc774 \ubb38\uc11c\uc5d0 \uc5c6\uae30 \ub54c\ubb38\uc5d0 \uac00\uc838\uc62c \uc218 \uc5c6\uc2b5\ub2c8\ub2e4.
-J2EE_VERSION_PROXY_ERROR=\ud504\ub85d\uc2dc\uac00 \ubd84\uc11d\ub420 \uc218 \uc5c6\uae30 \ub54c\ubb38\uc5d0 \ucc38\uc870\ub418\ub294 \uc624\ube0c\uc81d\ud2b8\uc758 J2EE \ubc84\uc804\uc744 \uac00\uc838\uc62c \uc218 \uc5c6\uc2b5\ub2c8\ub2e4. \uc804\uac1c \uc124\uba85\uc790 \ud30c\uc77c\uc5d0 \uc788\ub294 ID\ub97c \ud655\uc778\ud558\uc2ed\uc2dc\uc624. HREF = {0}.
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/mofj2ee_pt_BR.properties b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/mofj2ee_pt_BR.properties
deleted file mode 100644
index 51b93243a..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/mofj2ee_pt_BR.properties
+++ /dev/null
@@ -1,28 +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
-###############################################################################
-Stack_trace_of_nested_exce=Rastreio de pilha da exce\u00e7\u00e3o aninhada:
-ERROR=Erro:
-WARNING=Aviso:
-INFO=Informa\u00e7\u00f5es:
-DEFAULT_COMPLETED_STATUS_MSG=A migra\u00e7\u00e3o foi conclu\u00edda para {0}.
-DEFAULT_NOT_NEEDED_STATUS_MSG=A migra\u00e7\u00e3o n\u00e3o era necess\u00e1ria para {0}.
-DEFAULT_NOT_POSSIBLE_STATUS_MSG=A migra\u00e7\u00e3o n\u00e3o foi poss\u00edvel para {0}.
-DEFAULT_ERROR_STATUS_MSG=IWAE0100E Erro ao migrar {0}.
-REMOVED_LOCAL_CLIENT_MSG=A exibi\u00e7\u00e3o local de cliente foi removida para o EJB {0}.
-REMOVED_ACCESS_INTENTS_MSG=As inten\u00e7\u00f5es de acesso do m\u00e9todo {0} 1.1 foram removidas do bean CMP {1}.
-REMOVED_ISOLATION_LEVELS_MSG=Os n\u00edveis de isolamento do m\u00e9todo {0} 1.1 foram removidos do bean CMP {1}.
-CONVERTED_FINDER_MSG=O descritor do localizador {0} foi convertido no bean CMP {1}. Utilize o editor EJB para atualizar a consulta EJB QL.
-UNNAMED_EJB=<Bean CMP n\u00e3o nomeado>
-CONVERTED_QUERY_DESCRIPTION=Convertido das extens\u00f5es IBM vers\u00e3o 1.1.
-MIGRATED_DEFAULT_DATASOURCE_JAR_MSG=A liga\u00e7\u00e3o do Datasource padr\u00e3o foi migrada para uma liga\u00e7\u00e3o de F\u00e1brica de Conex\u00e3o CMP padr\u00e3o para o JAR EJB \"{0}\".
-MIGRATED_DEFAULT_DATASOURCE_MSG=A liga\u00e7\u00e3o do Datasource padr\u00e3o foi migrada para uma liga\u00e7\u00e3o de F\u00e1brica de Conex\u00e3o CMP padr\u00e3o para o JAR EJB.
-J2EE_VERSION_NULL_ERROR=N\u00e3o foi poss\u00edvel obter a vers\u00e3o J2EE do objeto, porque ela n\u00e3o est\u00e1 contida em um documento.
-J2EE_VERSION_PROXY_ERROR=N\u00e3o foi poss\u00edvel obter a vers\u00e3o J2EE do objeto em quest\u00e3o, porque o proxy n\u00e3o pode ser resolvido. Verifique os IDs nos arquivos descritores de implementa\u00e7\u00e3o. HREF = {0}.
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/mofj2ee_zh.properties b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/mofj2ee_zh.properties
deleted file mode 100644
index ceaabd256..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/mofj2ee_zh.properties
+++ /dev/null
@@ -1,28 +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
-###############################################################################
-Stack_trace_of_nested_exce=\u5d4c\u5957\u5f02\u5e38\u7684\u5806\u6808\u8ddf\u8e2a\uff1a
-ERROR=\u9519\u8bef\uff1a
-WARNING=\u8b66\u544a\uff1a
-INFO=\u4fe1\u606f\uff1a
-DEFAULT_COMPLETED_STATUS_MSG=\u5bf9\u4e8e {0}\uff0c\u8fc1\u79fb\u5df2\u5b8c\u6210\u3002
-DEFAULT_NOT_NEEDED_STATUS_MSG=\u5bf9\u4e8e {0}\uff0c\u4e0d\u9700\u8981\u8fc1\u79fb\u3002
-DEFAULT_NOT_POSSIBLE_STATUS_MSG=\u5bf9\u4e8e {0}\uff0c\u4e0d\u53ef\u80fd\u8fdb\u884c\u8fc1\u79fb\u3002
-DEFAULT_ERROR_STATUS_MSG=IWAE0100E \u8fc1\u79fb {0} \u65f6\u51fa\u9519\u3002
-REMOVED_LOCAL_CLIENT_MSG=\u9664\u53bb\u4e86 EJB {0} \u7684\u672c\u5730\u5ba2\u6237\u673a\u89c6\u56fe\u3002
-REMOVED_ACCESS_INTENTS_MSG=\u5df2\u4ece CMP bean {1} \u4e2d\u9664\u53bb\u4e86 {0} 1.1 \u65b9\u6cd5\u5b58\u53d6\u610f\u5411\u3002
-REMOVED_ISOLATION_LEVELS_MSG=\u5df2\u4ece CMP bean {1} \u4e2d\u9664\u53bb\u4e86 {0} 1.1 \u65b9\u6cd5\u9694\u79bb\u7ea7\u522b\u3002
-CONVERTED_FINDER_MSG=\u5df2\u8f6c\u6362\u4e86 CMP bean {1} \u4e2d {0} \u7684 finder \u63cf\u8ff0\u7b26\u3002\u4f7f\u7528 EJB \u7f16\u8f91\u5668\u6765\u66f4\u65b0\u67e5\u8be2 EJB QL\u3002
-UNNAMED_EJB=<\u672a\u547d\u540d\u7684 CMP bean>
-CONVERTED_QUERY_DESCRIPTION=\u5df2\u4ece IBM V1.1 \u6269\u5c55\u8f6c\u6362\u3002
-MIGRATED_DEFAULT_DATASOURCE_JAR_MSG=\u5df2\u5c06\u7f3a\u7701\u201c\u6570\u636e\u6e90\u201d\u7ed1\u5b9a\u8fc1\u79fb\u81f3 EJB JAR\u201c{0}\u201d\u7684\u7f3a\u7701\u201cCMP \u8fde\u63a5\u5de5\u5382\u201d\u7ed1\u5b9a\u3002
-MIGRATED_DEFAULT_DATASOURCE_MSG=\u5df2\u5c06\u7f3a\u7701\u201c\u6570\u636e\u6e90\u201d\u7ed1\u5b9a\u8fc1\u79fb\u81f3 EJB JAR \u7684\u7f3a\u7701\u201cCMP \u8fde\u63a5\u5de5\u5382\u201d\u7ed1\u5b9a\u3002
-J2EE_VERSION_NULL_ERROR=\u65e0\u6cd5\u83b7\u53d6\u5bf9\u8c61\u7684 J2EE \u7248\u672c\uff0c\u539f\u56e0\u662f\u5b83\u672a\u5305\u542b\u5728\u6587\u6863\u4e2d\u3002
-J2EE_VERSION_PROXY_ERROR=\u672a\u80fd\u83b7\u53d6\u5f15\u7528\u5bf9\u8c61\u7684 J2EE \u7248\u672c\uff0c\u539f\u56e0\u662f\u4e0d\u80fd\u89e3\u6790\u4ee3\u7406\u3002\u68c0\u67e5\u90e8\u7f72\u63cf\u8ff0\u7b26\u6587\u4ef6\u4e2d\u7684\u6807\u8bc6\u3002HREF = {0}\u3002
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/mofj2ee_zh_TW.properties b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/mofj2ee_zh_TW.properties
deleted file mode 100644
index 675b9b714..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/mofj2ee_zh_TW.properties
+++ /dev/null
@@ -1,28 +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
-###############################################################################
-Stack_trace_of_nested_exce=\u5de2\u72c0\u7570\u5e38\u72c0\u6cc1\u7684\u5806\u758a\u8ffd\u8e64\uff1a
-ERROR=\u932f\u8aa4\uff1a
-WARNING=\u8b66\u544a\uff1a
-INFO=\u8cc7\u8a0a\uff1a
-DEFAULT_COMPLETED_STATUS_MSG={0} \u7684\u79fb\u8f49\u5df2\u5b8c\u6210\u3002
-DEFAULT_NOT_NEEDED_STATUS_MSG={0} \u7684\u79fb\u8f49\u4e0d\u662f\u5fc5\u8981\u7684\u3002
-DEFAULT_NOT_POSSIBLE_STATUS_MSG=\u7121\u6cd5\u9032\u884c {0} \u7684\u79fb\u8f49\u3002
-DEFAULT_ERROR_STATUS_MSG=IWAE0100E \u79fb\u8f49 {0} \u6642\u767c\u751f\u932f\u8aa4\u3002
-REMOVED_LOCAL_CLIENT_MSG=\u5df2\u79fb\u9664 EJB {0} \u7684\u672c\u7aef\u7528\u6236\u7aef\u8996\u5716\u3002
-REMOVED_ACCESS_INTENTS_MSG=\u5df2\u79fb\u9664 CMP Bean {1} \u4e2d\u7684 {0} 1.1 \u65b9\u6cd5\u5b58\u53d6\u76ee\u7684\u3002
-REMOVED_ISOLATION_LEVELS_MSG=\u5df2\u79fb\u9664 CMP Bean {1} \u4e2d\u7684 {0} 1.1 \u65b9\u6cd5\u9694\u96e2\u5c64\u6b21\u3002
-CONVERTED_FINDER_MSG=\u5df2\u8f49\u63db CMP Bean {1} \u4e2d {0} \u7684 finder \u63cf\u8ff0\u5b50\u3002\u8acb\u4f7f\u7528 EJB \u7de8\u8f2f\u5668\u4f86\u66f4\u65b0\u67e5\u8a62 EJB QL\u3002
-UNNAMED_EJB=<\u672a\u547d\u540d\u7684 CMP Bean>
-CONVERTED_QUERY_DESCRIPTION=\u5df2\u81ea IBM \u7b2c 1.1 \u7248\u5ef6\u4f38\u9032\u884c\u8f49\u63db\u3002
-MIGRATED_DEFAULT_DATASOURCE_JAR_MSG=\u5df2\u5c07\u9810\u8a2d\u8cc7\u6599\u4f86\u6e90\u9023\u7d50\u79fb\u8f49\u81f3 EJB JAR \"{0}\" \u7684\u9810\u8a2d CMP Connection Factory \u9023\u7d50\u3002
-MIGRATED_DEFAULT_DATASOURCE_MSG=\u5df2\u5c07\u9810\u8a2d\u8cc7\u6599\u4f86\u6e90\u9023\u7d50\u79fb\u8f49\u81f3 EJB JAR \u7684\u9810\u8a2d CMP Connection Factory \u9023\u7d50\u3002
-J2EE_VERSION_NULL_ERROR=\u7121\u6cd5\u53d6\u5f97\u7269\u4ef6\u7684 J2EE \u7248\u672c\uff0c\u56e0\u70ba\u5b83\u4e26\u672a\u5167\u542b\u65bc\u6587\u4ef6\u4e2d\u3002
-J2EE_VERSION_PROXY_ERROR=\u7121\u6cd5\u53d6\u5f97\u6240\u53c3\u7167\u7269\u4ef6\u7684 J2EE \u7248\u672c\uff0c\u56e0\u70ba\u7121\u6cd5\u89e3\u6790 Proxy\u3002\u8acb\u6aa2\u67e5\u90e8\u7f72\u63cf\u8ff0\u5b50\u6a94\u4e2d\u7684 ID\u3002HREF = {0}\u3002
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 16c7026f8..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/Application.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.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.
-
- */
-public interface Application extends CompatibilityDescriptionGroup{
-
-
-public boolean containsSecurityRole(String name);
-/**
- * Returns 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
- **/
-public Module getModule(String uri);
-/**
- *This returns the j2ee version id. Compare with J2EEVersionConstants to determine j2ee level
- */
-public int getJ2EEVersionID() throws IllegalStateException ;
-/**
- * This returns the module version id. Compare with J2EEVersionConstants to determine module level
- */
-public int getVersionID() throws IllegalStateException ;
-
-/**
- * Returns the first module matching the specified uri
- */
-public Module getFirstModule(String uri);
-/**
- * Returns the first module where the alt dd matches the specified uri
- */
-public Module getModuleHavingAltDD(String uri);
-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 -->
- * @since 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.internal.application.ApplicationPackage#getApplication_Version()
- * @model
- * @generated
- */
- String getVersion();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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 32f5c2ddf..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/ApplicationFactory.java
+++ /dev/null
@@ -1,73 +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.application;
-
-import org.eclipse.emf.ecore.EFactory;
-/**
- * @generated
- */
-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.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();
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- 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 a9285cf87..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/ApplicationPackage.java
+++ /dev/null
@@ -1,353 +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.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;
-
-
-
-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 = MODULE__URI;
- /**
- * @generated This field/method will be replaced during code generation.
- */
- int WEB_MODULE__ALT_DD = MODULE__ALT_DD;
- /**
- * @generated This field/method will be replaced during code generation.
- */
- int WEB_MODULE__APPLICATION = MODULE__APPLICATION;
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- int WEB_MODULE__CONTEXT_ROOT = 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 = 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 = MODULE__URI;
- /**
- * @generated This field/method will be replaced during code generation.
- */
- int JAVA_CLIENT_MODULE__ALT_DD = MODULE__ALT_DD;
- /**
- * @generated This field/method will be replaced during code generation.
- */
- int JAVA_CLIENT_MODULE__APPLICATION = 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 = 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 = MODULE__URI;
- /**
- * @generated This field/method will be replaced during code generation.
- */
- int EJB_MODULE__ALT_DD = MODULE__ALT_DD;
- /**
- * @generated This field/method will be replaced during code generation.
- */
- int EJB_MODULE__APPLICATION = 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 = 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 = MODULE__URI;
- /**
- * @generated This field/method will be replaced during code generation.
- */
- int CONNECTOR_MODULE__ALT_DD = MODULE__ALT_DD;
- /**
- * @generated This field/method will be replaced during code generation.
- */
- int CONNECTOR_MODULE__APPLICATION = 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 = 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.internal.application"; //$NON-NLS-1$
-
- /**
- * The singleton instance of the package.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- ApplicationPackage eINSTANCE = org.eclipse.jst.j2ee.application.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.internal.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.internal.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 acd31b19c..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/ApplicationResource.java
+++ /dev/null
@@ -1,18 +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.application;
-
-import org.eclipse.jst.j2ee.common.XMLResource;
-
-public interface ApplicationResource extends XMLResource {
-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 43612a64a..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/ConnectorModule.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.application;
-
-
-/**
- * Specifies the URI of a resource adapter archive file, relative to the top level of the application package.
- */
-public interface ConnectorModule extends Module{
-}
-
-
-
-
-
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 0b8ba4c1b..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/EjbModule.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.application;
-
-
-/**
- * Specifies the URI of a ejb-jar, relative to the top level of the application package.
-
- */
-public interface EjbModule extends Module{
-}
-
-
-
-
-
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 9077106db..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/JavaClientModule.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.application;
-
-
-/**
- * specifies the URI of a java application client module, relative to the top level of the application package.
-
- */
-public interface JavaClientModule extends Module{
-}
-
-
-
-
-
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 8735af6b2..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/Module.java
+++ /dev/null
@@ -1,75 +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.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.
-
- */
-public interface Module extends EObject{
-
-public boolean isConnectorModule();
-public boolean isEjbModule();
-public boolean isJavaModule();
-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 l 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 70ee2d7da..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, 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.application;
-
-
-/**
- * Contains the web-uri and context-root of a web application module.
-
- */
-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
-
- */
- String getContextRoot();
-
- /**
- * @generated This field/method will be replaced during code generation
- * @param value The new value of the ContextRoot attribute
- */
- void setContextRoot(String value);
-
-}
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/impl/ApplicationFactoryImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/impl/ApplicationFactoryImpl.java
deleted file mode 100644
index 9d2f92851..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/impl/ApplicationFactoryImpl.java
+++ /dev/null
@@ -1,121 +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.application.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"); //$NON-NLS-1$ //$NON-NLS-2$
- }
- }
-
-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/impl/ApplicationImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/impl/ApplicationImpl.java
deleted file mode 100644
index 5ba83acd2..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/impl/ApplicationImpl.java
+++ /dev/null
@@ -1,434 +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.application.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.J2EEVersionResource;
-import org.eclipse.jst.j2ee.common.SecurityRole;
-import org.eclipse.jst.j2ee.common.XMLResource;
-import org.eclipse.jst.j2ee.common.impl.CompatibilityDescriptionGroupImpl;
-import org.eclipse.jst.j2ee.common.util.CommonUtil;
-import org.eclipse.jst.j2ee.internal.J2EEConstants;
-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: "); //$NON-NLS-1$
- result.append(version);
- result.append(')');
- return result.toString();
- }
-
-}
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/impl/ApplicationPackageImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/impl/ApplicationPackageImpl.java
deleted file mode 100644
index 5ee284b9e..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/impl/ApplicationPackageImpl.java
+++ /dev/null
@@ -1,364 +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.application.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.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.impl.ClientPackageImpl;
-import org.eclipse.jst.j2ee.common.CommonPackage;
-import org.eclipse.jst.j2ee.common.impl.CommonPackageImpl;
-import org.eclipse.jst.j2ee.ejb.EjbPackage;
-import org.eclipse.jst.j2ee.ejb.impl.EjbPackageImpl;
-import org.eclipse.jst.j2ee.jca.JcaPackage;
-import org.eclipse.jst.j2ee.jca.impl.JcaPackageImpl;
-import org.eclipse.jst.j2ee.jsp.JspPackage;
-import org.eclipse.jst.j2ee.jsp.impl.JspPackageImpl;
-import org.eclipse.jst.j2ee.taglib.TaglibPackage;
-import org.eclipse.jst.j2ee.taglib.impl.TaglibPackageImpl;
-import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage;
-import org.eclipse.jst.j2ee.webapplication.impl.WebapplicationPackageImpl;
-import org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientPackage;
-import org.eclipse.jst.j2ee.webservice.wsclient.impl.Webservice_clientPackageImpl;
-import org.eclipse.jst.j2ee.webservice.wscommon.WscommonPackage;
-import org.eclipse.jst.j2ee.webservice.wscommon.impl.WscommonPackageImpl;
-import org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage;
-import org.eclipse.jst.j2ee.webservice.wsdd.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 EPackage ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new ApplicationPackageImpl());
-
- isInited = true;
-
- // Initialize simple dependencies
- EcorePackageImpl.init();
- JavaRefPackageImpl.init();
-
- // Obtain or create and register interdependencies
- EjbPackageImpl theEjbPackage = (EjbPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(EjbPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(EjbPackage.eNS_URI) : EjbPackageImpl.eINSTANCE);
- ClientPackageImpl theClientPackage = (ClientPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ClientPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(ClientPackage.eNS_URI) : ClientPackageImpl.eINSTANCE);
- CommonPackageImpl theCommonPackage = (CommonPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI) : CommonPackageImpl.eINSTANCE);
- JcaPackageImpl theJcaPackage = (JcaPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(JcaPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(JcaPackage.eNS_URI) : JcaPackageImpl.eINSTANCE);
- Webservice_clientPackageImpl theWebservice_clientPackage = (Webservice_clientPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(Webservice_clientPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(Webservice_clientPackage.eNS_URI) : Webservice_clientPackageImpl.eINSTANCE);
- WscommonPackageImpl theWscommonPackage = (WscommonPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(WscommonPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(WscommonPackage.eNS_URI) : WscommonPackageImpl.eINSTANCE);
- WsddPackageImpl theWsddPackage = (WsddPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(WsddPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(WsddPackage.eNS_URI) : WsddPackageImpl.eINSTANCE);
- WebapplicationPackageImpl theWebapplicationPackage = (WebapplicationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(WebapplicationPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(WebapplicationPackage.eNS_URI) : WebapplicationPackageImpl.eINSTANCE);
- JspPackageImpl theJspPackage = (JspPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(JspPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(JspPackage.eNS_URI) : JspPackageImpl.eINSTANCE);
- TaglibPackageImpl theTaglibPackage = (TaglibPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(TaglibPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(TaglibPackage.eNS_URI) : TaglibPackageImpl.eINSTANCE);
-
- // Step 1: create meta-model objects
- theApplicationPackage.createPackageContents();
- theEjbPackage.createPackageContents();
- theClientPackage.createPackageContents();
- theCommonPackage.createPackageContents();
- theJcaPackage.createPackageContents();
- theWebservice_clientPackage.createPackageContents();
- theWscommonPackage.createPackageContents();
- theWsddPackage.createPackageContents();
- theWebapplicationPackage.createPackageContents();
- theJspPackage.createPackageContents();
- theTaglibPackage.createPackageContents();
-
- // Step 2: complete initialization
- theApplicationPackage.initializePackageContents();
- theEjbPackage.initializePackageContents();
- theClientPackage.initializePackageContents();
- theCommonPackage.initializePackageContents();
- theJcaPackage.initializePackageContents();
- theWebservice_clientPackage.initializePackageContents();
- theWscommonPackage.initializePackageContents();
- theWsddPackage.initializePackageContents();
- theWebapplicationPackage.initializePackageContents();
- theJspPackage.initializePackageContents();
- theTaglibPackage.initializePackageContents();
-
- 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);
-
- // Add supertypes to classes
- applicationEClass.getESuperTypes().add(theCommonPackage.getCompatibilityDescriptionGroup());
- webModuleEClass.getESuperTypes().add(this.getModule());
- javaClientModuleEClass.getESuperTypes().add(this.getModule());
- ejbModuleEClass.getESuperTypes().add(this.getModule());
- connectorModuleEClass.getESuperTypes().add(this.getModule());
-
- // Initialize classes and features; add operations and parameters
- initEClass(applicationEClass, Application.class, "Application", !IS_ABSTRACT, !IS_INTERFACE); //$NON-NLS-1$
- initEAttribute(getApplication_Version(), ecorePackage.getEString(), "version", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getApplication_SecurityRoles(), theCommonPackage.getSecurityRole(), null, "securityRoles", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getApplication_Modules(), this.getModule(), this.getModule_Application(), "modules", null, 1, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
-
- initEClass(moduleEClass, Module.class, "Module", !IS_ABSTRACT, !IS_INTERFACE); //$NON-NLS-1$
- initEAttribute(getModule_Uri(), ecorePackage.getEString(), "uri", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEAttribute(getModule_AltDD(), ecorePackage.getEString(), "altDD", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getModule_Application(), this.getApplication(), this.getApplication_Modules(), "application", null, 0, 1, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
-
- initEClass(webModuleEClass, WebModule.class, "WebModule", !IS_ABSTRACT, !IS_INTERFACE); //$NON-NLS-1$
- initEAttribute(getWebModule_ContextRoot(), ecorePackage.getEString(), "contextRoot", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
-
- initEClass(javaClientModuleEClass, JavaClientModule.class, "JavaClientModule", !IS_ABSTRACT, !IS_INTERFACE); //$NON-NLS-1$
-
- initEClass(ejbModuleEClass, EjbModule.class, "EjbModule", !IS_ABSTRACT, !IS_INTERFACE); //$NON-NLS-1$
-
- initEClass(connectorModuleEClass, ConnectorModule.class, "ConnectorModule", !IS_ABSTRACT, !IS_INTERFACE); //$NON-NLS-1$
-
- // Create resource
- createResource(eNS_URI);
- }
-} //ApplicationPackageImpl
-
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/impl/ApplicationResourceFactory.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/impl/ApplicationResourceFactory.java
deleted file mode 100644
index e775a065d..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/impl/ApplicationResourceFactory.java
+++ /dev/null
@@ -1,70 +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.application.impl;
-
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.emf.ecore.resource.Resource;
-import org.eclipse.jst.j2ee.common.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.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_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(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 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/impl/ApplicationResourceImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/impl/ApplicationResourceImpl.java
deleted file mode 100644
index 10d2584e6..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/impl/ApplicationResourceImpl.java
+++ /dev/null
@@ -1,147 +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.application.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.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;
- }
-
- /* (non-Javadoc)
- * @see com.ibm.etools.j2eexml.XMLResourceImpl#getJ2EE_1_3_SystemID()
- */
- public String getJ2EE_1_3_SystemID() {
- return J2EEConstants.APPLICATION_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/impl/ConnectorModuleImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/impl/ConnectorModuleImpl.java
deleted file mode 100644
index 3911066d3..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/impl/ConnectorModuleImpl.java
+++ /dev/null
@@ -1,176 +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.application.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/impl/EjbModuleImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/impl/EjbModuleImpl.java
deleted file mode 100644
index 7db74a7ba..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/impl/EjbModuleImpl.java
+++ /dev/null
@@ -1,177 +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.application.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/impl/JavaClientModuleImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/impl/JavaClientModuleImpl.java
deleted file mode 100644
index d81ff6387..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/impl/JavaClientModuleImpl.java
+++ /dev/null
@@ -1,177 +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.application.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/impl/ModuleImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/impl/ModuleImpl.java
deleted file mode 100644
index 969758a8a..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/impl/ModuleImpl.java
+++ /dev/null
@@ -1,307 +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.application.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: "); //$NON-NLS-1$
- result.append(uri);
- result.append(", altDD: "); //$NON-NLS-1$
- result.append(altDD);
- result.append(')');
- return result.toString();
- }
-
-}
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/impl/WebModuleImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/impl/WebModuleImpl.java
deleted file mode 100644
index 6b7342406..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/impl/WebModuleImpl.java
+++ /dev/null
@@ -1,233 +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.application.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: "); //$NON-NLS-1$
- result.append(contextRoot);
- result.append(')');
- return result.toString();
- }
-
-}
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/util/ApplicationAdapterFactory.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/util/ApplicationAdapterFactory.java
deleted file mode 100644
index 306d886d5..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/util/ApplicationAdapterFactory.java
+++ /dev/null
@@ -1,248 +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.application.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 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.internal.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.internal.common.DescriptionGroup
- * @generated
- */
- public Adapter createDescriptionGroupAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.internal.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.internal.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;
- }
-
-} //ApplicationAdapterFactory
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/util/ApplicationSwitch.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/util/ApplicationSwitch.java
deleted file mode 100644
index 390d2ca2e..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/application/util/ApplicationSwitch.java
+++ /dev/null
@@ -1,254 +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.application.util;
-
-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.internal.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) {
- EClass theEClass = theEObject.eClass();
- if (theEClass.eContainer() == modelPackage) {
- switch (theEClass.getClassifierID()) {
- 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 = caseModule(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 = caseModule(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 = caseModule(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 = caseModule(connectorModule);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- default: return defaultCase(theEObject);
- }
- }
- 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>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/client/ApplicationClient.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/client/ApplicationClient.java
deleted file mode 100644
index 111bb1611..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/client/ApplicationClient.java
+++ /dev/null
@@ -1,212 +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.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.
-
- */
-public interface ApplicationClient extends CompatibilityDescriptionGroup{
-
-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();
-/**
- * @deprecated Use getVersionID() to determine module level
- * */
-public boolean isVersion1_4Descriptor();
-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 -->
- * @since 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.internal.client.ClientPackage#getApplicationClient_Version()
- * @model
- * @generated
- */
- String getVersion();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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
- */
- public int getVersionID() throws IllegalStateException ;
- /**
- *This returns the j2ee version id. Compare with J2EEVersionConstants to determine j2ee level
- */
- 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 l 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.internal.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 -->
- * @since J2EE1.4
- * <!-- end-model-doc -->
- * @return the value of the '<em>Service Refs</em>' containment reference list.
- * @see org.eclipse.jst.j2ee.internal.client.ClientPackage#getApplicationClient_ServiceRefs()
- * @model type="org.eclipse.jst.j2ee.internal.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.internal.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 -->
- * @since 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.internal.client.ClientPackage#getApplicationClient_MessageDestinationRefs()
- * @model type="org.eclipse.jst.j2ee.internal.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.internal.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 -->
- * @since J2EE1.4
- * <!-- end-model-doc -->
- * @return the value of the '<em>Message Destinations</em>' containment reference list.
- * @see org.eclipse.jst.j2ee.internal.client.ClientPackage#getApplicationClient_MessageDestinations()
- * @model type="org.eclipse.jst.j2ee.internal.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 1da822cdd..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/client/ApplicationClientResource.java
+++ /dev/null
@@ -1,19 +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.client;
-
-import org.eclipse.jst.j2ee.common.XMLResource;
-
-public interface ApplicationClientResource extends XMLResource {
-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 ddd859479..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/client/ClientFactory.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
- *******************************************************************************/
-package org.eclipse.jst.j2ee.client;
-
-import org.eclipse.emf.ecore.EFactory;
-/**
- * @generated
- */
-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.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.
- */
- 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 4e62f927e..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/client/ClientPackage.java
+++ /dev/null
@@ -1,277 +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.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;
-
-
-
-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.internal.client.ResAuthApplicationType <em>Res Auth Application Type</em>}' enum.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.j2ee.internal.client.ResAuthApplicationType
- * @see org.eclipse.jst.j2ee.internal.client.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.internal.client"; //$NON-NLS-1$
-
- /**
- * The singleton instance of the package.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- ClientPackage eINSTANCE = org.eclipse.jst.j2ee.client.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.internal.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.internal.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.internal.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.internal.client.ApplicationClient#getServiceRefs()
- * @see #getApplicationClient()
- * @generated
- */
- EReference getApplicationClient_ServiceRefs();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.internal.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.internal.client.ApplicationClient#getMessageDestinationRefs()
- * @see #getApplicationClient()
- * @generated
- */
- EReference getApplicationClient_MessageDestinationRefs();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.internal.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.internal.client.ApplicationClient#getMessageDestinations()
- * @see #getApplicationClient()
- * @generated
- */
- EReference getApplicationClient_MessageDestinations();
-
- /**
- * Returns the meta object for enum '{@link org.eclipse.jst.j2ee.internal.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.internal.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 291ae6c22..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/client/ResAuthApplicationType.java
+++ /dev/null
@@ -1,133 +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.client;
-
-import java.util.Arrays;
-import java.util.Collections;
-import java.util.List;
-
-import org.eclipse.emf.common.util.AbstractEnumerator;
-
-
-
-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 -->
- * <!-- 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 -->
- * <!-- 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/impl/ApplicationClientImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/client/impl/ApplicationClientImpl.java
deleted file mode 100644
index 205ba4663..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/client/impl/ApplicationClientImpl.java
+++ /dev/null
@@ -1,606 +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.client.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.J2EEVersionResource;
-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.XMLResource;
-import org.eclipse.jst.j2ee.common.impl.CompatibilityDescriptionGroupImpl;
-import org.eclipse.jst.j2ee.common.util.CommonUtil;
-import org.eclipse.jst.j2ee.internal.J2EEConstants;
-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: "); //$NON-NLS-1$
- result.append(version);
- result.append(')');
- return result.toString();
- }
-
-}
-
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/client/impl/ApplicationClientResourceFactory.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/client/impl/ApplicationClientResourceFactory.java
deleted file mode 100644
index 4e3ee891e..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/client/impl/ApplicationClientResourceFactory.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.client.impl;
-
-
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.emf.ecore.resource.Resource;
-import org.eclipse.jst.j2ee.common.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.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_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.
- * @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 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/impl/ApplicationClientResourceImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/client/impl/ApplicationClientResourceImpl.java
deleted file mode 100644
index e549baced..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/client/impl/ApplicationClientResourceImpl.java
+++ /dev/null
@@ -1,154 +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.client.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.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;
- }
-
- /* (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;
- }
-
- /* (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/impl/ClientFactoryImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/client/impl/ClientFactoryImpl.java
deleted file mode 100644
index c89529706..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/client/impl/ClientFactoryImpl.java
+++ /dev/null
@@ -1,101 +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.client.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:
- return ResAuthApplicationType.get(initialValue);
- 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/impl/ClientPackageImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/client/impl/ClientPackageImpl.java
deleted file mode 100644
index e840d087f..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/client/impl/ClientPackageImpl.java
+++ /dev/null
@@ -1,321 +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.client.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.impl.JavaRefPackageImpl;
-import org.eclipse.jst.j2ee.application.ApplicationPackage;
-import org.eclipse.jst.j2ee.application.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.impl.CommonPackageImpl;
-import org.eclipse.jst.j2ee.ejb.EjbPackage;
-import org.eclipse.jst.j2ee.ejb.impl.EjbPackageImpl;
-import org.eclipse.jst.j2ee.internal.J2EEInit;
-import org.eclipse.jst.j2ee.jca.JcaPackage;
-import org.eclipse.jst.j2ee.jca.impl.JcaPackageImpl;
-import org.eclipse.jst.j2ee.jsp.JspPackage;
-import org.eclipse.jst.j2ee.jsp.impl.JspPackageImpl;
-import org.eclipse.jst.j2ee.taglib.TaglibPackage;
-import org.eclipse.jst.j2ee.taglib.impl.TaglibPackageImpl;
-import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage;
-import org.eclipse.jst.j2ee.webapplication.impl.WebapplicationPackageImpl;
-import org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientPackage;
-import org.eclipse.jst.j2ee.webservice.wsclient.impl.Webservice_clientPackageImpl;
-import org.eclipse.jst.j2ee.webservice.wscommon.WscommonPackage;
-import org.eclipse.jst.j2ee.webservice.wscommon.impl.WscommonPackageImpl;
-import org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage;
-import org.eclipse.jst.j2ee.webservice.wsdd.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 EPackage ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new ClientPackageImpl());
-
- isInited = true;
-
- // Initialize simple dependencies
- EcorePackageImpl.init();
- JavaRefPackageImpl.init();
- // init J2EE in case its not already initialized...
- J2EEInit.init();
-
- // Obtain or create and register interdependencies
- EjbPackageImpl theEjbPackage = (EjbPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(EjbPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(EjbPackage.eNS_URI) : EjbPackageImpl.eINSTANCE);
- CommonPackageImpl theCommonPackage = (CommonPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI) : CommonPackageImpl.eINSTANCE);
- JcaPackageImpl theJcaPackage = (JcaPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(JcaPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(JcaPackage.eNS_URI) : JcaPackageImpl.eINSTANCE);
- Webservice_clientPackageImpl theWebservice_clientPackage = (Webservice_clientPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(Webservice_clientPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(Webservice_clientPackage.eNS_URI) : Webservice_clientPackageImpl.eINSTANCE);
- WscommonPackageImpl theWscommonPackage = (WscommonPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(WscommonPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(WscommonPackage.eNS_URI) : WscommonPackageImpl.eINSTANCE);
- WsddPackageImpl theWsddPackage = (WsddPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(WsddPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(WsddPackage.eNS_URI) : WsddPackageImpl.eINSTANCE);
- WebapplicationPackageImpl theWebapplicationPackage = (WebapplicationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(WebapplicationPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(WebapplicationPackage.eNS_URI) : WebapplicationPackageImpl.eINSTANCE);
- ApplicationPackageImpl theApplicationPackage = (ApplicationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ApplicationPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(ApplicationPackage.eNS_URI) : ApplicationPackageImpl.eINSTANCE);
- JspPackageImpl theJspPackage = (JspPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(JspPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(JspPackage.eNS_URI) : JspPackageImpl.eINSTANCE);
- TaglibPackageImpl theTaglibPackage = (TaglibPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(TaglibPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(TaglibPackage.eNS_URI) : TaglibPackageImpl.eINSTANCE);
-
- // Step 1: create meta-model objects
- theClientPackage.createPackageContents();
- theEjbPackage.createPackageContents();
- theCommonPackage.createPackageContents();
- theJcaPackage.createPackageContents();
- theWebservice_clientPackage.createPackageContents();
- theWscommonPackage.createPackageContents();
- theWsddPackage.createPackageContents();
- theWebapplicationPackage.createPackageContents();
- theApplicationPackage.createPackageContents();
- theJspPackage.createPackageContents();
- theTaglibPackage.createPackageContents();
-
- // Step 2: complete initialization
- theClientPackage.initializePackageContents();
- theEjbPackage.initializePackageContents();
- theCommonPackage.initializePackageContents();
- theJcaPackage.initializePackageContents();
- theWebservice_clientPackage.initializePackageContents();
- theWscommonPackage.initializePackageContents();
- theWsddPackage.initializePackageContents();
- theWebapplicationPackage.initializePackageContents();
- theApplicationPackage.initializePackageContents();
- theJspPackage.initializePackageContents();
- theTaglibPackage.initializePackageContents();
-
- 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); //$NON-NLS-1$
- initEAttribute(getApplicationClient_Version(), ecorePackage.getEString(), "version", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getApplicationClient_ResourceRefs(), theCommonPackage.getResourceRef(), null, "resourceRefs", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getApplicationClient_EnvironmentProps(), theCommonPackage.getEnvEntry(), null, "environmentProps", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getApplicationClient_EjbReferences(), theCommonPackage.getEjbRef(), null, "ejbReferences", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getApplicationClient_ResourceEnvRefs(), theCommonPackage.getResourceEnvRef(), null, "resourceEnvRefs", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getApplicationClient_CallbackHandler(), theJavaRefPackage.getJavaClass(), null, "callbackHandler", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getApplicationClient_ServiceRefs(), theWebservice_clientPackage.getServiceRef(), null, "serviceRefs", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getApplicationClient_MessageDestinationRefs(), theCommonPackage.getMessageDestinationRef(), null, "messageDestinationRefs", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getApplicationClient_MessageDestinations(), theCommonPackage.getMessageDestination(), null, "messageDestinations", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
-
- // Initialize enums and add enum literals
- initEEnum(resAuthApplicationTypeEEnum, ResAuthApplicationType.class, "ResAuthApplicationType"); //$NON-NLS-1$
- 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/util/ClientAdapterFactory.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/client/util/ClientAdapterFactory.java
deleted file mode 100644
index 71a357cc3..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/client/util/ClientAdapterFactory.java
+++ /dev/null
@@ -1,158 +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.client.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.internal.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.internal.common.DescriptionGroup
- * @generated
- */
- public Adapter createDescriptionGroupAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.internal.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.internal.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/util/ClientSwitch.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/client/util/ClientSwitch.java
deleted file mode 100644
index c408702eb..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/client/util/ClientSwitch.java
+++ /dev/null
@@ -1,140 +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.client.util;
-
-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.internal.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) {
- EClass theEClass = theEObject.eClass();
- if (theEClass.eContainer() == modelPackage) {
- switch (theEClass.getClassifierID()) {
- 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);
- }
- }
- 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/common/CommonFactory.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/CommonFactory.java
deleted file mode 100644
index c452ae644..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/CommonFactory.java
+++ /dev/null
@@ -1,230 +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.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.internal.common.CommonPackage
- * @generated
- */
-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.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 -->
- * <!-- 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 589739e47..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/CommonPackage.java
+++ /dev/null
@@ -1,2106 +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.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;
-
-
-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.internal.common.impl.IconTypeImpl <em>Icon Type</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.j2ee.internal.common.impl.IconTypeImpl
- * @see org.eclipse.jst.j2ee.internal.common.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.internal.common.impl.DisplayNameImpl <em>Display Name</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.j2ee.internal.common.impl.DisplayNameImpl
- * @see org.eclipse.jst.j2ee.internal.common.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.internal.common.impl.MessageDestinationRefImpl <em>Message Destination Ref</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.j2ee.internal.common.impl.MessageDestinationRefImpl
- * @see org.eclipse.jst.j2ee.internal.common.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.internal.common.impl.MessageDestinationImpl <em>Message Destination</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.j2ee.internal.common.impl.MessageDestinationImpl
- * @see org.eclipse.jst.j2ee.internal.common.impl.CommonPackageImpl#getMessageDestination()
- * @generated
- */
- int MESSAGE_DESTINATION = 12;
-
- /**
- * The meta object id for the '{@link org.eclipse.jst.j2ee.internal.common.impl.ParamValueImpl <em>Param Value</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.j2ee.internal.common.impl.ParamValueImpl
- * @see org.eclipse.jst.j2ee.internal.common.impl.CommonPackageImpl#getParamValue()
- * @generated
- */
- int PARAM_VALUE = 13;
-
- /**
- * The meta object id for the '{@link org.eclipse.jst.j2ee.internal.common.impl.DescriptionGroupImpl <em>Description Group</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.j2ee.internal.common.impl.DescriptionGroupImpl
- * @see org.eclipse.jst.j2ee.internal.common.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.internal.common.impl.CompatibilityDescriptionGroupImpl <em>Compatibility Description Group</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.j2ee.internal.common.impl.CompatibilityDescriptionGroupImpl
- * @see org.eclipse.jst.j2ee.internal.common.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.internal.common.impl.JNDIEnvRefsGroupImpl <em>JNDI Env Refs Group</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.j2ee.internal.common.impl.JNDIEnvRefsGroupImpl
- * @see org.eclipse.jst.j2ee.internal.common.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.internal.common.impl.DescriptionImpl <em>Description</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.j2ee.internal.common.impl.DescriptionImpl
- * @see org.eclipse.jst.j2ee.internal.common.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.internal.common.impl.QNameImpl <em>QName</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.j2ee.internal.common.impl.QNameImpl
- * @see org.eclipse.jst.j2ee.internal.common.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.internal.common.impl.ListenerImpl <em>Listener</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.j2ee.internal.common.impl.ListenerImpl
- * @see org.eclipse.jst.j2ee.internal.common.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.internal.common.MessageDestinationUsageType <em>Message Destination Usage Type</em>}' enum.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.j2ee.internal.common.MessageDestinationUsageType
- * @see org.eclipse.jst.j2ee.internal.common.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.internal.common"; //$NON-NLS-1$
-
- /**
- * The singleton instance of the package.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- CommonPackage eINSTANCE = org.eclipse.jst.j2ee.common.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.internal.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.internal.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.internal.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.internal.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.internal.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.internal.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.internal.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.internal.common.EJBLocalRef#getLocalHome()
- * @see #getEJBLocalRef()
- * @generated
- */
- EAttribute getEJBLocalRef_LocalHome();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.internal.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.internal.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.internal.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.internal.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.internal.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.internal.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.internal.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.internal.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.internal.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.internal.common.Description
- * @generated
- */
- EClass getDescription();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.internal.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.internal.common.Description#getLang()
- * @see #getDescription()
- * @generated
- */
- EAttribute getDescription_Lang();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.internal.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.internal.common.Description#getValue()
- * @see #getDescription()
- * @generated
- */
- EAttribute getDescription_Value();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.jst.j2ee.internal.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.internal.common.QName
- * @generated
- */
- EClass getQName();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.internal.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.internal.common.QName#getNamespaceURI()
- * @see #getQName()
- * @generated
- */
- EAttribute getQName_NamespaceURI();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.internal.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.internal.common.QName#getLocalPart()
- * @see #getQName()
- * @generated
- */
- EAttribute getQName_LocalPart();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.internal.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.internal.common.QName#getCombinedQName()
- * @see #getQName()
- * @generated
- */
- EAttribute getQName_CombinedQName();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.internal.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.internal.common.QName#getInternalPrefixOrNsURI()
- * @see #getQName()
- * @generated
- */
- EAttribute getQName_InternalPrefixOrNsURI();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.jst.j2ee.internal.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.internal.common.Listener
- * @generated
- */
- EClass getListener();
-
- /**
- * Returns the meta object for the reference '{@link org.eclipse.jst.j2ee.internal.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.internal.common.Listener#getListenerClass()
- * @see #getListener()
- * @generated
- */
- EReference getListener_ListenerClass();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.jst.j2ee.internal.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.internal.common.CompatibilityDescriptionGroup
- * @generated
- */
- EClass getCompatibilityDescriptionGroup();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.internal.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.internal.common.CompatibilityDescriptionGroup#getSmallIcon()
- * @see #getCompatibilityDescriptionGroup()
- * @generated
- */
- EAttribute getCompatibilityDescriptionGroup_SmallIcon();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.internal.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.internal.common.CompatibilityDescriptionGroup#getLargeIcon()
- * @see #getCompatibilityDescriptionGroup()
- * @generated
- */
- EAttribute getCompatibilityDescriptionGroup_LargeIcon();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.internal.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.internal.common.CompatibilityDescriptionGroup#getDescription()
- * @see #getCompatibilityDescriptionGroup()
- * @generated
- */
- EAttribute getCompatibilityDescriptionGroup_Description();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.internal.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.internal.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.internal.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.internal.common.Identity#getDescriptions()
- * @see #getIdentity()
- * @generated
- */
- EReference getIdentity_Descriptions();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.jst.j2ee.internal.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.internal.common.IconType
- * @generated
- */
- EClass getIconType();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.internal.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.internal.common.IconType#getSmallIcon()
- * @see #getIconType()
- * @generated
- */
- EAttribute getIconType_SmallIcon();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.internal.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.internal.common.IconType#getLargeIcon()
- * @see #getIconType()
- * @generated
- */
- EAttribute getIconType_LargeIcon();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.internal.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.internal.common.IconType#getLang()
- * @see #getIconType()
- * @generated
- */
- EAttribute getIconType_Lang();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.jst.j2ee.internal.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.internal.common.DisplayName
- * @generated
- */
- EClass getDisplayName();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.internal.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.internal.common.DisplayName#getLang()
- * @see #getDisplayName()
- * @generated
- */
- EAttribute getDisplayName_Lang();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.internal.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.internal.common.DisplayName#getValue()
- * @see #getDisplayName()
- * @generated
- */
- EAttribute getDisplayName_Value();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.jst.j2ee.internal.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.internal.common.MessageDestinationRef
- * @generated
- */
- EClass getMessageDestinationRef();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.internal.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.internal.common.MessageDestinationRef#getName()
- * @see #getMessageDestinationRef()
- * @generated
- */
- EAttribute getMessageDestinationRef_Name();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.internal.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.internal.common.MessageDestinationRef#getType()
- * @see #getMessageDestinationRef()
- * @generated
- */
- EAttribute getMessageDestinationRef_Type();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.internal.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.internal.common.MessageDestinationRef#getUsage()
- * @see #getMessageDestinationRef()
- * @generated
- */
- EAttribute getMessageDestinationRef_Usage();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.internal.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.internal.common.MessageDestinationRef#getLink()
- * @see #getMessageDestinationRef()
- * @generated
- */
- EAttribute getMessageDestinationRef_Link();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.internal.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.internal.common.MessageDestinationRef#getDescriptions()
- * @see #getMessageDestinationRef()
- * @generated
- */
- EReference getMessageDestinationRef_Descriptions();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.jst.j2ee.internal.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.internal.common.MessageDestination
- * @generated
- */
- EClass getMessageDestination();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.internal.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.internal.common.MessageDestination#getName()
- * @see #getMessageDestination()
- * @generated
- */
- EAttribute getMessageDestination_Name();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.jst.j2ee.internal.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.internal.common.ParamValue
- * @generated
- */
- EClass getParamValue();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.internal.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.internal.common.ParamValue#getName()
- * @see #getParamValue()
- * @generated
- */
- EAttribute getParamValue_Name();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.internal.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.internal.common.ParamValue#getValue()
- * @see #getParamValue()
- * @generated
- */
- EAttribute getParamValue_Value();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.internal.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.internal.common.ParamValue#getDescription()
- * @see #getParamValue()
- * @generated
- */
- EAttribute getParamValue_Description();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.internal.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.internal.common.ParamValue#getDescriptions()
- * @see #getParamValue()
- * @generated
- */
- EReference getParamValue_Descriptions();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.jst.j2ee.internal.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.internal.common.DescriptionGroup
- * @generated
- */
- EClass getDescriptionGroup();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.internal.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.internal.common.DescriptionGroup#getIcons()
- * @see #getDescriptionGroup()
- * @generated
- */
- EReference getDescriptionGroup_Icons();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.internal.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.internal.common.DescriptionGroup#getDisplayNames()
- * @see #getDescriptionGroup()
- * @generated
- */
- EReference getDescriptionGroup_DisplayNames();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.internal.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.internal.common.DescriptionGroup#getDescriptions()
- * @see #getDescriptionGroup()
- * @generated
- */
- EReference getDescriptionGroup_Descriptions();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.jst.j2ee.internal.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.internal.common.JNDIEnvRefsGroup
- * @generated
- */
- EClass getJNDIEnvRefsGroup();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.internal.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.internal.common.JNDIEnvRefsGroup#getEnvironmentProperties()
- * @see #getJNDIEnvRefsGroup()
- * @generated
- */
- EReference getJNDIEnvRefsGroup_EnvironmentProperties();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.internal.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.internal.common.JNDIEnvRefsGroup#getResourceRefs()
- * @see #getJNDIEnvRefsGroup()
- * @generated
- */
- EReference getJNDIEnvRefsGroup_ResourceRefs();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.internal.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.internal.common.JNDIEnvRefsGroup#getEjbRefs()
- * @see #getJNDIEnvRefsGroup()
- * @generated
- */
- EReference getJNDIEnvRefsGroup_EjbRefs();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.internal.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.internal.common.JNDIEnvRefsGroup#getResourceEnvRefs()
- * @see #getJNDIEnvRefsGroup()
- * @generated
- */
- EReference getJNDIEnvRefsGroup_ResourceEnvRefs();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.internal.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.internal.common.JNDIEnvRefsGroup#getEjbLocalRefs()
- * @see #getJNDIEnvRefsGroup()
- * @generated
- */
- EReference getJNDIEnvRefsGroup_EjbLocalRefs();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.internal.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.internal.common.JNDIEnvRefsGroup#getMessageDestinationRefs()
- * @see #getJNDIEnvRefsGroup()
- * @generated
- */
- EReference getJNDIEnvRefsGroup_MessageDestinationRefs();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.internal.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.internal.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.internal.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.internal.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.internal.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.internal.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 98941849e..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/CompatibilityDescriptionGroup.java
+++ /dev/null
@@ -1,146 +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.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.internal.common.CompatibilityDescriptionGroup#getSmallIcon <em>Small Icon</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.common.CompatibilityDescriptionGroup#getLargeIcon <em>Large Icon</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.common.CompatibilityDescriptionGroup#getDescription <em>Description</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.common.CompatibilityDescriptionGroup#getDisplayName <em>Display Name</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.jst.j2ee.internal.common.CommonPackage#getCompatibilityDescriptionGroup()
- * @model
- * @generated
- */
-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.internal.common.CommonPackage#getCompatibilityDescriptionGroup_SmallIcon()
- * @model
- * @generated
- */
- String getSmallIcon();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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);
-
- 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.internal.common.CommonPackage#getCompatibilityDescriptionGroup_LargeIcon()
- * @model
- * @generated
- */
- String getLargeIcon();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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);
-
- 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.internal.common.CommonPackage#getCompatibilityDescriptionGroup_Description()
- * @model
- * @generated
- */
- String getDescription();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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);
-
- 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.internal.common.CommonPackage#getCompatibilityDescriptionGroup_DisplayName()
- * @model
- * @generated
- */
- String getDisplayName();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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);
-
- 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 506a0da69..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, 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.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.internal.common.CommonPackage#getDeploymentExtension()
- * @model
- * @generated
- */
-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.internal.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.internal.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.internal.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 a03959f6f..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, 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.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 -->
- * @since 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.internal.common.Description#getLang <em>Lang</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.common.Description#getValue <em>Value</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.jst.j2ee.internal.common.CommonPackage#getDescription()
- * @model
- * @generated
- */
-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.internal.common.CommonPackage#getDescription_Lang()
- * @model
- * @generated
- */
- String getLang();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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.internal.common.CommonPackage#getDescription_Value()
- * @model
- * @generated
- */
- String getValue();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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 e166201dd..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, 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.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 -->
- * @since 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.internal.common.DescriptionGroup#getIcons <em>Icons</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.common.DescriptionGroup#getDisplayNames <em>Display Names</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.common.DescriptionGroup#getDescriptions <em>Descriptions</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.jst.j2ee.internal.common.CommonPackage#getDescriptionGroup()
- * @model
- * @generated
- */
-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.internal.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.internal.common.CommonPackage#getDescriptionGroup_Icons()
- * @model type="org.eclipse.jst.j2ee.internal.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.internal.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.internal.common.CommonPackage#getDescriptionGroup_DisplayNames()
- * @model type="org.eclipse.jst.j2ee.internal.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.internal.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.internal.common.CommonPackage#getDescriptionGroup_Descriptions()
- * @model type="org.eclipse.jst.j2ee.internal.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 adb4b84f2..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, 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.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 -->
- * @since 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.internal.common.DisplayName#getLang <em>Lang</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.common.DisplayName#getValue <em>Value</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.jst.j2ee.internal.common.CommonPackage#getDisplayName()
- * @model
- * @generated
- */
-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.internal.common.CommonPackage#getDisplayName_Lang()
- * @model
- * @generated
- */
- String getLang();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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.internal.common.CommonPackage#getDisplayName_Value()
- * @model
- * @generated
- */
- String getValue();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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 94f84e04c..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, 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.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
- */
-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 f78093a60..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, 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.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.
- */
-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.internal.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.internal.common.EjbRefType
- * @see #isSetType()
- * @see #unsetType()
- * @see #getType()
- * @generated
- */
- void setType(EjbRefType value);
-
- /**
- * Unsets the value of the '{@link org.eclipse.jst.j2ee.internal.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.internal.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.internal.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 -->
- * @since J2EE1.4
- * <!-- end-model-doc -->
- * @return the value of the '<em>Descriptions</em>' containment reference list.
- * @see org.eclipse.jst.j2ee.internal.common.CommonPackage#getEjbRef_Descriptions()
- * @model type="org.eclipse.jst.j2ee.internal.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 f4ded8a55..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/EjbRefType.java
+++ /dev/null
@@ -1,126 +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.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 -->
- * <!-- 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 -->
- * <!-- 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 9c41e23cf..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, 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.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.
- */
-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.internal.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.internal.common.EnvEntryType
- * @see #isSetType()
- * @see #unsetType()
- * @see #getType()
- * @generated
- */
- void setType(EnvEntryType value);
-
- /**
- * Unsets the value of the '{@link org.eclipse.jst.j2ee.internal.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.internal.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.internal.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 -->
- * @since J2EE1.4
- * <!-- end-model-doc -->
- * @return the value of the '<em>Descriptions</em>' containment reference list.
- * @see org.eclipse.jst.j2ee.internal.common.CommonPackage#getEnvEntry_Descriptions()
- * @model type="org.eclipse.jst.j2ee.internal.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 989fa2b54..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/EnvEntryType.java
+++ /dev/null
@@ -1,266 +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.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 -->
- * <!-- 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 -->
- * <!-- 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 9bb7ac916..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, 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.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.internal.common.CommonPackage#getExtensibleType()
- * @model
- * @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.internal.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 d78dbf1ca..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, 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.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 -->
- * @since 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.internal.common.IconType#getSmallIcon <em>Small Icon</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.common.IconType#getLargeIcon <em>Large Icon</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.common.IconType#getLang <em>Lang</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.jst.j2ee.internal.common.CommonPackage#getIconType()
- * @model
- * @generated
- */
-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.internal.common.CommonPackage#getIconType_SmallIcon()
- * @model
- * @generated
- */
- String getSmallIcon();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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.internal.common.CommonPackage#getIconType_LargeIcon()
- * @model
- * @generated
- */
- String getLargeIcon();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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.internal.common.CommonPackage#getIconType_Lang()
- * @model
- * @generated
- */
- String getLang();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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 e6ec3208b..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, 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.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.
-
- */
-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.internal.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.internal.common.CommonPackage#getIdentity_Descriptions()
- * @model type="org.eclipse.jst.j2ee.internal.common.Description" containment="true"
- * @generated
- */
- EList getDescriptions();
-
-}
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/J2EEVersionResource.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/J2EEVersionResource.java
deleted file mode 100644
index 7a2625d9b..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/J2EEVersionResource.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
- *******************************************************************************/
-/*
- * Common Interface used to check version of J2EE model resources
- */
-package org.eclipse.jst.j2ee.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/common/J2EEXMIResource.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/J2EEXMIResource.java
deleted file mode 100644
index 037c1399f..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/J2EEXMIResource.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.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/common/J2EEXMIResourceFactory.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/J2EEXMIResourceFactory.java
deleted file mode 100644
index ca6a101aa..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/J2EEXMIResourceFactory.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
- *******************************************************************************/
-package org.eclipse.jst.j2ee.common;
-
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.emf.ecore.resource.Resource;
-import org.eclipse.jst.j2ee.common.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/common/JNDIEnvRefsGroup.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/JNDIEnvRefsGroup.java
deleted file mode 100644
index e8c6873a7..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, 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.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 -->
- * @since 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.internal.common.JNDIEnvRefsGroup#getEnvironmentProperties <em>Environment Properties</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.common.JNDIEnvRefsGroup#getResourceRefs <em>Resource Refs</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.common.JNDIEnvRefsGroup#getEjbRefs <em>Ejb Refs</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.common.JNDIEnvRefsGroup#getResourceEnvRefs <em>Resource Env Refs</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.common.JNDIEnvRefsGroup#getEjbLocalRefs <em>Ejb Local Refs</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.common.JNDIEnvRefsGroup#getMessageDestinationRefs <em>Message Destination Refs</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.common.JNDIEnvRefsGroup#getServiceRefs <em>Service Refs</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.jst.j2ee.internal.common.CommonPackage#getJNDIEnvRefsGroup()
- * @model abstract="true"
- * @generated
- */
-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.internal.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.internal.common.CommonPackage#getJNDIEnvRefsGroup_EnvironmentProperties()
- * @model type="org.eclipse.jst.j2ee.internal.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.internal.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.internal.common.CommonPackage#getJNDIEnvRefsGroup_ResourceRefs()
- * @model type="org.eclipse.jst.j2ee.internal.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.internal.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.internal.common.CommonPackage#getJNDIEnvRefsGroup_EjbRefs()
- * @model type="org.eclipse.jst.j2ee.internal.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.internal.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.internal.common.CommonPackage#getJNDIEnvRefsGroup_ResourceEnvRefs()
- * @model type="org.eclipse.jst.j2ee.internal.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.internal.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.internal.common.CommonPackage#getJNDIEnvRefsGroup_EjbLocalRefs()
- * @model type="org.eclipse.jst.j2ee.internal.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.internal.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.internal.common.CommonPackage#getJNDIEnvRefsGroup_MessageDestinationRefs()
- * @model type="org.eclipse.jst.j2ee.internal.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.internal.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.internal.common.CommonPackage#getJNDIEnvRefsGroup_ServiceRefs()
- * @model type="org.eclipse.jst.j2ee.internal.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 bd5671b0c..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, 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.common;
-
-import org.eclipse.jem.java.JavaClass;
-/**
- * Declares a class in the application must be registered as a web application listener bean.
- */
-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 5bb0703c2..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/MessageDestination.java
+++ /dev/null
@@ -1,86 +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.common;
-
-
-/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Message Destination</b></em>'.
- * <!-- end-user-doc -->
- *
- * <!-- begin-model-doc -->
- * @since 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.internal.common.MessageDestination#getName <em>Name</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.jst.j2ee.internal.common.CommonPackage#getMessageDestination()
- * @model
- * @generated
- */
-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.internal.common.CommonPackage#getMessageDestination_Name()
- * @model
- * @generated
- */
- String getName();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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 8a80a5921..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, 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.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 -->
- * @since 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.internal.common.MessageDestinationRef#getName <em>Name</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.common.MessageDestinationRef#getType <em>Type</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.common.MessageDestinationRef#getUsage <em>Usage</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.common.MessageDestinationRef#getLink <em>Link</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.common.MessageDestinationRef#getDescriptions <em>Descriptions</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.jst.j2ee.internal.common.CommonPackage#getMessageDestinationRef()
- * @model
- * @generated
- */
-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.internal.common.CommonPackage#getMessageDestinationRef_Name()
- * @model
- * @generated
- */
- String getName();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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.internal.common.CommonPackage#getMessageDestinationRef_Type()
- * @model
- * @generated
- */
- String getType();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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.internal.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.internal.common.MessageDestinationUsageType
- * @see #setUsage(MessageDestinationUsageType)
- * @see org.eclipse.jst.j2ee.internal.common.CommonPackage#getMessageDestinationRef_Usage()
- * @model
- * @generated
- */
- MessageDestinationUsageType getUsage();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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.internal.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.internal.common.CommonPackage#getMessageDestinationRef_Link()
- * @model
- * @generated
- */
- String getLink();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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.internal.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.internal.common.CommonPackage#getMessageDestinationRef_Descriptions()
- * @model type="org.eclipse.jst.j2ee.internal.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 827e16fa2..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/MessageDestinationUsageType.java
+++ /dev/null
@@ -1,166 +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.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.internal.common.CommonPackage#getMessageDestinationUsageType()
- * @model
- * @generated
- */
-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 -->
- * <!-- 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 -->
- * <!-- 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 a1f4270e6..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, 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.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 -->
- * @since 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.internal.common.ParamValue#getName <em>Name</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.common.ParamValue#getValue <em>Value</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.common.ParamValue#getDescription <em>Description</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.common.ParamValue#getDescriptions <em>Descriptions</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.jst.j2ee.internal.common.CommonPackage#getParamValue()
- * @model
- * @generated
- */
-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.internal.common.CommonPackage#getParamValue_Name()
- * @model
- * @generated
- */
- String getName();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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.internal.common.CommonPackage#getParamValue_Value()
- * @model
- * @generated
- */
- String getValue();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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 -->
- * @since 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.internal.common.CommonPackage#getParamValue_Description()
- * @model
- * @generated
- */
- String getDescription();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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.internal.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.internal.common.CommonPackage#getParamValue_Descriptions()
- * @model type="org.eclipse.jst.j2ee.internal.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 d5d6c5579..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, 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.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.internal.common.QName#getNamespaceURI <em>Namespace URI</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.common.QName#getLocalPart <em>Local Part</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.common.QName#getCombinedQName <em>Combined QName</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.common.QName#getInternalPrefixOrNsURI <em>Internal Prefix Or Ns URI</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.jst.j2ee.internal.common.CommonPackage#getQName()
- * @model
- * @generated
- */
-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.internal.common.CommonPackage#getQName_NamespaceURI()
- * @model
- * @generated
- */
- String getNamespaceURI();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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.internal.common.CommonPackage#getQName_LocalPart()
- * @model
- * @generated
- */
- String getLocalPart();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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.internal.common.CommonPackage#getQName_CombinedQName()
- * @model
- * @generated
- */
- String getCombinedQName();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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.internal.common.CommonPackage#getQName_InternalPrefixOrNsURI()
- * @model
- * @generated
- */
- String getInternalPrefixOrNsURI();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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 3248a6638..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/ResAuthTypeBase.java
+++ /dev/null
@@ -1,173 +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.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.internal.common.CommonPackage#getResAuthTypeBase()
- * @model
- * @generated
- */
-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 -->
- * <!-- 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 -->
- * <!-- 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 8cbee4e7e..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/ResSharingScopeType.java
+++ /dev/null
@@ -1,126 +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.common;
-import java.util.Arrays;
-import java.util.Collections;
-import java.util.List;
-
-import org.eclipse.emf.common.util.AbstractEnumerator;
-
-
-
-
-
-/**
- * @lastgen interface ResSharingScopeType {}
- */
-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 -->
- * <!-- 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 -->
- * <!-- 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 ede34d4c3..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/ResourceEnvRef.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.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>
- */
-public interface ResourceEnvRef extends EObject{
-
-public String getTypeName();
-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 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.internal.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.internal.common.CommonPackage#getResourceEnvRef_Descriptions()
- * @model type="org.eclipse.jst.j2ee.internal.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 cf0cdeeca..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, 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.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>
- */
-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.internal.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.internal.common.ResAuthTypeBase
- * @see #isSetAuth()
- * @see #unsetAuth()
- * @see #getAuth()
- * @generated
- */
- void setAuth(ResAuthTypeBase value);
-
- /**
- * Unsets the value of the '{@link org.eclipse.jst.j2ee.internal.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.internal.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.internal.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.internal.common.ResSharingScopeType
- * @see #isSetResSharingScope()
- * @see #unsetResSharingScope()
- * @see #getResSharingScope()
- * @generated
- */
- void setResSharingScope(ResSharingScopeType value);
-
- /**
- * Unsets the value of the '{@link org.eclipse.jst.j2ee.internal.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.internal.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.internal.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.internal.common.CommonPackage#getResourceRef_Descriptions()
- * @model type="org.eclipse.jst.j2ee.internal.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 d39ecc41b..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, 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.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.
-
- */
-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 l 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 8986020a3..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/SecurityIdentity.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.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.
-
- */
-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.internal.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 -->
- * @since J2EE1.4
- * <!-- end-model-doc -->
- * @return the value of the '<em>Descriptions</em>' containment reference list.
- * @see org.eclipse.jst.j2ee.internal.common.CommonPackage#getSecurityIdentity_Descriptions()
- * @model type="org.eclipse.jst.j2ee.internal.common.Description" containment="true"
- * @generated
- */
- EList getDescriptions();
-
- boolean isRunAsSpecifiedIdentity();
-
- 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 ba050bbf1..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, 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.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.
- */
-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.internal.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.internal.common.CommonPackage#getSecurityRole_Descriptions()
- * @model type="org.eclipse.jst.j2ee.internal.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 10b7e1f51..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, 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.common;
-
-import org.eclipse.emf.common.util.EList;
-import org.eclipse.emf.ecore.EObject;
-
-/**
- * @generated
- */
-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.internal.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.internal.common.CommonPackage#getSecurityRoleRef_Descriptions()
- * @model type="org.eclipse.jst.j2ee.internal.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 de45d7d39..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/UseCallerIdentity.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.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.
-
- */
-public interface UseCallerIdentity extends SecurityIdentity{
-}
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/XMLResource.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/XMLResource.java
deleted file mode 100644
index 69b37af0b..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/XMLResource.java
+++ /dev/null
@@ -1,88 +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.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/common/impl/CommonFactoryImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/CommonFactoryImpl.java
deleted file mode 100644
index 5d08caf1e..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/CommonFactoryImpl.java
+++ /dev/null
@@ -1,369 +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.common.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 and 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:
- return EnvEntryType.get(initialValue);
- case CommonPackage.RES_AUTH_TYPE_BASE:
- return ResAuthTypeBase.get(initialValue);
- case CommonPackage.EJB_REF_TYPE:
- return EjbRefType.get(initialValue);
- case CommonPackage.RES_SHARING_SCOPE_TYPE:
- return ResSharingScopeType.get(initialValue);
- case CommonPackage.MESSAGE_DESTINATION_USAGE_TYPE:
- return MessageDestinationUsageType.get(initialValue);
- 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/impl/CommonPackageImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/CommonPackageImpl.java
deleted file mode 100644
index 7567787d5..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/CommonPackageImpl.java
+++ /dev/null
@@ -1,1502 +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.common.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.impl.JavaRefPackageImpl;
-import org.eclipse.jst.j2ee.application.ApplicationPackage;
-import org.eclipse.jst.j2ee.application.impl.ApplicationPackageImpl;
-import org.eclipse.jst.j2ee.client.ClientPackage;
-import org.eclipse.jst.j2ee.client.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.impl.EjbPackageImpl;
-import org.eclipse.jst.j2ee.jca.JcaPackage;
-import org.eclipse.jst.j2ee.jca.impl.JcaPackageImpl;
-import org.eclipse.jst.j2ee.jsp.JspPackage;
-import org.eclipse.jst.j2ee.jsp.impl.JspPackageImpl;
-import org.eclipse.jst.j2ee.taglib.TaglibPackage;
-import org.eclipse.jst.j2ee.taglib.impl.TaglibPackageImpl;
-import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage;
-import org.eclipse.jst.j2ee.webapplication.impl.WebapplicationPackageImpl;
-import org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientPackage;
-import org.eclipse.jst.j2ee.webservice.wsclient.impl.Webservice_clientPackageImpl;
-import org.eclipse.jst.j2ee.webservice.wscommon.WscommonPackage;
-import org.eclipse.jst.j2ee.webservice.wscommon.impl.WscommonPackageImpl;
-import org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage;
-import org.eclipse.jst.j2ee.webservice.wsdd.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 EPackage ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new CommonPackageImpl());
-
- isInited = true;
-
- // Initialize simple dependencies
- EcorePackageImpl.init();
- JavaRefPackageImpl.init();
-
- // Obtain or create and register interdependencies
- EjbPackageImpl theEjbPackage = (EjbPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(EjbPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(EjbPackage.eNS_URI) : EjbPackageImpl.eINSTANCE);
- TaglibPackageImpl theTaglibPackage = (TaglibPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(TaglibPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(TaglibPackage.eNS_URI) : TaglibPackageImpl.eINSTANCE);
- ApplicationPackageImpl theApplicationPackage = (ApplicationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ApplicationPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(ApplicationPackage.eNS_URI) : ApplicationPackageImpl.eINSTANCE);
- WscommonPackageImpl theWscommonPackage = (WscommonPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(WscommonPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(WscommonPackage.eNS_URI) : WscommonPackageImpl.eINSTANCE);
- ClientPackageImpl theClientPackage = (ClientPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ClientPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(ClientPackage.eNS_URI) : ClientPackageImpl.eINSTANCE);
- JspPackageImpl theJspPackage = (JspPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(JspPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(JspPackage.eNS_URI) : JspPackageImpl.eINSTANCE);
- JcaPackageImpl theJcaPackage = (JcaPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(JcaPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(JcaPackage.eNS_URI) : JcaPackageImpl.eINSTANCE);
- Webservice_clientPackageImpl theWebservice_clientPackage = (Webservice_clientPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(Webservice_clientPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(Webservice_clientPackage.eNS_URI) : Webservice_clientPackageImpl.eINSTANCE);
- WebapplicationPackageImpl theWebapplicationPackage = (WebapplicationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(WebapplicationPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(WebapplicationPackage.eNS_URI) : WebapplicationPackageImpl.eINSTANCE);
- WsddPackageImpl theWsddPackage = (WsddPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(WsddPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(WsddPackage.eNS_URI) : WsddPackageImpl.eINSTANCE);
-
- // Step 1: create meta-model objects
- theCommonPackage.createPackageContents();
- theEjbPackage.createPackageContents();
- theTaglibPackage.createPackageContents();
- theApplicationPackage.createPackageContents();
- theWscommonPackage.createPackageContents();
- theClientPackage.createPackageContents();
- theJspPackage.createPackageContents();
- theJcaPackage.createPackageContents();
- theWebservice_clientPackage.createPackageContents();
- theWebapplicationPackage.createPackageContents();
- theWsddPackage.createPackageContents();
-
- // Step 2: complete initialization
- theCommonPackage.initializePackageContents();
- theEjbPackage.initializePackageContents();
- theTaglibPackage.initializePackageContents();
- theApplicationPackage.initializePackageContents();
- theWscommonPackage.initializePackageContents();
- theClientPackage.initializePackageContents();
- theJspPackage.initializePackageContents();
- theJcaPackage.initializePackageContents();
- theWebservice_clientPackage.initializePackageContents();
- theWebapplicationPackage.initializePackageContents();
- theWsddPackage.initializePackageContents();
-
- 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); //$NON-NLS-1$
- initEAttribute(getEjbRef_Name(), ecorePackage.getEString(), "name", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEAttribute(getEjbRef_Type(), this.getEjbRefType(), "type", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEAttribute(getEjbRef_Home(), ecorePackage.getEString(), "home", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEAttribute(getEjbRef_Remote(), ecorePackage.getEString(), "remote", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEAttribute(getEjbRef_Link(), ecorePackage.getEString(), "link", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEAttribute(getEjbRef_Description(), ecorePackage.getEString(), "description", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getEjbRef_Descriptions(), this.getDescription(), null, "descriptions", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
-
- initEClass(envEntryEClass, EnvEntry.class, "EnvEntry", !IS_ABSTRACT, !IS_INTERFACE); //$NON-NLS-1$
- initEAttribute(getEnvEntry_Description(), ecorePackage.getEString(), "description", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEAttribute(getEnvEntry_Name(), ecorePackage.getEString(), "name", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEAttribute(getEnvEntry_Value(), ecorePackage.getEString(), "value", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEAttribute(getEnvEntry_Type(), this.getEnvEntryType(), "type", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getEnvEntry_Descriptions(), this.getDescription(), null, "descriptions", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
-
- initEClass(resourceRefEClass, ResourceRef.class, "ResourceRef", !IS_ABSTRACT, !IS_INTERFACE); //$NON-NLS-1$
- initEAttribute(getResourceRef_Description(), ecorePackage.getEString(), "description", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEAttribute(getResourceRef_Name(), ecorePackage.getEString(), "name", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEAttribute(getResourceRef_Type(), ecorePackage.getEString(), "type", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEAttribute(getResourceRef_Auth(), this.getResAuthTypeBase(), "auth", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEAttribute(getResourceRef_Link(), ecorePackage.getEString(), "link", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEAttribute(getResourceRef_ResSharingScope(), this.getResSharingScopeType(), "resSharingScope", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getResourceRef_Descriptions(), this.getDescription(), null, "descriptions", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
-
- initEClass(securityRoleRefEClass, SecurityRoleRef.class, "SecurityRoleRef", !IS_ABSTRACT, !IS_INTERFACE); //$NON-NLS-1$
- initEAttribute(getSecurityRoleRef_Name(), ecorePackage.getEString(), "name", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEAttribute(getSecurityRoleRef_Description(), ecorePackage.getEString(), "description", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEAttribute(getSecurityRoleRef_Link(), ecorePackage.getEString(), "link", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getSecurityRoleRef_Descriptions(), this.getDescription(), null, "descriptions", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
-
- initEClass(securityRoleEClass, SecurityRole.class, "SecurityRole", !IS_ABSTRACT, !IS_INTERFACE); //$NON-NLS-1$
- initEAttribute(getSecurityRole_Description(), ecorePackage.getEString(), "description", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEAttribute(getSecurityRole_RoleName(), ecorePackage.getEString(), "roleName", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getSecurityRole_Descriptions(), this.getDescription(), null, "descriptions", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
-
- initEClass(resourceEnvRefEClass, ResourceEnvRef.class, "ResourceEnvRef", !IS_ABSTRACT, !IS_INTERFACE); //$NON-NLS-1$
- initEAttribute(getResourceEnvRef_Description(), ecorePackage.getEString(), "description", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEAttribute(getResourceEnvRef_Name(), ecorePackage.getEString(), "name", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getResourceEnvRef_Type(), theJavaRefPackage.getJavaClass(), null, "type", null, 1, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getResourceEnvRef_Descriptions(), this.getDescription(), null, "descriptions", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
-
- initEClass(ejbLocalRefEClass, EJBLocalRef.class, "EJBLocalRef", !IS_ABSTRACT, !IS_INTERFACE); //$NON-NLS-1$
- initEAttribute(getEJBLocalRef_LocalHome(), ecorePackage.getEString(), "localHome", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEAttribute(getEJBLocalRef_Local(), ecorePackage.getEString(), "local", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
-
- initEClass(runAsSpecifiedIdentityEClass, RunAsSpecifiedIdentity.class, "RunAsSpecifiedIdentity", !IS_ABSTRACT, !IS_INTERFACE); //$NON-NLS-1$
- initEReference(getRunAsSpecifiedIdentity_Identity(), this.getIdentity(), null, "identity", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
-
- initEClass(identityEClass, Identity.class, "Identity", !IS_ABSTRACT, !IS_INTERFACE); //$NON-NLS-1$
- initEAttribute(getIdentity_Description(), ecorePackage.getEString(), "description", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEAttribute(getIdentity_RoleName(), ecorePackage.getEString(), "roleName", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getIdentity_Descriptions(), this.getDescription(), null, "descriptions", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
-
- initEClass(iconTypeEClass, IconType.class, "IconType", !IS_ABSTRACT, !IS_INTERFACE); //$NON-NLS-1$
- initEAttribute(getIconType_SmallIcon(), ecorePackage.getEString(), "smallIcon", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEAttribute(getIconType_LargeIcon(), ecorePackage.getEString(), "largeIcon", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEAttribute(getIconType_Lang(), ecorePackage.getEString(), "lang", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
-
- initEClass(displayNameEClass, DisplayName.class, "DisplayName", !IS_ABSTRACT, !IS_INTERFACE); //$NON-NLS-1$
- initEAttribute(getDisplayName_Lang(), ecorePackage.getEString(), "lang", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEAttribute(getDisplayName_Value(), ecorePackage.getEString(), "value", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
-
- initEClass(messageDestinationRefEClass, MessageDestinationRef.class, "MessageDestinationRef", !IS_ABSTRACT, !IS_INTERFACE); //$NON-NLS-1$
- initEAttribute(getMessageDestinationRef_Name(), ecorePackage.getEString(), "name", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEAttribute(getMessageDestinationRef_Type(), ecorePackage.getEString(), "type", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEAttribute(getMessageDestinationRef_Usage(), this.getMessageDestinationUsageType(), "usage", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEAttribute(getMessageDestinationRef_Link(), ecorePackage.getEString(), "link", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getMessageDestinationRef_Descriptions(), this.getDescription(), null, "descriptions", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
-
- initEClass(messageDestinationEClass, MessageDestination.class, "MessageDestination", !IS_ABSTRACT, !IS_INTERFACE); //$NON-NLS-1$
- initEAttribute(getMessageDestination_Name(), ecorePackage.getEString(), "name", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
-
- initEClass(paramValueEClass, ParamValue.class, "ParamValue", !IS_ABSTRACT, !IS_INTERFACE); //$NON-NLS-1$
- initEAttribute(getParamValue_Name(), ecorePackage.getEString(), "name", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEAttribute(getParamValue_Value(), ecorePackage.getEString(), "value", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEAttribute(getParamValue_Description(), ecorePackage.getEString(), "description", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getParamValue_Descriptions(), this.getDescription(), null, "descriptions", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
-
- initEClass(descriptionGroupEClass, DescriptionGroup.class, "DescriptionGroup", !IS_ABSTRACT, !IS_INTERFACE); //$NON-NLS-1$
- initEReference(getDescriptionGroup_Icons(), this.getIconType(), null, "icons", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getDescriptionGroup_DisplayNames(), this.getDisplayName(), null, "displayNames", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getDescriptionGroup_Descriptions(), this.getDescription(), null, "descriptions", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
-
- initEClass(jndiEnvRefsGroupEClass, JNDIEnvRefsGroup.class, "JNDIEnvRefsGroup", IS_ABSTRACT, !IS_INTERFACE); //$NON-NLS-1$
- initEReference(getJNDIEnvRefsGroup_EnvironmentProperties(), this.getEnvEntry(), null, "environmentProperties", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getJNDIEnvRefsGroup_ResourceRefs(), this.getResourceRef(), null, "resourceRefs", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getJNDIEnvRefsGroup_EjbRefs(), this.getEjbRef(), null, "ejbRefs", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getJNDIEnvRefsGroup_ResourceEnvRefs(), this.getResourceEnvRef(), null, "resourceEnvRefs", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getJNDIEnvRefsGroup_EjbLocalRefs(), this.getEJBLocalRef(), null, "ejbLocalRefs", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getJNDIEnvRefsGroup_MessageDestinationRefs(), this.getMessageDestinationRef(), null, "messageDestinationRefs", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getJNDIEnvRefsGroup_ServiceRefs(), theWebservice_clientPackage.getServiceRef(), null, "serviceRefs", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
-
- initEClass(securityIdentityEClass, SecurityIdentity.class, "SecurityIdentity", !IS_ABSTRACT, !IS_INTERFACE); //$NON-NLS-1$
- initEAttribute(getSecurityIdentity_Description(), ecorePackage.getEString(), "description", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getSecurityIdentity_Descriptions(), this.getDescription(), null, "descriptions", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
-
- initEClass(useCallerIdentityEClass, UseCallerIdentity.class, "UseCallerIdentity", !IS_ABSTRACT, !IS_INTERFACE); //$NON-NLS-1$
-
- initEClass(descriptionEClass, Description.class, "Description", !IS_ABSTRACT, !IS_INTERFACE); //$NON-NLS-1$
- initEAttribute(getDescription_Lang(), ecorePackage.getEString(), "lang", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEAttribute(getDescription_Value(), ecorePackage.getEString(), "value", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
-
- initEClass(qNameEClass, QName.class, "QName", !IS_ABSTRACT, !IS_INTERFACE); //$NON-NLS-1$
- initEAttribute(getQName_NamespaceURI(), ecorePackage.getEString(), "namespaceURI", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEAttribute(getQName_LocalPart(), ecorePackage.getEString(), "localPart", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEAttribute(getQName_CombinedQName(), ecorePackage.getEString(), "combinedQName", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEAttribute(getQName_InternalPrefixOrNsURI(), ecorePackage.getEString(), "internalPrefixOrNsURI", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
-
- initEClass(listenerEClass, Listener.class, "Listener", !IS_ABSTRACT, !IS_INTERFACE); //$NON-NLS-1$
- initEReference(getListener_ListenerClass(), theJavaRefPackage.getJavaClass(), null, "listenerClass", null, 1, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
-
- initEClass(compatibilityDescriptionGroupEClass, CompatibilityDescriptionGroup.class, "CompatibilityDescriptionGroup", !IS_ABSTRACT, !IS_INTERFACE); //$NON-NLS-1$
- initEAttribute(getCompatibilityDescriptionGroup_SmallIcon(), ecorePackage.getEString(), "smallIcon", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEAttribute(getCompatibilityDescriptionGroup_LargeIcon(), ecorePackage.getEString(), "largeIcon", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEAttribute(getCompatibilityDescriptionGroup_Description(), ecorePackage.getEString(), "description", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEAttribute(getCompatibilityDescriptionGroup_DisplayName(), ecorePackage.getEString(), "displayName", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
-
- // Initialize enums and add enum literals
- initEEnum(envEntryTypeEEnum, EnvEntryType.class, "EnvEntryType"); //$NON-NLS-1$
- 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"); //$NON-NLS-1$
- addEEnumLiteral(resAuthTypeBaseEEnum, ResAuthTypeBase.CONTAINER_LITERAL);
- addEEnumLiteral(resAuthTypeBaseEEnum, ResAuthTypeBase.APPLICATION_LITERAL);
- addEEnumLiteral(resAuthTypeBaseEEnum, ResAuthTypeBase.SERVLET_LITERAL);
-
- initEEnum(ejbRefTypeEEnum, EjbRefType.class, "EjbRefType"); //$NON-NLS-1$
- addEEnumLiteral(ejbRefTypeEEnum, EjbRefType.SESSION_LITERAL);
- addEEnumLiteral(ejbRefTypeEEnum, EjbRefType.ENTITY_LITERAL);
-
- initEEnum(resSharingScopeTypeEEnum, ResSharingScopeType.class, "ResSharingScopeType"); //$NON-NLS-1$
- addEEnumLiteral(resSharingScopeTypeEEnum, ResSharingScopeType.SHAREABLE_LITERAL);
- addEEnumLiteral(resSharingScopeTypeEEnum, ResSharingScopeType.UNSHAREABLE_LITERAL);
-
- initEEnum(messageDestinationUsageTypeEEnum, MessageDestinationUsageType.class, "MessageDestinationUsageType"); //$NON-NLS-1$
- 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/impl/CompatibilityDescriptionGroupImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/CompatibilityDescriptionGroupImpl.java
deleted file mode 100644
index fe517929a..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/CompatibilityDescriptionGroupImpl.java
+++ /dev/null
@@ -1,601 +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.common.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.internal.common.impl.CompatibilityDescriptionGroupImpl#getSmallIcon <em>Small Icon</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.common.impl.CompatibilityDescriptionGroupImpl#getLargeIcon <em>Large Icon</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.common.impl.CompatibilityDescriptionGroupImpl#getDescription <em>Description</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.common.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: "); //$NON-NLS-1$
- result.append(smallIcon);
- result.append(", largeIcon: "); //$NON-NLS-1$
- result.append(largeIcon);
- result.append(", description: "); //$NON-NLS-1$
- result.append(description);
- result.append(", displayName: "); //$NON-NLS-1$
- result.append(displayName);
- result.append(')');
- return result.toString();
- }
-
-} //CompatibilityDescriptionGroupImpl
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/DescriptionGroupAdapter.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/DescriptionGroupAdapter.java
deleted file mode 100644
index 8349ac2fe..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/DescriptionGroupAdapter.java
+++ /dev/null
@@ -1,119 +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 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.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);
- }
-} \ No newline at end of file
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/DescriptionGroupImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/DescriptionGroupImpl.java
deleted file mode 100644
index 5da7ec05f..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/DescriptionGroupImpl.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.common.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.common.J2EEVersionResource;
-import org.eclipse.jst.j2ee.internal.J2EEVersionConstants;
-
-
-/**
- * <!-- 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.internal.common.impl.DescriptionGroupImpl#getIcons <em>Icons</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.common.impl.DescriptionGroupImpl#getDisplayNames <em>Display Names</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.common.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/impl/DescriptionImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/DescriptionImpl.java
deleted file mode 100644
index f59b62501..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/DescriptionImpl.java
+++ /dev/null
@@ -1,218 +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.common.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.internal.common.impl.DescriptionImpl#getLang <em>Lang</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.common.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: "); //$NON-NLS-1$
- result.append(lang);
- result.append(", value: "); //$NON-NLS-1$
- result.append(value);
- result.append(')');
- return result.toString();
- }
-
-} //DescriptionImpl
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/DisplayNameImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/DisplayNameImpl.java
deleted file mode 100644
index d2c29d765..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/DisplayNameImpl.java
+++ /dev/null
@@ -1,218 +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.common.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.internal.common.impl.DisplayNameImpl#getLang <em>Lang</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.common.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: "); //$NON-NLS-1$
- result.append(lang);
- result.append(", value: "); //$NON-NLS-1$
- result.append(value);
- result.append(')');
- return result.toString();
- }
-
-} //DisplayNameImpl
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/EJBLocalRefImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/EJBLocalRefImpl.java
deleted file mode 100644
index 768b7c9dc..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/EJBLocalRefImpl.java
+++ /dev/null
@@ -1,333 +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.common.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: "); //$NON-NLS-1$
- result.append(localHome);
- result.append(", local: "); //$NON-NLS-1$
- 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/impl/EjbRefImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/EjbRefImpl.java
deleted file mode 100644
index fba104405..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/EjbRefImpl.java
+++ /dev/null
@@ -1,514 +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.common.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: "); //$NON-NLS-1$
- result.append(name);
- result.append(", type: "); //$NON-NLS-1$
- if (typeESet) result.append(type); else result.append("<unset>"); //$NON-NLS-1$
- result.append(", home: "); //$NON-NLS-1$
- result.append(home);
- result.append(", remote: "); //$NON-NLS-1$
- result.append(remote);
- result.append(", link: "); //$NON-NLS-1$
- result.append(link);
- result.append(", description: "); //$NON-NLS-1$
- result.append(description);
- result.append(')');
- return result.toString();
- }
-
-}
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/EnvEntryImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/EnvEntryImpl.java
deleted file mode 100644
index 949b15b11..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/EnvEntryImpl.java
+++ /dev/null
@@ -1,371 +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.common.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: "); //$NON-NLS-1$
- result.append(description);
- result.append(", name: "); //$NON-NLS-1$
- result.append(name);
- result.append(", value: "); //$NON-NLS-1$
- result.append(value);
- result.append(", type: "); //$NON-NLS-1$
- if (typeESet) result.append(type); else result.append("<unset>"); //$NON-NLS-1$
- result.append(')');
- return result.toString();
- }
-
-}
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/IconTypeImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/IconTypeImpl.java
deleted file mode 100644
index 7ec4f749d..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/IconTypeImpl.java
+++ /dev/null
@@ -1,272 +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.common.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.internal.common.impl.IconTypeImpl#getSmallIcon <em>Small Icon</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.common.impl.IconTypeImpl#getLargeIcon <em>Large Icon</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.common.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: "); //$NON-NLS-1$
- result.append(smallIcon);
- result.append(", largeIcon: "); //$NON-NLS-1$
- result.append(largeIcon);
- result.append(", lang: "); //$NON-NLS-1$
- result.append(lang);
- result.append(')');
- return result.toString();
- }
-
-} //IconTypeImpl
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/IdentityImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/IdentityImpl.java
deleted file mode 100644
index c7eb66fe9..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/IdentityImpl.java
+++ /dev/null
@@ -1,248 +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.common.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: "); //$NON-NLS-1$
- result.append(description);
- result.append(", roleName: "); //$NON-NLS-1$
- result.append(roleName);
- result.append(')');
- return result.toString();
- }
-
-}
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/J2EEResouceFactorySaxRegistry.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/J2EEResouceFactorySaxRegistry.java
deleted file mode 100644
index 52d2ccca0..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/J2EEResouceFactorySaxRegistry.java
+++ /dev/null
@@ -1,53 +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 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.impl;
-import org.eclipse.jst.j2ee.application.impl.ApplicationResourceFactory;
-import org.eclipse.jst.j2ee.client.impl.ApplicationClientResourceFactory;
-import org.eclipse.jst.j2ee.ejb.impl.EJBJarResourceFactory;
-import org.eclipse.jst.j2ee.internal.J2EEConstants;
-import org.eclipse.jst.j2ee.jca.impl.ConnectorResourceFactory;
-import org.eclipse.jst.j2ee.webapplication.impl.WebAppResourceFactory;
-import org.eclipse.jst.j2ee.webservice.WebServiceConstants;
-import org.eclipse.jst.j2ee.webservice.wsclient.impl.WebServicesClientResourceFactory;
-import org.eclipse.jst.j2ee.webservice.wsdd.WsddResourceFactory;
-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/impl/J2EEResourceFactoryDomRegistry.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/J2EEResourceFactoryDomRegistry.java
deleted file mode 100644
index 9ec43b872..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/J2EEResourceFactoryDomRegistry.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
- *******************************************************************************/
-/*
- * 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.impl;
-
-import org.eclipse.jst.j2ee.application.impl.ApplicationResourceFactory;
-import org.eclipse.jst.j2ee.client.impl.ApplicationClientResourceFactory;
-import org.eclipse.jst.j2ee.ejb.impl.EJBJarResourceFactory;
-import org.eclipse.jst.j2ee.internal.J2EEConstants;
-import org.eclipse.jst.j2ee.jca.impl.ConnectorResourceFactory;
-import org.eclipse.jst.j2ee.webapplication.impl.WebAppResourceFactory;
-import org.eclipse.jst.j2ee.webservice.WebServiceConstants;
-import org.eclipse.jst.j2ee.webservice.wsclient.impl.WebServicesClientResourceFactory;
-import org.eclipse.jst.j2ee.webservice.wsdd.WsddResourceFactory;
-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/impl/J2EEResourceFactoryRegistry.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/J2EEResourceFactoryRegistry.java
deleted file mode 100644
index b28c26e15..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/J2EEResourceFactoryRegistry.java
+++ /dev/null
@@ -1,30 +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.common.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/impl/JNDIEnvRefsGroupImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/JNDIEnvRefsGroupImpl.java
deleted file mode 100644
index 6b1a26bd8..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/JNDIEnvRefsGroupImpl.java
+++ /dev/null
@@ -1,454 +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.common.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.internal.common.impl.JNDIEnvRefsGroupImpl#getEnvironmentProperties <em>Environment Properties</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.common.impl.JNDIEnvRefsGroupImpl#getResourceRefs <em>Resource Refs</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.common.impl.JNDIEnvRefsGroupImpl#getEjbRefs <em>Ejb Refs</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.common.impl.JNDIEnvRefsGroupImpl#getResourceEnvRefs <em>Resource Env Refs</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.common.impl.JNDIEnvRefsGroupImpl#getEjbLocalRefs <em>Ejb Local Refs</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.common.impl.JNDIEnvRefsGroupImpl#getMessageDestinationRefs <em>Message Destination Refs</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.common.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/impl/ListenerImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/ListenerImpl.java
deleted file mode 100644
index ba4aca53e..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/ListenerImpl.java
+++ /dev/null
@@ -1,267 +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.common.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/impl/MessageDestinationImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/MessageDestinationImpl.java
deleted file mode 100644
index 816c6818e..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/MessageDestinationImpl.java
+++ /dev/null
@@ -1,262 +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.common.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.internal.common.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: "); //$NON-NLS-1$
- result.append(name);
- result.append(')');
- return result.toString();
- }
-
-} //MessageDestinationImpl
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/MessageDestinationRefImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/MessageDestinationRefImpl.java
deleted file mode 100644
index 6a981aa40..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/MessageDestinationRefImpl.java
+++ /dev/null
@@ -1,412 +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.common.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.internal.common.impl.MessageDestinationRefImpl#getName <em>Name</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.common.impl.MessageDestinationRefImpl#getType <em>Type</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.common.impl.MessageDestinationRefImpl#getUsage <em>Usage</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.common.impl.MessageDestinationRefImpl#getLink <em>Link</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.common.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;
- boolean oldUseESet = useESet;
- useESet = true;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET, CommonPackage.MESSAGE_DESTINATION_REF__USAGE, oldUsage, usage, !oldUseESet));
- }
- /**
- * <!-- 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:
- unsetUsage();
- 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 isSetUse();
- 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: "); //$NON-NLS-1$
- result.append(name);
- result.append(", type: "); //$NON-NLS-1$
- result.append(type);
- result.append(", usage: "); //$NON-NLS-1$
- result.append(usage);
- result.append(", link: "); //$NON-NLS-1$
- result.append(link);
- result.append(')');
- return result.toString();
- }
-
-} //MessageDestinationRefImpl
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/ParamValueImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/ParamValueImpl.java
deleted file mode 100644
index 7b558869f..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/ParamValueImpl.java
+++ /dev/null
@@ -1,331 +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.common.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.internal.common.impl.ParamValueImpl#getName <em>Name</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.common.impl.ParamValueImpl#getValue <em>Value</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.common.impl.ParamValueImpl#getDescription <em>Description</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.common.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: "); //$NON-NLS-1$
- result.append(name);
- result.append(", value: "); //$NON-NLS-1$
- result.append(value);
- result.append(", description: "); //$NON-NLS-1$
- result.append(description);
- result.append(')');
- return result.toString();
- }
-
-} //ParamValueImpl
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/QNameImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/QNameImpl.java
deleted file mode 100644
index 58594e70a..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/QNameImpl.java
+++ /dev/null
@@ -1,416 +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.common.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.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.internal.common.impl.QNameImpl#getNamespaceURI <em>Namespace URI</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.common.impl.QNameImpl#getLocalPart <em>Local Part</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.common.impl.QNameImpl#getCombinedQName <em>Combined QName</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.common.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: "); //$NON-NLS-1$
- result.append(namespaceURI);
- result.append(", localPart: "); //$NON-NLS-1$
- result.append(localPart);
- result.append(", combinedQName: "); //$NON-NLS-1$
- result.append(combinedQName);
- result.append(", internalPrefixOrNsURI: "); //$NON-NLS-1$
- 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/impl/ResourceEnvRefImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/ResourceEnvRefImpl.java
deleted file mode 100644
index 72a97b3fd..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/ResourceEnvRefImpl.java
+++ /dev/null
@@ -1,323 +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.common.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: "); //$NON-NLS-1$
- result.append(description);
- result.append(", name: "); //$NON-NLS-1$
- result.append(name);
- result.append(')');
- return result.toString();
- }
-
-}
-
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/ResourceRefImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/ResourceRefImpl.java
deleted file mode 100644
index 6397fc3fc..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/ResourceRefImpl.java
+++ /dev/null
@@ -1,508 +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.common.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: "); //$NON-NLS-1$
- result.append(description);
- result.append(", name: "); //$NON-NLS-1$
- result.append(name);
- result.append(", type: "); //$NON-NLS-1$
- result.append(type);
- result.append(", auth: "); //$NON-NLS-1$
- if (authESet) result.append(auth); else result.append("<unset>"); //$NON-NLS-1$
- result.append(", link: "); //$NON-NLS-1$
- result.append(link);
- result.append(", resSharingScope: "); //$NON-NLS-1$
- if (resSharingScopeESet) result.append(resSharingScope); else result.append("<unset>"); //$NON-NLS-1$
- result.append(')');
- return result.toString();
- }
-
-}
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/RunAsSpecifiedIdentityImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/RunAsSpecifiedIdentityImpl.java
deleted file mode 100644
index b6ef36520..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/RunAsSpecifiedIdentityImpl.java
+++ /dev/null
@@ -1,193 +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.common.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/impl/SecurityIdentityImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/SecurityIdentityImpl.java
deleted file mode 100644
index 92397c421..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/SecurityIdentityImpl.java
+++ /dev/null
@@ -1,214 +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.common.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: "); //$NON-NLS-1$
- 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/impl/SecurityRoleImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/SecurityRoleImpl.java
deleted file mode 100644
index caed618ef..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/SecurityRoleImpl.java
+++ /dev/null
@@ -1,289 +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.common.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))
- || (descriptions != null && !descriptions.isEmpty());
- 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: "); //$NON-NLS-1$
- result.append(description);
- result.append(", roleName: "); //$NON-NLS-1$
- result.append(roleName);
- result.append(')');
- return result.toString();
- }
-
-}
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/SecurityRoleRefImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/SecurityRoleRefImpl.java
deleted file mode 100644
index 47488a2b9..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/SecurityRoleRefImpl.java
+++ /dev/null
@@ -1,288 +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.common.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__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: "); //$NON-NLS-1$
- result.append(name);
- result.append(", description: "); //$NON-NLS-1$
- result.append(description);
- result.append(", link: "); //$NON-NLS-1$
- result.append(link);
- result.append(')');
- return result.toString();
- }
-
-}
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/UseCallerIdentityImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/UseCallerIdentityImpl.java
deleted file mode 100644
index c666782ad..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/UseCallerIdentityImpl.java
+++ /dev/null
@@ -1,137 +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.common.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/impl/XMLResourceFactory.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/XMLResourceFactory.java
deleted file mode 100644
index 3d5db8a4d..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/XMLResourceFactory.java
+++ /dev/null
@@ -1,53 +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.common.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.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(XMLResource.OPTION_USE_ENCODED_ATTRIBUTE_STYLE, Boolean.TRUE);
- resource.getDefaultSaveOptions().put(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/impl/XMLResourceImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/XMLResourceImpl.java
deleted file mode 100644
index 532ac42b6..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/impl/XMLResourceImpl.java
+++ /dev/null
@@ -1,261 +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.common.impl;
-
-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.common.J2EEVersionResource;
-import org.eclipse.jst.j2ee.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.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()))
- version = J2EE_1_3_ID;
- else if (systemId.equals(getJ2EE_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();
- public abstract String getJ2EE_1_3_PublicID();
- public abstract String 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() {
- float ver = getModuleVersionID();
- Float specVersion = new Float(ver/10);
- return specVersion.toString();
- }
-
-}
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/util/CommonAdapterFactory.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/util/CommonAdapterFactory.java
deleted file mode 100644
index 778a833a3..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/util/CommonAdapterFactory.java
+++ /dev/null
@@ -1,464 +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.common.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.internal.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.internal.common.Description
- * @generated
- */
- public Adapter createDescriptionAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.internal.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.internal.common.QName
- * @generated
- */
- public Adapter createQNameAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.internal.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.internal.common.Listener
- * @generated
- */
- public Adapter createListenerAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.internal.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.internal.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.internal.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.internal.common.IconType
- * @generated
- */
- public Adapter createIconTypeAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.internal.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.internal.common.DisplayName
- * @generated
- */
- public Adapter createDisplayNameAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.internal.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.internal.common.MessageDestinationRef
- * @generated
- */
- public Adapter createMessageDestinationRefAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.internal.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.internal.common.MessageDestination
- * @generated
- */
- public Adapter createMessageDestinationAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.internal.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.internal.common.ParamValue
- * @generated
- */
- public Adapter createParamValueAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.internal.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.internal.common.DescriptionGroup
- * @generated
- */
- public Adapter createDescriptionGroupAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.internal.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.internal.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/util/CommonSwitch.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/util/CommonSwitch.java
deleted file mode 100644
index 9eaeb7072..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/util/CommonSwitch.java
+++ /dev/null
@@ -1,571 +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.common.util;
-
-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.internal.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) {
- EClass theEClass = theEObject.eClass();
- if (theEClass.eContainer() == modelPackage) {
- switch (theEClass.getClassifierID()) {
- 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.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);
- }
- }
- 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/util/CommonUtil.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/util/CommonUtil.java
deleted file mode 100644
index c72ad7a39..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/util/CommonUtil.java
+++ /dev/null
@@ -1,82 +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.common.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.impl.ApplicationFactoryImpl;
-import org.eclipse.jst.j2ee.client.impl.ClientFactoryImpl;
-import org.eclipse.jst.j2ee.ejb.impl.EjbFactoryImpl;
-import org.eclipse.jst.j2ee.internal.xml.J2EEXMLResourceHandler;
-import org.eclipse.jst.j2ee.jca.impl.JcaFactoryImpl;
-import org.eclipse.jst.j2ee.webapplication.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 = J2EEXMLResourceHandler.getString("J2EE_VERSION_PROXY_ERROR", new Object[]{proxyUri}); //$NON-NLS-1$
- throw new IllegalStateException(message);
- } else if (dd.eResource() == null) {
- String message = J2EEXMLResourceHandler.getString("J2EE_VERSION_NULL_ERROR"); //$NON-NLS-1$
- throw new IllegalStateException(message);
- }
-}
-
-}
-
-
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/util/Defaultable.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/util/Defaultable.java
deleted file mode 100644
index 77de336c4..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/util/Defaultable.java
+++ /dev/null
@@ -1,21 +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.common.util;
-
-import org.eclipse.emf.common.notify.Notifier;
-/**
- * Interface used for objects that can be "fluffed up" on demand, but not serialized unless modified
- */
-public interface Defaultable extends Notifier {
-public boolean isDefault();
-}
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/util/DefaultedAdapterImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/util/DefaultedAdapterImpl.java
deleted file mode 100644
index 69af9e856..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/util/DefaultedAdapterImpl.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.common.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/util/Defaultor.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/util/Defaultor.java
deleted file mode 100644
index 66ce8bf80..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/util/Defaultor.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
- *******************************************************************************/
-package org.eclipse.jst.j2ee.common.util;
-
-/**
- * Insert the type's description here.
- * Creation date: (6/15/2001 4:58:15 PM)
- * @author: Administrator
- */
-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/util/IDUtility.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/util/IDUtility.java
deleted file mode 100644
index 1e1557950..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/util/IDUtility.java
+++ /dev/null
@@ -1,77 +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.common.util;
-
-import java.util.List;
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.wst.common.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/util/XmlSpecifiedDataAdapter.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/util/XmlSpecifiedDataAdapter.java
deleted file mode 100644
index 8fbb0f968..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/common/util/XmlSpecifiedDataAdapter.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.common.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/ejb/AcknowledgeMode.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/AcknowledgeMode.java
deleted file mode 100644
index a7bee7f11..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/AcknowledgeMode.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.ejb;
-import java.util.Arrays;
-import java.util.Collections;
-import java.util.List;
-
-import org.eclipse.emf.common.util.AbstractEnumerator;
-
-
-
-
-
-/**
- * @lastgen interface AcknowledgeMode {}
- */
-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 -->
- * <!-- 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
- */
- 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 769c44a53..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, 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 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 -->
- * @since 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.internal.ejb.ActivationConfig#getConfigProperties <em>Config Properties</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.ejb.ActivationConfig#getDescriptions <em>Descriptions</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.jst.j2ee.internal.ejb.EjbPackage#getActivationConfig()
- * @model
- * @generated
- */
-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.internal.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.internal.ejb.EjbPackage#getActivationConfig_ConfigProperties()
- * @model type="org.eclipse.jst.j2ee.internal.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.internal.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.internal.ejb.EjbPackage#getActivationConfig_Descriptions()
- * @model type="org.eclipse.jst.j2ee.internal.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 b88f7b702..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, 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 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 -->
- * @since 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.internal.ejb.ActivationConfigProperty#getValue <em>Value</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.ejb.ActivationConfigProperty#getName <em>Name</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.jst.j2ee.internal.ejb.EjbPackage#getActivationConfigProperty()
- * @model
- * @generated
- */
-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.internal.ejb.EjbPackage#getActivationConfigProperty_Value()
- * @model
- * @generated
- */
- String getValue();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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.internal.ejb.EjbPackage#getActivationConfigProperty_Name()
- * @model
- * @generated
- */
- String getName();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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 5b45cb52d..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/AssemblyDescriptor.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.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.
- */
-public interface AssemblyDescriptor extends EObject{
-
-/**
- * Return the first method permission that contains all the roles in securityRoles and
- * is the same size
- */
-MethodPermission getMethodPermission(List securityRoles);
-/**
- * Return a List of MethodElements for @anEJB going
- * through the MethodPermissions.
- */
-List getMethodPermissionMethodElements(EnterpriseBean anEJB) ;
-/**
- * Return a List of MethodElements for @anEJB going
- * through the MethodTransactions.
- */
-List getMethodTransactionMethodElements(EnterpriseBean anEJB) ;
- public SecurityRole getSecurityRoleNamed(String roleName);
-
-/**
- * Rename the security role, if it exists
- */
-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 l 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 l 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.internal.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 -->
- * @since J2EE1.4
- * <!-- end-model-doc -->
- * @return the value of the '<em>Message Destinations</em>' containment reference list.
- * @see org.eclipse.jst.j2ee.internal.ejb.EjbPackage#getAssemblyDescriptor_MessageDestinations()
- * @model type="org.eclipse.jst.j2ee.internal.common.MessageDestination" containment="true"
- * @generated
- */
- EList getMessageDestinations();
-
- /**
- * Remove the MethodElements that are referencing @anEJB.
- */
- 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 6e353003b..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/CMPAttribute.java
+++ /dev/null
@@ -1,97 +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 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.
-
- */
-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.
- */
-
-Field getField() ;
-String getGetterName();
-/**
- * Return the type of this attribute in its original form (i.e., unwrapped if
- * the type has been wrapped).
- */
-public JavaHelpers getOriginatingType() ;
-String getSetterName();
-JavaHelpers getType() ;
-boolean isCMRField() ;
-boolean isKey() ;
-/**
- * Returns true if this field is a primkey-field in the deployment descriptor.
- * @return
- */
-public boolean isPrimKeyField();
-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.internal.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 -->
- * @since J2EE1.4
- * <!-- end-model-doc -->
- * @return the value of the '<em>Descriptions</em>' containment reference list.
- * @see org.eclipse.jst.j2ee.internal.ejb.EjbPackage#getCMPAttribute_Descriptions()
- * @model type="org.eclipse.jst.j2ee.internal.common.Description" containment="true"
- * @generated
- */
- EList getDescriptions();
-
- /**
- * Return true if a targetAttribute exists.
- */
- boolean isDerived();
-
- 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 baf5ed1ba..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/CMRField.java
+++ /dev/null
@@ -1,52 +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 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).
- *
-
- */
-public interface CMRField extends CMPAttribute{
-
- public String getCollectionTypeName();
-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 l 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 l 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 3cee916d8..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/CommonRelationship.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
- *******************************************************************************/
-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
- */
-public interface CommonRelationship extends EObject {
-public EList getCommonRoles();
-public CommonRelationshipRole getFirstCommonRole();
-public CommonRelationshipRole getSecondCommonRole();
-public String getName();
-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 498b0f07c..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/CommonRelationshipRole.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.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
- */
-public interface CommonRelationshipRole extends EObject {
-/**
- * Return the persistentAttributes from my Entity that are used
- * by this role.
- */
-
-public EList getAttributes();
-/**
- * Return our parent relationship as a CommonRelationship
- */
-
-public CommonRelationship getCommonRelationship();
-
-
-/**
- * @return The value of the Name attribute
- * 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 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.
- */
-String getRoleName();
-/**
- * Return the other role.
- */
-
-CommonRelationshipRole getOppositeAsCommonRole() ;
-/**
- * @return The Source ejb
- * Compute the ContainerManagedEntity which is the source of a role that participates in a relationship.
- */
-public ContainerManagedEntity getSourceEntity();
-
-/**
- * @return The type ejb
- * Compute the ContainerManagedEntity which is the type of a role that participates in a relationship.
- */
-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();
-/**
-* @return The computed value isKey
-*/
-public boolean isKey();
-
-/**
- * This method should be used as a hint about the key status of the role.
- */
-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
-*/
-public void setUpper(int upperBound);
-
-/**
-*
-* sets the lower limit of our 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();
-public String getTargetAttributeName(CMPAttribute roleAttribute);
-
-void reconcileAttributes();
- /**
- * Method isRequired.
- * @return boolean
- */
- 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 f91faa2aa..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/ContainerManagedEntity.java
+++ /dev/null
@@ -1,235 +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.List;
-
-import org.eclipse.emf.common.util.EList;
-import org.eclipse.jem.java.Field;
-
-/**
- * @generated
- */
-public interface ContainerManagedEntity extends Entity{
-
- String VERSION_1_X = "1.x"; //$NON-NLS-1$
- 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$
- String UNKNOWN_PRIMARY_KEY = "java.lang.Object"; //$NON-NLS-1$
- String JAVA_LANG_STRING = "java.lang.String"; //$NON-NLS-1$
- int DERIVED_FLAG_CHANGE = 301;
-public CMPAttribute addKeyAttributeName(String aName);
-
-public abstract CMPAttribute addPersistentAttribute(Field aField) ;
-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
- * @deprecated - Use getPrimKeyField()
- */
-CMPAttribute getPrimaryKeyAttribute();
-
-public boolean isContainerManagedEntity();
-public boolean isVersion1_X();
-public boolean isVersion2_X();
-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.
- */
-public boolean isUnknownPrimaryKey();
-public String[] listPersistentFieldNames();
-
-CMPAttribute removePersistentAttribute(Field aField) ;
-/**
- * Remove the persistentAttribute named aName.
- * Creation date: (8/2/2000 8:59:32 PM)
- * @param aName java.lang.String
- */
-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
- */
- 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.internal.ejb.Query}.
- * It is bidirectional and its opposite is '{@link org.eclipse.jst.j2ee.internal.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 -->
- * @since 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.internal.ejb.EjbPackage#getContainerManagedEntity_Queries()
- * @see org.eclipse.jst.j2ee.internal.ejb.Query#getEntity
- * @model type="org.eclipse.jst.j2ee.internal.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.internal.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.internal.ejb.EjbPackage#getContainerManagedEntity_CMPAttribute()
- * @model type="org.eclipse.jst.j2ee.internal.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.internal.ejb.EjbPackage#getContainerManagedEntity_PrimKeyField()
- * @model
- * @generated
- */
- CMPAttribute getPrimKeyField();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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.
- */
- List getAvailableFindQueryMethods() ;
- /**
- * Return a List of all the available Query methods for the Bean class.
- */
- 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
- */
- List getAllAvailableQueryMethods();
- public List getFilteredFeatures(EJBExtensionFilter aFilter);
- public void makePrimKeyFieldProxy();
- /**
- * @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
- */
- 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 a017f8536..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/DestinationType.java
+++ /dev/null
@@ -1,126 +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.Arrays;
-import java.util.Collections;
-import java.util.List;
-
-import org.eclipse.emf.common.util.AbstractEnumerator;
-
-
-
-
-
-/**
- * @lastgen interface DestinationType {}
- */
-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 -->
- * <!-- 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 -->
- * <!-- 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 abec44772..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/EJBExtensionFilter.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.ejb;
-
-import java.util.List;
-
-/**
- * Insert the type's description here.
- * Creation date: (11/28/2000 5:31:53 PM)
- * @author: Administrator
- */
-public interface EJBExtensionFilter {
-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 03784efdb..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/EJBJar.java
+++ /dev/null
@@ -1,231 +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.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.
- */
-public interface EJBJar extends CompatibilityDescriptionGroup{
-
-/**
- * Return true if there are any ContainerManagedEntity beans in this jar.
- */
-boolean containsContainerManagedBeans() ;
-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
- */
-public EnterpriseBean getEnterpiseBeanFromRef(EjbRef ref);
- public EnterpriseBean getEnterpriseBeanNamed(String ejbName);
-/**
- * Return ALL EnterpriseBean(s) that are referencing @aJavaClass as a
- * home, remote, bean class, or key class.
- */
-List getEnterpriseBeansWithReference(JavaClass aJavaClass) ;
-/**
- * Return the *FIRST* EnterpriseBean that is referencing @aJavaClass as its
- * home, remote, bean class, or key class.
- */
-EnterpriseBean getEnterpriseBeanWithReference(JavaClass aJavaClass) ;
-/**
- * Return List of Session beans in this jar.
- * @return java.util.List
- */
-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
- */
-public void renameSecurityRole(String existingRoleName, String newRoleName);
- /**
- *This returns the j2ee version id. Compare with J2EEVersionConstants to determine j2ee level
- */
- 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 -->
- * @since 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.internal.ejb.EjbPackage#getEJBJar_Version()
- * @model
- * @generated
- */
- String getVersion();
-
- /**
- * This returns the module version id. Compare with J2EEVersionConstants to determine module level
- */
- public int getVersionID() throws IllegalStateException ;
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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 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 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 l 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.
- */
- EJBRelationshipRole getRelationshipRole(String aRoleName, ContainerManagedEntity sourceCMP) ;
-
- /**
- * Return the first EJBRelation with the same name as <code>aRelationName</code>.
- */
- EJBRelation getEJBRelation(String aRelationName) ;
-
- /**
- * Return all EJBRelation objects that have an EJBRelationshipRole with a
- * source EJB of <code>cmp</code>.
- */
- List getEJBRelationsForSource(ContainerManagedEntity cmp);
-
- /**
- * Return all EJBRelationshipRole objects that have an EJBRelationshipRole with a
- * type EJB of <code>cmp</code>.
- */
- 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 b4c97602c..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/EJBMethodCategory.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.ejb;
-
-import org.eclipse.emf.ecore.EObject;
-/**
- * The valid EJB method category names are: EJBHOMEMETHOD, EJBCREATEMETHOD, EJBFINDERMETHOD, EJBREMOTEMETHOD.
- */
-public interface EJBMethodCategory extends EObject{
-}
-
-
-
-
-
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 c4477eb03..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, 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 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)
- */
-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.internal.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 -->
- * @since J2EE1.4
- * <!-- end-model-doc -->
- * @return the value of the '<em>Descriptions</em>' containment reference list.
- * @see org.eclipse.jst.j2ee.internal.ejb.EjbPackage#getEJBRelation_Descriptions()
- * @model type="org.eclipse.jst.j2ee.internal.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 edc59a11a..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, 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 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>
- * ...
- */
-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.internal.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.internal.ejb.MultiplicityKind
- * @see #isSetMultiplicity()
- * @see #unsetMultiplicity()
- * @see #setMultiplicity(MultiplicityKind)
- * @see org.eclipse.jst.j2ee.internal.ejb.EjbPackage#getEJBRelationshipRole_Multiplicity()
- * @model unsettable="true"
- * @generated
- */
- MultiplicityKind getMultiplicity();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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.internal.ejb.MultiplicityKind
- * @see #isSetMultiplicity()
- * @see #unsetMultiplicity()
- * @see #getMultiplicity()
- * @generated
- */
- void setMultiplicity(MultiplicityKind value);
-
- /**
- * Unsets the value of the '{@link org.eclipse.jst.j2ee.internal.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.internal.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.internal.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.internal.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.internal.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 -->
- * @since J2EE1.4
- * <!-- end-model-doc -->
- * @return the value of the '<em>Descriptions</em>' containment reference list.
- * @see org.eclipse.jst.j2ee.internal.ejb.EjbPackage#getEJBRelationshipRole_Descriptions()
- * @model type="org.eclipse.jst.j2ee.internal.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 00803b537..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/EJBResource.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
- *******************************************************************************/
-/*
- * Created on Mar 27, 2003
- *
- */
-package org.eclipse.jst.j2ee.ejb;
-
-import org.eclipse.jst.j2ee.common.XMLResource;
-
-/**
- * @author schacher
- */
-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);
-
-}
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 234b7a8db..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/EjbFactory.java
+++ /dev/null
@@ -1,182 +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 org.eclipse.emf.ecore.EFactory;
-import org.eclipse.jem.java.Method;
-/**
- * @generated
- */
-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.impl.EjbFactoryImpl();
-
-MethodElement createMethodElement(String aSignature) ;
-MethodElement createMethodElementFrom(Method method) ;
-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();
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- 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 ea8ba2aac..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/EjbMethodElementComparator.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.ejb;
-
-import java.util.Comparator;
-
-public class EjbMethodElementComparator implements Comparator {
- static final int HOME = MethodElementKind.HOME;
- static final int REMOTE = MethodElementKind.REMOTE;
- static final int LOCAL_HOME = MethodElementKind.LOCAL_HOME;
- static final int LOCAL = MethodElementKind.LOCAL;
- static final int UNSPECIFIED = MethodElementKind.UNSPECIFIED;
-
- /**
- * Constructor for EjbMethodElementComparator.
- */
- public EjbMethodElementComparator() {
- super();
- }
-
- /*
- * @see Comparator#compare(Object, Object)
- */
- 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.
- */
- 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);
- }
-
- 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;
- }
- 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 febf047d1..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/EjbMethodElementHelper.java
+++ /dev/null
@@ -1,435 +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 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.impl.EjbFactoryImpl;
-
-/**
- * @author blancett
- *
- * To change the template for this generated type comment go to
- * Window>Preferences>Java>Code Generation>Code and Comments
- */
-public class EjbMethodElementHelper {
- public static final int ALL_METHODS = 0;
- public static final int HOME_METHODS = 1;
- public static final int CLIENT_METHODS = 2;
- public static final int REMOTE_METHODS = 3;
- public static final int LOCAL_METHODS = 4;
- public static final int LOCAL_HOME_METHODS = 5;
- public static final int LOCAL_REMOTE_METHODS = 6;
- protected EjbMethodElementComparator defaultMEComparator;
- protected EjbMethodElementComparator defaultMethodElementComparator;
- private static EjbMethodElementHelper singleton;
- public static final String DEFAULT_METHOD_NAME = "*"; //$NON-NLS-1$
- protected static final String METHOD_ELEMENT_NAME = "MethodElement"; //$NON-NLS-1$
- public EjbMethodElementHelper() {
- super();
- }
- 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;
- }
- protected EjbMethodElementComparator getDefaultMEComparator() {
- if (defaultMEComparator == null)
- defaultMEComparator = new EjbMethodElementComparator();
- return defaultMEComparator;
- }
- 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);
- }
- 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;
- }
- 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;
- }
- public List getExistingOrAvailableTransactionMethodElements(EObject object, EnterpriseBean bean) {
- List result = new ArrayList();
- result.addAll(getAvailableMethodTransactionMethodElementsExcludingExisting(bean));
- unionMethodElements(result, getExistingMethodElements(object, bean));
- Collections.sort(result, getDefaultMethodElementComparator());
- return result;
- }
- protected EjbMethodElementComparator getDefaultMethodElementComparator() {
- if (defaultMethodElementComparator == null)
- defaultMethodElementComparator = new EjbMethodElementComparator();
- return defaultMethodElementComparator;
- }
- 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;
- }
- 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 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;
- }
- protected List createMethodElements(List signatures, Enumerator aType, EnterpriseBean bean) {
- return createMethodElements(METHOD_ELEMENT_NAME, signatures, aType, bean);
- }
- protected EjbPackage getEjbPackage() {
- return EjbFactoryImpl.getPackage();
- }
- protected EjbFactory getEjbFactory() {
- return ((EjbPackage) EPackage.Registry.INSTANCE.getEPackage(EjbPackage.eNS_URI)).getEjbFactory();
- }
- 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;
- }
- 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;
- }
- 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;
- }
- 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;
- }
- 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;
- }
- 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;
- }
- public List getAvailableMethodElementsExcludingExisting(EnterpriseBean ejb, List someMethodElementOwners, EReference methodElementReference, int usageFlag) {
- return getAvailableMethodElementsExcludingExisting(ejb, someMethodElementOwners, methodElementReference, getDefaultMEComparator(), usageFlag);
- }
- public List getAvailableMethodElementsExcludingExisting(EnterpriseBean ejb, List someMethodElementOwners, EReference methodElementReference) {
- return getAvailableMethodElementsExcludingExisting(ejb, someMethodElementOwners, methodElementReference, getDefaultMEComparator());
- }
- public List getAvailableMethodElementsExcludingExisting(EnterpriseBean ejb, List someMethodElementOwners, EReference methodElementReference, Comparator comparator) {
- return getAvailableMethodElementsExcludingExisting(ejb, someMethodElementOwners, methodElementReference, comparator, ALL_METHODS);
- }
- 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;
- }
- 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;
- }
- 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 c617c465e..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/EjbPackage.java
+++ /dev/null
@@ -1,2775 +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 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;
-
-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.internal.ejb.impl.ActivationConfigPropertyImpl <em>Activation Config Property</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.j2ee.internal.ejb.impl.ActivationConfigPropertyImpl
- * @see org.eclipse.jst.j2ee.internal.ejb.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.internal.ejb.impl.ActivationConfigImpl <em>Activation Config</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.j2ee.internal.ejb.impl.ActivationConfigImpl
- * @see org.eclipse.jst.j2ee.internal.ejb.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.internal.ejb"; //$NON-NLS-1$
-
- /**
- * The singleton instance of the package.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EjbPackage eINSTANCE = org.eclipse.jst.j2ee.ejb.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.internal.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.internal.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.internal.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.internal.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.internal.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.internal.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.internal.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.internal.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.internal.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.internal.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.internal.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.internal.ejb.ContainerManagedEntity#getQueries()
- * @see #getContainerManagedEntity()
- * @generated
- */
- EReference getContainerManagedEntity_Queries();
-
- /**
- * Returns the meta object for the reference list '{@link org.eclipse.jst.j2ee.internal.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.internal.ejb.ContainerManagedEntity#getCMPAttribute()
- * @see #getContainerManagedEntity()
- * @generated
- */
- EReference getContainerManagedEntity_CMPAttribute();
-
- /**
- * Returns the meta object for the reference '{@link org.eclipse.jst.j2ee.internal.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.internal.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.internal.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.internal.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.internal.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.internal.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.internal.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.internal.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.internal.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.internal.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.internal.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.internal.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.internal.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.internal.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.internal.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.internal.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.internal.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.internal.ejb.ActivationConfigProperty
- * @generated
- */
- EClass getActivationConfigProperty();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.internal.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.internal.ejb.ActivationConfigProperty#getValue()
- * @see #getActivationConfigProperty()
- * @generated
- */
- EAttribute getActivationConfigProperty_Value();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.internal.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.internal.ejb.ActivationConfigProperty#getName()
- * @see #getActivationConfigProperty()
- * @generated
- */
- EAttribute getActivationConfigProperty_Name();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.jst.j2ee.internal.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.internal.ejb.ActivationConfig
- * @generated
- */
- EClass getActivationConfig();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.internal.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.internal.ejb.ActivationConfig#getConfigProperties()
- * @see #getActivationConfig()
- * @generated
- */
- EReference getActivationConfig_ConfigProperties();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.internal.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.internal.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.internal.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.internal.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.internal.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.internal.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.internal.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.internal.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.internal.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.internal.ejb.MessageDriven#getActivationConfig()
- * @see #getMessageDriven()
- * @generated
- */
- EReference getMessageDriven_ActivationConfig();
-
- /**
- * Returns the meta object for the reference '{@link org.eclipse.jst.j2ee.internal.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.internal.ejb.MessageDriven#getMessageDestination()
- * @see #getMessageDriven()
- * @generated
- */
- EReference getMessageDriven_MessageDestination();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.internal.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.internal.ejb.MessageDriven#getLink()
- * @see #getMessageDriven()
- * @generated
- */
- EAttribute getMessageDriven_Link();
-
- /**
- * Returns the meta object for the reference '{@link org.eclipse.jst.j2ee.internal.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.internal.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 e85d30e39..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, 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;
-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
- *
- **/
-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.internal.ejb.EjbPackage#getEnterpriseBean_Name()
- * @model
- * @generated
- */
- String getName();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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 722b278a0..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, 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 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.
- */
-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.internal.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.internal.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.internal.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 bbbbe0e3a..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, 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.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.
-
- */
-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.internal.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 -->
- * @since J2EE1.4
- * <!-- end-model-doc -->
- * @return the value of the '<em>Descriptions</em>' containment reference list.
- * @see org.eclipse.jst.j2ee.internal.ejb.EjbPackage#getExcludeList_Descriptions()
- * @model type="org.eclipse.jst.j2ee.internal.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 5b42cfd06..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, 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.List;
-
-
-
-
-
-/**
- * Insert the type's description here.
- * Creation date: (11/6/2000 11:40:16 AM)
- * @author: Administrator
- */
-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 a241fe0ee..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, 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 org.eclipse.jem.java.JavaClass;
-
-
-
-
-/**
- * @generated
- */
-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.internal.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.internal.ejb.TransactionType
- * @see #isSetTransactionType()
- * @see #unsetTransactionType()
- * @see #getTransactionType()
- * @generated
- */
- void setTransactionType(TransactionType value);
-
- /**
- * Unsets the value of the '{@link org.eclipse.jst.j2ee.internal.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.internal.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.internal.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.internal.ejb.AcknowledgeMode
- * @see #isSetAcknowledgeMode()
- * @see #unsetAcknowledgeMode()
- * @see #getAcknowledgeMode()
- * @generated
- */
- void setAcknowledgeMode(AcknowledgeMode value);
-
- /**
- * Unsets the value of the '{@link org.eclipse.jst.j2ee.internal.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.internal.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 l 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 -->
- * @since J2EE1.4
- * <!-- end-model-doc -->
- * @return the value of the '<em>Activation Config</em>' containment reference.
- * @see #setActivationConfig(ActivationConfig)
- * @see org.eclipse.jst.j2ee.internal.ejb.EjbPackage#getMessageDriven_ActivationConfig()
- * @model containment="true"
- * @generated
- */
- ActivationConfig getActivationConfig();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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 -->
- * @since J2EE1.4
- * <!-- end-model-doc -->
- * @return the value of the '<em>Message Destination</em>' reference.
- * @see #setMessageDestination(JavaClass)
- * @see org.eclipse.jst.j2ee.internal.ejb.EjbPackage#getMessageDriven_MessageDestination()
- * @model
- * @generated
- */
- JavaClass getMessageDestination();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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.internal.ejb.EjbPackage#getMessageDriven_Link()
- * @model
- * @generated
- */
- String getLink();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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 -->
- * @since 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.internal.ejb.EjbPackage#getMessageDriven_MessagingType()
- * @model
- * @generated
- */
- JavaClass getMessagingType();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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 7ef45e88d..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, 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 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.
- */
-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.internal.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.internal.ejb.DestinationType
- * @see #isSetType()
- * @see #unsetType()
- * @see #getType()
- * @generated
- */
- void setType(DestinationType value);
-
- /**
- * Unsets the value of the '{@link org.eclipse.jst.j2ee.internal.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.internal.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.internal.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.internal.ejb.SubscriptionDurabilityKind
- * @see #isSetSubscriptionDurability()
- * @see #unsetSubscriptionDurability()
- * @see #getSubscriptionDurability()
- * @generated
- */
- void setSubscriptionDurability(SubscriptionDurabilityKind value);
-
- /**
- * Unsets the value of the '{@link org.eclipse.jst.j2ee.internal.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.internal.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 l 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 4ed6b620c..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, 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 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>
-
- */
-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.internal.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.internal.ejb.MethodElementKind
- * @see #isSetType()
- * @see #unsetType()
- * @see #getType()
- * @generated
- */
- void setType(MethodElementKind value);
-
- /**
- * Unsets the value of the '{@link org.eclipse.jst.j2ee.internal.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.internal.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.internal.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.internal.ejb.EjbPackage#getMethodElement_Descriptions()
- * @model type="org.eclipse.jst.j2ee.internal.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 6071f4f8c..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/MethodElementKind.java
+++ /dev/null
@@ -1,214 +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.Arrays;
-import java.util.Collections;
-import java.util.List;
-
-import org.eclipse.emf.common.util.AbstractEnumerator;
-
-
-
-
-
-/**
- * @lastgen interface MethodElementKind {}
- */
-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 -->
- * <!-- 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 -->
- * <!-- 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 811d5632f..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, 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.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.
- */
-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.internal.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.internal.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.internal.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 -->
- * @since J2EE1.4
- * <!-- end-model-doc -->
- * @return the value of the '<em>Descriptions</em>' containment reference list.
- * @see org.eclipse.jst.j2ee.internal.ejb.EjbPackage#getMethodPermission_Descriptions()
- * @model type="org.eclipse.jst.j2ee.internal.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 fd3752d8c..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, 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.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.
- */
-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.internal.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.internal.ejb.TransactionAttributeType
- * @see #isSetTransactionAttribute()
- * @see #unsetTransactionAttribute()
- * @see #getTransactionAttribute()
- * @generated
- */
- void setTransactionAttribute(TransactionAttributeType value);
-
- /**
- * Unsets the value of the '{@link org.eclipse.jst.j2ee.internal.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.internal.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.internal.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 -->
- * @since J2EE1.4
- * <!-- end-model-doc -->
- * @return the value of the '<em>Descriptions</em>' containment reference list.
- * @see org.eclipse.jst.j2ee.internal.ejb.EjbPackage#getMethodTransaction_Descriptions()
- * @model type="org.eclipse.jst.j2ee.internal.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 1a365e863..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/MultiplicityKind.java
+++ /dev/null
@@ -1,126 +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.Arrays;
-import java.util.Collections;
-import java.util.List;
-
-import org.eclipse.emf.common.util.AbstractEnumerator;
-
-
-
-
-
-/**
- * @lastgen interface MultiplicityKind {}
- */
-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 -->
- * <!-- 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 -->
- * <!-- 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 e27d9b904..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/Query.java
+++ /dev/null
@@ -1,197 +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 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.
- */
-public interface Query extends EObject{
-
- public boolean isLocalResultMapping();
- 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.internal.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.internal.ejb.ReturnTypeMapping
- * @see #isSetReturnTypeMapping()
- * @see #unsetReturnTypeMapping()
- * @see #getReturnTypeMapping()
- * @generated
- */
- void setReturnTypeMapping(ReturnTypeMapping value);
-
- /**
- * Unsets the value of the '{@link org.eclipse.jst.j2ee.internal.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.internal.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 &gt; 1000<//ejb-ql>
- * <//query>
- */
- QueryMethod getQueryMethod();
-
- /**
- * @generated This field/method will be replaced during code generation
- * @param l 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.internal.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.internal.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.internal.ejb.EjbPackage#getQuery_Descriptions()
- * @model type="org.eclipse.jst.j2ee.internal.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 64980f384..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/QueryMethod.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.ejb;
-
-import org.eclipse.jem.java.JavaClass;
-/**
- * @generated
- */
-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 l 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.
- */
- 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 6c3eff771..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, 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 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.
- */
-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 l 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.internal.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 -->
- * @since J2EE1.4
- * <!-- end-model-doc -->
- * @return the value of the '<em>Descriptions</em>' containment reference list.
- * @see org.eclipse.jst.j2ee.internal.ejb.EjbPackage#getRelationships_Descriptions()
- * @model type="org.eclipse.jst.j2ee.internal.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 57c575cc4..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/ReturnTypeMapping.java
+++ /dev/null
@@ -1,126 +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.Arrays;
-import java.util.Collections;
-import java.util.List;
-
-import org.eclipse.emf.common.util.AbstractEnumerator;
-
-
-
-
-
-/**
- * @lastgen interface ReturnTypeMapping {}
- */
-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 -->
- * <!-- 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 -->
- * <!-- 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 9b41ca05e..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, 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 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.
- */
-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 l 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.internal.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.internal.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 -->
- * @since J2EE1.4
- * <!-- end-model-doc -->
- * @return the value of the '<em>Descriptions</em>' containment reference list.
- * @see org.eclipse.jst.j2ee.internal.ejb.EjbPackage#getRoleSource_Descriptions()
- * @model type="org.eclipse.jst.j2ee.internal.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 17f952a8e..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/Session.java
+++ /dev/null
@@ -1,163 +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 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.
- */
-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.internal.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.internal.ejb.TransactionType
- * @see #isSetTransactionType()
- * @see #unsetTransactionType()
- * @see #getTransactionType()
- * @generated
- */
- void setTransactionType(TransactionType value);
-
- /**
- * Unsets the value of the '{@link org.eclipse.jst.j2ee.internal.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.internal.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.internal.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.internal.ejb.SessionType
- * @see #isSetSessionType()
- * @see #unsetSessionType()
- * @see #getSessionType()
- * @generated
- */
- void setSessionType(SessionType value);
-
- /**
- * Unsets the value of the '{@link org.eclipse.jst.j2ee.internal.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.internal.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 -->
- * @since 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.internal.ejb.EjbPackage#getSession_ServiceEndpoint()
- * @model
- * @generated
- */
- JavaClass getServiceEndpoint();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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
- */
- public void setServiceEndpointName(String serviceEndpointName);
- /**
- * Return true if this Session bean has a service endpoint interface
- * interface.
- */
- public boolean hasServiceEndpoint() ;
- /**
- * Helper method to get Java Class name
- */
- 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 539add5d8..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/SessionType.java
+++ /dev/null
@@ -1,126 +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.Arrays;
-import java.util.Collections;
-import java.util.List;
-
-import org.eclipse.emf.common.util.AbstractEnumerator;
-
-
-
-
-
-/**
- * @lastgen interface SessionType {}
- */
-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 -->
- * <!-- 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 -->
- * <!-- 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 f866a5f7e..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/SubscriptionDurabilityKind.java
+++ /dev/null
@@ -1,126 +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.Arrays;
-import java.util.Collections;
-import java.util.List;
-
-import org.eclipse.emf.common.util.AbstractEnumerator;
-
-
-
-
-
-/**
- * @lastgen interface SubscriptionDurabilityKind {}
- */
-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 -->
- * <!-- 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 -->
- * <!-- 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 ddc5deda7..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/TransactionAttributeType.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.ejb;
-import java.util.Arrays;
-import java.util.Collections;
-import java.util.List;
-
-import org.eclipse.emf.common.util.AbstractEnumerator;
-
-
-
-
-
-/**
- * @lastgen interface TransactionAttributeType {}
- */
-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 -->
- * <!-- 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 -->
- * <!-- 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 43fe0a317..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/TransactionType.java
+++ /dev/null
@@ -1,126 +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.Arrays;
-import java.util.Collections;
-import java.util.List;
-
-import org.eclipse.emf.common.util.AbstractEnumerator;
-
-
-
-
-
-/**
- * @lastgen interface TransactionType {}
- */
-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 -->
- * <!-- 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 -->
- * <!-- 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/impl/AbstractRelationshipRoleAttributeFilter.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/AbstractRelationshipRoleAttributeFilter.java
deleted file mode 100644
index c5877e4ad..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/AbstractRelationshipRoleAttributeFilter.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.ejb.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/impl/AbstractRequiredRelationshipRoleFilter.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/AbstractRequiredRelationshipRoleFilter.java
deleted file mode 100644
index 5b07265b3..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/AbstractRequiredRelationshipRoleFilter.java
+++ /dev/null
@@ -1,115 +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.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/impl/ActivationConfigImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/ActivationConfigImpl.java
deleted file mode 100644
index 628368b9e..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/ActivationConfigImpl.java
+++ /dev/null
@@ -1,191 +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.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.internal.ejb.impl.ActivationConfigImpl#getConfigProperties <em>Config Properties</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.ejb.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/impl/ActivationConfigPropertyImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/ActivationConfigPropertyImpl.java
deleted file mode 100644
index a670f2315..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/ActivationConfigPropertyImpl.java
+++ /dev/null
@@ -1,218 +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.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.internal.ejb.impl.ActivationConfigPropertyImpl#getValue <em>Value</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.ejb.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: "); //$NON-NLS-1$
- result.append(value);
- result.append(", name: "); //$NON-NLS-1$
- result.append(name);
- result.append(')');
- return result.toString();
- }
-
-} //ActivationConfigPropertyImpl
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/AssemblyDescriptorImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/AssemblyDescriptorImpl.java
deleted file mode 100644
index 9cf2bbae9..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/AssemblyDescriptorImpl.java
+++ /dev/null
@@ -1,483 +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.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.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/impl/CMPAttributeImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/CMPAttributeImpl.java
deleted file mode 100644
index 90c147ffc..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/CMPAttributeImpl.java
+++ /dev/null
@@ -1,605 +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.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(name.substring(0, 1).toUpperCase()).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" + getName().substring(0, 1).toUpperCase() + (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 aFeatureID, Class baseClass, NotificationChain msgs) {
- if (aFeatureID >= 0) {
- switch (eDerivedStructuralFeatureID(aFeatureID, 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, aFeatureID, baseClass, msgs);
- }
- }
- if (eContainer != null)
- msgs = eBasicRemoveFromContainer(msgs);
- return eBasicSetContainer(otherEnd, aFeatureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int aFeatureID, Class baseClass, NotificationChain msgs) {
- if (aFeatureID >= 0) {
- switch (eDerivedStructuralFeatureID(aFeatureID, 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, aFeatureID, baseClass, msgs);
- }
- }
- return eBasicSetContainer(null, aFeatureID, 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 ordered != ORDERED_EDEFAULT;
- case EjbPackage.CMP_ATTRIBUTE__UNIQUE:
- return unique != 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() != false;
- case EjbPackage.CMP_ATTRIBUTE__REQUIRED:
- return isRequired() != false;
- case EjbPackage.CMP_ATTRIBUTE__ETYPE:
- return eType != null;
- case EjbPackage.CMP_ATTRIBUTE__CHANGEABLE:
- return changeable != CHANGEABLE_EDEFAULT;
- case EjbPackage.CMP_ATTRIBUTE__VOLATILE:
- return volatile_ != VOLATILE_EDEFAULT;
- case EjbPackage.CMP_ATTRIBUTE__TRANSIENT:
- return transient_ != 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 getDefaultValue() != null;
- case EjbPackage.CMP_ATTRIBUTE__UNSETTABLE:
- return unsettable != UNSETTABLE_EDEFAULT;
- case EjbPackage.CMP_ATTRIBUTE__DERIVED:
- return derived != DERIVED_EDEFAULT;
- case EjbPackage.CMP_ATTRIBUTE__ECONTAINING_CLASS:
- return getEContainingClass() != null;
- case EjbPackage.CMP_ATTRIBUTE__ID:
- return iD != 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: "); //$NON-NLS-1$
- result.append(description);
- result.append(')');
- return result.toString();
- }
-
-}
-
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/CMRFieldImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/CMRFieldImpl.java
deleted file mode 100644
index 46c6ba3ab..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/CMRFieldImpl.java
+++ /dev/null
@@ -1,470 +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.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 aFeatureID, Class baseClass, NotificationChain msgs) {
- if (aFeatureID >= 0) {
- switch (eDerivedStructuralFeatureID(aFeatureID, 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, aFeatureID, baseClass, msgs);
- }
- }
- if (eContainer != null)
- msgs = eBasicRemoveFromContainer(msgs);
- return eBasicSetContainer(otherEnd, aFeatureID, msgs);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public NotificationChain eInverseRemove(InternalEObject otherEnd, int aFeatureID, Class baseClass, NotificationChain msgs) {
- if (aFeatureID >= 0) {
- switch (eDerivedStructuralFeatureID(aFeatureID, 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, aFeatureID, baseClass, msgs);
- }
- }
- return eBasicSetContainer(null, aFeatureID, 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 ordered != ORDERED_EDEFAULT;
- case EjbPackage.CMR_FIELD__UNIQUE:
- return unique != 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() != false;
- case EjbPackage.CMR_FIELD__REQUIRED:
- return isRequired() != false;
- case EjbPackage.CMR_FIELD__ETYPE:
- return eType != null;
- case EjbPackage.CMR_FIELD__CHANGEABLE:
- return changeable != CHANGEABLE_EDEFAULT;
- case EjbPackage.CMR_FIELD__VOLATILE:
- return volatile_ != VOLATILE_EDEFAULT;
- case EjbPackage.CMR_FIELD__TRANSIENT:
- return transient_ != 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 getDefaultValue() != null;
- case EjbPackage.CMR_FIELD__UNSETTABLE:
- return unsettable != UNSETTABLE_EDEFAULT;
- case EjbPackage.CMR_FIELD__DERIVED:
- return derived != DERIVED_EDEFAULT;
- case EjbPackage.CMR_FIELD__ECONTAINING_CLASS:
- return getEContainingClass() != null;
- case EjbPackage.CMR_FIELD__ID:
- return iD != 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.internal.ejb.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/impl/ContainerManagedEntityFilter.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/ContainerManagedEntityFilter.java
deleted file mode 100644
index 8853cbf6a..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/ContainerManagedEntityFilter.java
+++ /dev/null
@@ -1,101 +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.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/impl/ContainerManagedEntityImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/ContainerManagedEntityImpl.java
deleted file mode 100644
index 6a5341c44..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/ContainerManagedEntityImpl.java
+++ /dev/null
@@ -1,1142 +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.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.J2EEVersionResource;
-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.util.CMPKeySynchronizationAdapter;
-import org.eclipse.jst.j2ee.internal.J2EEVersionConstants;
-
-
-/**
- * @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: "); //$NON-NLS-1$
- result.append(version);
- result.append(", abstractSchemaName: "); //$NON-NLS-1$
- 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) {
- for (int i=0; i<getRoles().size(); i++) {
- CommonRelationshipRole role = (CommonRelationshipRole) getRoles().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/impl/EJB20FlattenedRoleShapeStrategy.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/EJB20FlattenedRoleShapeStrategy.java
deleted file mode 100644
index 318c53884..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/EJB20FlattenedRoleShapeStrategy.java
+++ /dev/null
@@ -1,157 +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.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);
- }
- /**
- *
- */
- protected void collectAttributes(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;
- }
- //This is necessary for code generation
- ContainerManagedEntity entity = (ContainerManagedEntity) type.eContainer();
- 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(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/impl/EJBJarImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/EJBJarImpl.java
deleted file mode 100644
index cc84e5a98..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/EJBJarImpl.java
+++ /dev/null
@@ -1,817 +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.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.J2EEVersionResource;
-import org.eclipse.jst.j2ee.common.impl.CompatibilityDescriptionGroupImpl;
-import org.eclipse.jst.j2ee.common.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;
-
-/**
- * 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: "); //$NON-NLS-1$
- result.append(ejbClientJar);
- result.append(", version: "); //$NON-NLS-1$
- 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/impl/EJBJarResourceFactory.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/EJBJarResourceFactory.java
deleted file mode 100644
index 87a2631a1..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/EJBJarResourceFactory.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
- *******************************************************************************/
-/*
- * Created on Mar 27, 2003
- *
- */
-package org.eclipse.jst.j2ee.ejb.impl;
-
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.emf.ecore.resource.Resource;
-import org.eclipse.jst.j2ee.common.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.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_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$
- }
-
- /**
- * @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());
- }
-
-
-}
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/EJBMethodCategoryImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/EJBMethodCategoryImpl.java
deleted file mode 100644
index 9988a0a76..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/EJBMethodCategoryImpl.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.ejb.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/impl/EJBRelationImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/EJBRelationImpl.java
deleted file mode 100644
index 7336d3ea4..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/EJBRelationImpl.java
+++ /dev/null
@@ -1,449 +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.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: "); //$NON-NLS-1$
- result.append(description);
- result.append(", name: "); //$NON-NLS-1$
- 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/impl/EJBRelationshipRoleImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/EJBRelationshipRoleImpl.java
deleted file mode 100644
index 82c67b2cf..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/EJBRelationshipRoleImpl.java
+++ /dev/null
@@ -1,1012 +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.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.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.emf.utilities.IDUtil;
-
-import com.ibm.wtp.common.logger.proxy.Logger;
-/**
- * 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.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: "); //$NON-NLS-1$
- result.append(description);
- result.append(", roleName: "); //$NON-NLS-1$
- result.append(roleName);
- result.append(", multiplicity: "); //$NON-NLS-1$
- if (multiplicityESet) result.append(multiplicity); else result.append("<unset>"); //$NON-NLS-1$
- result.append(", cascadeDelete: "); //$NON-NLS-1$
- if (cascadeDeleteESet) result.append(cascadeDelete); else result.append("<unset>"); //$NON-NLS-1$
- 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/impl/EJBResourceImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/EJBResourceImpl.java
deleted file mode 100644
index 50b2ad557..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/EJBResourceImpl.java
+++ /dev/null
@@ -1,211 +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 27, 2003
- *
- */
-package org.eclipse.jst.j2ee.ejb.impl;
-
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.jst.j2ee.common.XMLResource;
-import org.eclipse.jst.j2ee.common.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.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;
- }
-
- /* (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;
- }
-
- /* (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);
- }
-
-
-}
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/EjbFactoryImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/EjbFactoryImpl.java
deleted file mode 100644
index 2a1b247c0..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/EjbFactoryImpl.java
+++ /dev/null
@@ -1,503 +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.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.util.CMPKeySynchronizationAdapter;
-import org.eclipse.wst.common.emf.utilities.AdapterFactoryDescriptor;
-import org.eclipse.wst.common.emf.utilities.AdapterFactoryUtil;
-import org.eclipse.wst.common.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:
- return TransactionAttributeType.get(initialValue);
- case EjbPackage.TRANSACTION_TYPE:
- return TransactionType.get(initialValue);
- case EjbPackage.SESSION_TYPE:
- return SessionType.get(initialValue);
- case EjbPackage.METHOD_ELEMENT_KIND:
- return MethodElementKind.get(initialValue);
- case EjbPackage.ACKNOWLEDGE_MODE:
- return AcknowledgeMode.get(initialValue);
- case EjbPackage.SUBSCRIPTION_DURABILITY_KIND:
- return SubscriptionDurabilityKind.get(initialValue);
- case EjbPackage.RETURN_TYPE_MAPPING:
- return ReturnTypeMapping.get(initialValue);
- case EjbPackage.DESTINATION_TYPE:
- return DestinationType.get(initialValue);
- case EjbPackage.MULTIPLICITY_KIND:
- return MultiplicityKind.get(initialValue);
- 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/impl/EjbPackageImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/EjbPackageImpl.java
deleted file mode 100644
index 8e9789e1d..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/EjbPackageImpl.java
+++ /dev/null
@@ -1,1772 +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.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.impl.JavaRefPackageImpl;
-import org.eclipse.jst.j2ee.application.ApplicationPackage;
-import org.eclipse.jst.j2ee.application.impl.ApplicationPackageImpl;
-import org.eclipse.jst.j2ee.client.ClientPackage;
-import org.eclipse.jst.j2ee.client.impl.ClientPackageImpl;
-import org.eclipse.jst.j2ee.common.CommonPackage;
-import org.eclipse.jst.j2ee.common.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.impl.JcaPackageImpl;
-import org.eclipse.jst.j2ee.jsp.JspPackage;
-import org.eclipse.jst.j2ee.jsp.impl.JspPackageImpl;
-import org.eclipse.jst.j2ee.taglib.TaglibPackage;
-import org.eclipse.jst.j2ee.taglib.impl.TaglibPackageImpl;
-import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage;
-import org.eclipse.jst.j2ee.webapplication.impl.WebapplicationPackageImpl;
-import org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientPackage;
-import org.eclipse.jst.j2ee.webservice.wsclient.impl.Webservice_clientPackageImpl;
-import org.eclipse.jst.j2ee.webservice.wscommon.WscommonPackage;
-import org.eclipse.jst.j2ee.webservice.wscommon.impl.WscommonPackageImpl;
-import org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage;
-import org.eclipse.jst.j2ee.webservice.wsdd.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 EPackage ? 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 EPackage ? EPackage.Registry.INSTANCE.getEPackage(ClientPackage.eNS_URI) : ClientPackageImpl.eINSTANCE);
- CommonPackageImpl theCommonPackage = (CommonPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI) : CommonPackageImpl.eINSTANCE);
- JcaPackageImpl theJcaPackage = (JcaPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(JcaPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(JcaPackage.eNS_URI) : JcaPackageImpl.eINSTANCE);
- Webservice_clientPackageImpl theWebservice_clientPackage = (Webservice_clientPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(Webservice_clientPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(Webservice_clientPackage.eNS_URI) : Webservice_clientPackageImpl.eINSTANCE);
- WscommonPackageImpl theWscommonPackage = (WscommonPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(WscommonPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(WscommonPackage.eNS_URI) : WscommonPackageImpl.eINSTANCE);
- WsddPackageImpl theWsddPackage = (WsddPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(WsddPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(WsddPackage.eNS_URI) : WsddPackageImpl.eINSTANCE);
- WebapplicationPackageImpl theWebapplicationPackage = (WebapplicationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(WebapplicationPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(WebapplicationPackage.eNS_URI) : WebapplicationPackageImpl.eINSTANCE);
- ApplicationPackageImpl theApplicationPackage = (ApplicationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ApplicationPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(ApplicationPackage.eNS_URI) : ApplicationPackageImpl.eINSTANCE);
- JspPackageImpl theJspPackage = (JspPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(JspPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(JspPackage.eNS_URI) : JspPackageImpl.eINSTANCE);
- TaglibPackageImpl theTaglibPackage = (TaglibPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(TaglibPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(TaglibPackage.eNS_URI) : TaglibPackageImpl.eINSTANCE);
-
-
- // Step 1: create meta-model objects
- theEjbPackage.createPackageContents();
- theClientPackage.createPackageContents();
- theTaglibPackage.createPackageContents();
- theJspPackage.createPackageContents();
- theApplicationPackage.createPackageContents();
- theWebservice_clientPackage.createPackageContents();
- theWsddPackage.createPackageContents();
- theJcaPackage.createPackageContents();
- theWebapplicationPackage.createPackageContents();
- theWscommonPackage.createPackageContents();
- theCommonPackage.createPackageContents();
-
- // Step 2: complete initialization
- theEjbPackage.initializePackageContents();
- theClientPackage.initializePackageContents();
- theTaglibPackage.initializePackageContents();
- theJspPackage.initializePackageContents();
- theApplicationPackage.initializePackageContents();
- theWebservice_clientPackage.initializePackageContents();
- theWsddPackage.initializePackageContents();
- theJcaPackage.initializePackageContents();
- theWebapplicationPackage.initializePackageContents();
- theWscommonPackage.initializePackageContents();
- theCommonPackage.initializePackageContents();
-
- 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); //$NON-NLS-1$
- initEAttribute(getContainerManagedEntity_Version(), ecorePackage.getEString(), "version", "2.x", 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$ //$NON-NLS-2$
- initEAttribute(getContainerManagedEntity_AbstractSchemaName(), ecorePackage.getEString(), "abstractSchemaName", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getContainerManagedEntity_PersistentAttributes(), this.getCMPAttribute(), null, "persistentAttributes", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getContainerManagedEntity_KeyAttributes(), this.getCMPAttribute(), null, "keyAttributes", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getContainerManagedEntity_Queries(), this.getQuery(), this.getQuery_Entity(), "queries", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getContainerManagedEntity_CMPAttribute(), this.getCMPAttribute(), null, "CMPAttribute", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getContainerManagedEntity_PrimKeyField(), this.getCMPAttribute(), null, "primKeyField", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
-
- initEClass(methodPermissionEClass, MethodPermission.class, "MethodPermission", !IS_ABSTRACT, !IS_INTERFACE); //$NON-NLS-1$
- initEAttribute(getMethodPermission_Description(), ecorePackage.getEString(), "description", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEAttribute(getMethodPermission_Unchecked(), ecorePackage.getEBoolean(), "unchecked", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getMethodPermission_AssemblyDescriptor(), this.getAssemblyDescriptor(), this.getAssemblyDescriptor_MethodPermissions(), "assemblyDescriptor", null, 1, 1, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getMethodPermission_Roles(), theCommonPackage.getSecurityRole(), null, "roles", null, 1, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getMethodPermission_MethodElements(), this.getMethodElement(), null, "methodElements", null, 1, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getMethodPermission_Descriptions(), theCommonPackage.getDescription(), null, "descriptions", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
-
- initEClass(assemblyDescriptorEClass, AssemblyDescriptor.class, "AssemblyDescriptor", !IS_ABSTRACT, !IS_INTERFACE); //$NON-NLS-1$
- initEReference(getAssemblyDescriptor_MethodPermissions(), this.getMethodPermission(), this.getMethodPermission_AssemblyDescriptor(), "methodPermissions", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getAssemblyDescriptor_MethodTransactions(), this.getMethodTransaction(), this.getMethodTransaction_AssemblyDescriptor(), "methodTransactions", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getAssemblyDescriptor_EjbJar(), this.getEJBJar(), this.getEJBJar_AssemblyDescriptor(), "ejbJar", null, 0, 1, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getAssemblyDescriptor_SecurityRoles(), theCommonPackage.getSecurityRole(), null, "securityRoles", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getAssemblyDescriptor_ExcludeList(), this.getExcludeList(), null, "excludeList", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getAssemblyDescriptor_MessageDestinations(), theCommonPackage.getMessageDestination(), null, "messageDestinations", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
-
- initEClass(methodTransactionEClass, MethodTransaction.class, "MethodTransaction", !IS_ABSTRACT, !IS_INTERFACE); //$NON-NLS-1$
- initEAttribute(getMethodTransaction_TransactionAttribute(), this.getTransactionAttributeType(), "transactionAttribute", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEAttribute(getMethodTransaction_Description(), ecorePackage.getEString(), "description", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getMethodTransaction_AssemblyDescriptor(), this.getAssemblyDescriptor(), this.getAssemblyDescriptor_MethodTransactions(), "assemblyDescriptor", null, 1, 1, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getMethodTransaction_MethodElements(), this.getMethodElement(), null, "methodElements", null, 1, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getMethodTransaction_Descriptions(), theCommonPackage.getDescription(), null, "descriptions", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
-
- initEClass(sessionEClass, Session.class, "Session", !IS_ABSTRACT, !IS_INTERFACE); //$NON-NLS-1$
- initEAttribute(getSession_TransactionType(), this.getTransactionType(), "transactionType", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEAttribute(getSession_SessionType(), this.getSessionType(), "sessionType", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getSession_ServiceEndpoint(), theJavaRefPackage.getJavaClass(), null, "serviceEndpoint", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
-
- initEClass(entityEClass, Entity.class, "Entity", !IS_ABSTRACT, !IS_INTERFACE); //$NON-NLS-1$
- initEAttribute(getEntity_Reentrant(), ecorePackage.getEBoolean(), "reentrant", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getEntity_PrimaryKey(), theJavaRefPackage.getJavaClass(), null, "primaryKey", null, 1, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
-
- initEClass(enterpriseBeanEClass, EnterpriseBean.class, "EnterpriseBean", IS_ABSTRACT, !IS_INTERFACE); //$NON-NLS-1$
- initEAttribute(getEnterpriseBean_Name(), ecorePackage.getEString(), "name", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getEnterpriseBean_SecurityRoleRefs(), theCommonPackage.getSecurityRoleRef(), null, "securityRoleRefs", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getEnterpriseBean_EjbClass(), theJavaRefPackage.getJavaClass(), null, "ejbClass", null, 1, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getEnterpriseBean_HomeInterface(), theJavaRefPackage.getJavaClass(), null, "homeInterface", null, 1, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getEnterpriseBean_RemoteInterface(), theJavaRefPackage.getJavaClass(), null, "remoteInterface", null, 1, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getEnterpriseBean_EjbJar(), this.getEJBJar(), this.getEJBJar_EnterpriseBeans(), "ejbJar", null, 1, 1, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getEnterpriseBean_SecurityIdentity(), theCommonPackage.getSecurityIdentity(), null, "securityIdentity", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getEnterpriseBean_LocalHomeInterface(), theJavaRefPackage.getJavaClass(), null, "localHomeInterface", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getEnterpriseBean_LocalInterface(), theJavaRefPackage.getJavaClass(), null, "localInterface", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
-
- initEClass(ejbMethodCategoryEClass, EJBMethodCategory.class, "EJBMethodCategory", !IS_ABSTRACT, !IS_INTERFACE); //$NON-NLS-1$
-
- initEClass(ejbJarEClass, EJBJar.class, "EJBJar", !IS_ABSTRACT, !IS_INTERFACE); //$NON-NLS-1$
- initEAttribute(getEJBJar_EjbClientJar(), ecorePackage.getEString(), "ejbClientJar", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEAttribute(getEJBJar_Version(), ecorePackage.getEString(), "version", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getEJBJar_AssemblyDescriptor(), this.getAssemblyDescriptor(), this.getAssemblyDescriptor_EjbJar(), "assemblyDescriptor", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getEJBJar_EnterpriseBeans(), this.getEnterpriseBean(), this.getEnterpriseBean_EjbJar(), "enterpriseBeans", null, 1, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getEJBJar_RelationshipList(), this.getRelationships(), this.getRelationships_EjbJar(), "relationshipList", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
-
- initEClass(methodElementEClass, MethodElement.class, "MethodElement", !IS_ABSTRACT, !IS_INTERFACE); //$NON-NLS-1$
- initEAttribute(getMethodElement_Name(), ecorePackage.getEString(), "name", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEAttribute(getMethodElement_Parms(), ecorePackage.getEString(), "parms", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEAttribute(getMethodElement_Type(), this.getMethodElementKind(), "type", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEAttribute(getMethodElement_Description(), ecorePackage.getEString(), "description", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getMethodElement_EnterpriseBean(), this.getEnterpriseBean(), null, "enterpriseBean", null, 1, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getMethodElement_Descriptions(), theCommonPackage.getDescription(), null, "descriptions", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
-
- initEClass(cmpAttributeEClass, CMPAttribute.class, "CMPAttribute", !IS_ABSTRACT, !IS_INTERFACE); //$NON-NLS-1$
- initEAttribute(getCMPAttribute_Description(), ecorePackage.getEString(), "description", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getCMPAttribute_Descriptions(), theCommonPackage.getDescription(), null, "descriptions", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
-
- initEClass(relationshipsEClass, Relationships.class, "Relationships", !IS_ABSTRACT, !IS_INTERFACE); //$NON-NLS-1$
- initEAttribute(getRelationships_Description(), ecorePackage.getEString(), "description", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getRelationships_EjbJar(), this.getEJBJar(), this.getEJBJar_RelationshipList(), "ejbJar", null, 1, 1, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getRelationships_EjbRelations(), this.getEJBRelation(), this.getEJBRelation_RelationshipList(), "ejbRelations", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getRelationships_Descriptions(), theCommonPackage.getDescription(), null, "descriptions", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
-
- initEClass(queryEClass, Query.class, "Query", !IS_ABSTRACT, !IS_INTERFACE); //$NON-NLS-1$
- initEAttribute(getQuery_Description(), ecorePackage.getEString(), "description", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEAttribute(getQuery_EjbQL(), ecorePackage.getEString(), "ejbQL", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEAttribute(getQuery_ReturnTypeMapping(), this.getReturnTypeMapping(), "returnTypeMapping", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getQuery_QueryMethod(), this.getQueryMethod(), this.getQueryMethod_Query(), "queryMethod", null, 1, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getQuery_Entity(), this.getContainerManagedEntity(), this.getContainerManagedEntity_Queries(), "entity", null, 0, 1, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getQuery_Descriptions(), theCommonPackage.getDescription(), null, "descriptions", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
-
- initEClass(ejbRelationEClass, EJBRelation.class, "EJBRelation", !IS_ABSTRACT, !IS_INTERFACE); //$NON-NLS-1$
- initEAttribute(getEJBRelation_Description(), ecorePackage.getEString(), "description", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEAttribute(getEJBRelation_Name(), ecorePackage.getEString(), "name", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getEJBRelation_RelationshipList(), this.getRelationships(), this.getRelationships_EjbRelations(), "relationshipList", null, 0, 1, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getEJBRelation_RelationshipRoles(), this.getEJBRelationshipRole(), this.getEJBRelationshipRole_Relationship(), "relationshipRoles", null, 2, 2, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getEJBRelation_Descriptions(), theCommonPackage.getDescription(), null, "descriptions", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
-
- initEClass(ejbRelationshipRoleEClass, EJBRelationshipRole.class, "EJBRelationshipRole", !IS_ABSTRACT, !IS_INTERFACE); //$NON-NLS-1$
- initEAttribute(getEJBRelationshipRole_Description(), ecorePackage.getEString(), "description", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEAttribute(getEJBRelationshipRole_RoleName(), ecorePackage.getEString(), "roleName", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEAttribute(getEJBRelationshipRole_Multiplicity(), this.getMultiplicityKind(), "multiplicity", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEAttribute(getEJBRelationshipRole_CascadeDelete(), ecorePackage.getEBoolean(), "cascadeDelete", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getEJBRelationshipRole_Relationship(), this.getEJBRelation(), this.getEJBRelation_RelationshipRoles(), "relationship", null, 1, 1, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getEJBRelationshipRole_Source(), this.getRoleSource(), this.getRoleSource_Role(), "source", null, 1, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getEJBRelationshipRole_CmrField(), this.getCMRField(), this.getCMRField_Role(), "cmrField", null, 1, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getEJBRelationshipRole_Descriptions(), theCommonPackage.getDescription(), null, "descriptions", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
-
- initEClass(roleSourceEClass, RoleSource.class, "RoleSource", !IS_ABSTRACT, !IS_INTERFACE); //$NON-NLS-1$
- initEAttribute(getRoleSource_Description(), ecorePackage.getEString(), "description", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getRoleSource_Role(), this.getEJBRelationshipRole(), this.getEJBRelationshipRole_Source(), "role", null, 1, 1, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getRoleSource_EntityBean(), this.getContainerManagedEntity(), null, "entityBean", null, 1, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getRoleSource_Descriptions(), theCommonPackage.getDescription(), null, "descriptions", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
-
- initEClass(cmrFieldEClass, CMRField.class, "CMRField", !IS_ABSTRACT, !IS_INTERFACE); //$NON-NLS-1$
- initEReference(getCMRField_Role(), this.getEJBRelationshipRole(), this.getEJBRelationshipRole_CmrField(), "role", null, 0, 1, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getCMRField_CollectionType(), theJavaRefPackage.getJavaClass(), null, "collectionType", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
-
- initEClass(messageDrivenEClass, MessageDriven.class, "MessageDriven", !IS_ABSTRACT, !IS_INTERFACE); //$NON-NLS-1$
- initEAttribute(getMessageDriven_TransactionType(), this.getTransactionType(), "transactionType", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEAttribute(getMessageDriven_MessageSelector(), ecorePackage.getEString(), "messageSelector", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEAttribute(getMessageDriven_AcknowledgeMode(), this.getAcknowledgeMode(), "acknowledgeMode", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEAttribute(getMessageDriven_Link(), ecorePackage.getEString(), "link", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getMessageDriven_Destination(), this.getMessageDrivenDestination(), this.getMessageDrivenDestination_Bean(), "destination", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getMessageDriven_ActivationConfig(), this.getActivationConfig(), null, "activationConfig", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getMessageDriven_MessageDestination(), theJavaRefPackage.getJavaClass(), null, "messageDestination", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getMessageDriven_MessagingType(), theJavaRefPackage.getJavaClass(), null, "messagingType", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
-
- initEClass(messageDrivenDestinationEClass, MessageDrivenDestination.class, "MessageDrivenDestination", !IS_ABSTRACT, !IS_INTERFACE); //$NON-NLS-1$
- initEAttribute(getMessageDrivenDestination_Type(), this.getDestinationType(), "type", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEAttribute(getMessageDrivenDestination_SubscriptionDurability(), this.getSubscriptionDurabilityKind(), "subscriptionDurability", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getMessageDrivenDestination_Bean(), this.getMessageDriven(), this.getMessageDriven_Destination(), "bean", null, 1, 1, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
-
- initEClass(excludeListEClass, ExcludeList.class, "ExcludeList", !IS_ABSTRACT, !IS_INTERFACE); //$NON-NLS-1$
- initEAttribute(getExcludeList_Description(), ecorePackage.getEString(), "description", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getExcludeList_MethodElements(), this.getMethodElement(), null, "methodElements", null, 1, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getExcludeList_Descriptions(), theCommonPackage.getDescription(), null, "descriptions", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
-
- initEClass(queryMethodEClass, QueryMethod.class, "QueryMethod", !IS_ABSTRACT, !IS_INTERFACE); //$NON-NLS-1$
- initEReference(getQueryMethod_Query(), this.getQuery(), this.getQuery_QueryMethod(), "query", null, 1, 1, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
-
- initEClass(activationConfigPropertyEClass, ActivationConfigProperty.class, "ActivationConfigProperty", !IS_ABSTRACT, !IS_INTERFACE); //$NON-NLS-1$
- initEAttribute(getActivationConfigProperty_Value(), ecorePackage.getEString(), "value", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEAttribute(getActivationConfigProperty_Name(), ecorePackage.getEString(), "name", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
-
- initEClass(activationConfigEClass, ActivationConfig.class, "ActivationConfig", !IS_ABSTRACT, !IS_INTERFACE); //$NON-NLS-1$
- initEReference(getActivationConfig_ConfigProperties(), this.getActivationConfigProperty(), null, "configProperties", null, 1, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getActivationConfig_Descriptions(), theCommonPackage.getDescription(), null, "descriptions", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
-
- // Initialize enums and add enum literals
- initEEnum(transactionAttributeTypeEEnum, TransactionAttributeType.class, "TransactionAttributeType"); //$NON-NLS-1$
- 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"); //$NON-NLS-1$
- addEEnumLiteral(transactionTypeEEnum, TransactionType.BEAN_LITERAL);
- addEEnumLiteral(transactionTypeEEnum, TransactionType.CONTAINER_LITERAL);
-
- initEEnum(sessionTypeEEnum, SessionType.class, "SessionType"); //$NON-NLS-1$
- addEEnumLiteral(sessionTypeEEnum, SessionType.STATEFUL_LITERAL);
- addEEnumLiteral(sessionTypeEEnum, SessionType.STATELESS_LITERAL);
-
- initEEnum(methodElementKindEEnum, MethodElementKind.class, "MethodElementKind"); //$NON-NLS-1$
- 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"); //$NON-NLS-1$
- addEEnumLiteral(acknowledgeModeEEnum, AcknowledgeMode.AUTO_ACKNOWLEDGE_LITERAL);
- addEEnumLiteral(acknowledgeModeEEnum, AcknowledgeMode.DUPS_OK_ACKNOWLEDGE_LITERAL);
-
- initEEnum(subscriptionDurabilityKindEEnum, SubscriptionDurabilityKind.class, "SubscriptionDurabilityKind"); //$NON-NLS-1$
- addEEnumLiteral(subscriptionDurabilityKindEEnum, SubscriptionDurabilityKind.DURABLE_LITERAL);
- addEEnumLiteral(subscriptionDurabilityKindEEnum, SubscriptionDurabilityKind.NON_DURABLE_LITERAL);
-
- initEEnum(returnTypeMappingEEnum, ReturnTypeMapping.class, "ReturnTypeMapping"); //$NON-NLS-1$
- addEEnumLiteral(returnTypeMappingEEnum, ReturnTypeMapping.LOCAL_LITERAL);
- addEEnumLiteral(returnTypeMappingEEnum, ReturnTypeMapping.REMOTE_LITERAL);
-
- initEEnum(destinationTypeEEnum, DestinationType.class, "DestinationType"); //$NON-NLS-1$
- addEEnumLiteral(destinationTypeEEnum, DestinationType.QUEUE_LITERAL);
- addEEnumLiteral(destinationTypeEEnum, DestinationType.TOPIC_LITERAL);
-
- initEEnum(multiplicityKindEEnum, MultiplicityKind.class, "MultiplicityKind"); //$NON-NLS-1$
- 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/impl/EnterpriseBeanImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/EnterpriseBeanImpl.java
deleted file mode 100644
index d493408d3..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/EnterpriseBeanImpl.java
+++ /dev/null
@@ -1,1447 +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.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.J2EEVersionResource;
-import org.eclipse.jst.j2ee.common.SecurityIdentity;
-import org.eclipse.jst.j2ee.common.SecurityRoleRef;
-import org.eclipse.jst.j2ee.common.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.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());
- 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: "); //$NON-NLS-1$
- 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/impl/EntityImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/EntityImpl.java
deleted file mode 100644
index f1ca1490b..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/EntityImpl.java
+++ /dev/null
@@ -1,643 +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.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: "); //$NON-NLS-1$
- if (reentrantESet) result.append(reentrant); else result.append("<unset>"); //$NON-NLS-1$
- 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/impl/ExcludeListImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/ExcludeListImpl.java
deleted file mode 100644
index e506032b2..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/ExcludeListImpl.java
+++ /dev/null
@@ -1,245 +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.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: "); //$NON-NLS-1$
- 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/impl/KeyRelationshipRoleAttributeFilter.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/KeyRelationshipRoleAttributeFilter.java
deleted file mode 100644
index dbdff7ea0..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/KeyRelationshipRoleAttributeFilter.java
+++ /dev/null
@@ -1,93 +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.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/impl/KeyRelationshipRoleFilter.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/KeyRelationshipRoleFilter.java
deleted file mode 100644
index e60f2486c..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/KeyRelationshipRoleFilter.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.ejb.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/impl/LocalKeyAttributeFilter.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/LocalKeyAttributeFilter.java
deleted file mode 100644
index 0ce7451ef..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/LocalKeyAttributeFilter.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.ejb.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/impl/LocalModelledPersistentAttributeFilter.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/LocalModelledPersistentAttributeFilter.java
deleted file mode 100644
index a720bfc75..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/LocalModelledPersistentAttributeFilter.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.ejb.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/impl/LocalOppositeRelationshipRoleFilter.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/LocalOppositeRelationshipRoleFilter.java
deleted file mode 100644
index 3f133409b..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/LocalOppositeRelationshipRoleFilter.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.ejb.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/impl/LocalPersistentAttributeFilter.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/LocalPersistentAttributeFilter.java
deleted file mode 100644
index e71691be0..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/LocalPersistentAttributeFilter.java
+++ /dev/null
@@ -1,103 +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.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/impl/LocalRelationshipRoleAttributeFilter.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/LocalRelationshipRoleAttributeFilter.java
deleted file mode 100644
index 28d1c79af..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/LocalRelationshipRoleAttributeFilter.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
- *******************************************************************************/
-package org.eclipse.jst.j2ee.ejb.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/impl/LocalRelationshipRoleKeyAttributeFilter.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/LocalRelationshipRoleKeyAttributeFilter.java
deleted file mode 100644
index 61d0461fb..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/LocalRelationshipRoleKeyAttributeFilter.java
+++ /dev/null
@@ -1,52 +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.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/impl/MessageDrivenDestinationImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/MessageDrivenDestinationImpl.java
deleted file mode 100644
index 747e21ee9..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/MessageDrivenDestinationImpl.java
+++ /dev/null
@@ -1,359 +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.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 ? SUBSCRIPTION_DURABILITY_EDEFAULT : 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: "); //$NON-NLS-1$
- if (typeESet) result.append(type); else result.append("<unset>"); //$NON-NLS-1$
- result.append(", subscriptionDurability: "); //$NON-NLS-1$
- if (subscriptionDurabilityESet) result.append(subscriptionDurability); else result.append("<unset>"); //$NON-NLS-1$
- result.append(')');
- return result.toString();
- }
-
-}
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/MessageDrivenImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/MessageDrivenImpl.java
deleted file mode 100644
index 7836ec852..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/MessageDrivenImpl.java
+++ /dev/null
@@ -1,982 +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.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: "); //$NON-NLS-1$
- if (transactionTypeESet) result.append(transactionType); else result.append("<unset>"); //$NON-NLS-1$
- result.append(", messageSelector: "); //$NON-NLS-1$
- result.append(messageSelector);
- result.append(", acknowledgeMode: "); //$NON-NLS-1$
- if (acknowledgeModeESet) result.append(acknowledgeMode); else result.append("<unset>"); //$NON-NLS-1$
- result.append(", link: "); //$NON-NLS-1$
- 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/impl/MethodElementImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/MethodElementImpl.java
deleted file mode 100644
index 7554bcb5c..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/MethodElementImpl.java
+++ /dev/null
@@ -1,1039 +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.impl;
-
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.Collections;
-import java.util.Iterator;
-import java.util.List;
-import java.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.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: "); //$NON-NLS-1$
- result.append(name);
- result.append(", parms: "); //$NON-NLS-1$
- result.append(parms);
- result.append(", type: "); //$NON-NLS-1$
- if (typeESet) result.append(type); else result.append("<unset>"); //$NON-NLS-1$
- result.append(", description: "); //$NON-NLS-1$
- result.append(description);
- result.append(')');
- return result.toString();
- }
-
-}
-
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/MethodPermissionImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/MethodPermissionImpl.java
deleted file mode 100644
index e6c07c97f..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/MethodPermissionImpl.java
+++ /dev/null
@@ -1,465 +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.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: "); //$NON-NLS-1$
- result.append(description);
- result.append(", unchecked: "); //$NON-NLS-1$
- if (uncheckedESet) result.append(unchecked); else result.append("<unset>"); //$NON-NLS-1$
- result.append(')');
- return result.toString();
- }
-
-}
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/MethodTransactionImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/MethodTransactionImpl.java
deleted file mode 100644
index 67dc074e9..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/MethodTransactionImpl.java
+++ /dev/null
@@ -1,432 +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.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: "); //$NON-NLS-1$
- if (transactionAttributeESet) result.append(transactionAttribute); else result.append("<unset>"); //$NON-NLS-1$
- result.append(", description: "); //$NON-NLS-1$
- result.append(description);
- result.append(')');
- return result.toString();
- }
-
-}
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/ModelledKeyAttributeFilter.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/ModelledKeyAttributeFilter.java
deleted file mode 100644
index e55c4145e..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/ModelledKeyAttributeFilter.java
+++ /dev/null
@@ -1,105 +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.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/impl/ModelledPersistentAttributeFilter.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/ModelledPersistentAttributeFilter.java
deleted file mode 100644
index 1bb683d96..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/ModelledPersistentAttributeFilter.java
+++ /dev/null
@@ -1,105 +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.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/impl/NonKeyRequiredRoleFilter.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/NonKeyRequiredRoleFilter.java
deleted file mode 100644
index 83a92205f..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/NonKeyRequiredRoleFilter.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
- *******************************************************************************/
-/*
- * 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.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/impl/QueryImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/QueryImpl.java
deleted file mode 100644
index 47eb451ca..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/QueryImpl.java
+++ /dev/null
@@ -1,513 +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.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 &gt; 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: "); //$NON-NLS-1$
- result.append(description);
- result.append(", ejbQL: "); //$NON-NLS-1$
- result.append(ejbQL);
- result.append(", returnTypeMapping: "); //$NON-NLS-1$
- if (returnTypeMappingESet) result.append(returnTypeMapping); else result.append("<unset>"); //$NON-NLS-1$
- result.append(')');
- return result.toString();
- }
-
-}
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/QueryMethodImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/QueryMethodImpl.java
deleted file mode 100644
index a4606fd09..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/QueryMethodImpl.java
+++ /dev/null
@@ -1,373 +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.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/impl/RelationshipRoleAttributeFilter.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/RelationshipRoleAttributeFilter.java
deleted file mode 100644
index 7fda8fc5e..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/RelationshipRoleAttributeFilter.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
- *******************************************************************************/
-package org.eclipse.jst.j2ee.ejb.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/impl/RelationshipsImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/RelationshipsImpl.java
deleted file mode 100644
index 6485db257..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/RelationshipsImpl.java
+++ /dev/null
@@ -1,313 +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.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: "); //$NON-NLS-1$
- result.append(description);
- result.append(')');
- return result.toString();
- }
-
-}
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/RequiredLocalRelationshipRoleFilter.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/RequiredLocalRelationshipRoleFilter.java
deleted file mode 100644
index 8cc4114f3..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/RequiredLocalRelationshipRoleFilter.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.ejb.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/impl/RequiredRelationshipRoleFilter.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/RequiredRelationshipRoleFilter.java
deleted file mode 100644
index 6eab1b390..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/RequiredRelationshipRoleFilter.java
+++ /dev/null
@@ -1,60 +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.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/impl/RoleShapeStrategy.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/RoleShapeStrategy.java
deleted file mode 100644
index d91141219..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/RoleShapeStrategy.java
+++ /dev/null
@@ -1,171 +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.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/impl/RoleSourceImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/RoleSourceImpl.java
deleted file mode 100644
index 4abb644b8..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/RoleSourceImpl.java
+++ /dev/null
@@ -1,330 +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.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: "); //$NON-NLS-1$
- result.append(description);
- result.append(')');
- return result.toString();
- }
-
-}
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/SessionImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/SessionImpl.java
deleted file mode 100644
index b1c846906..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/SessionImpl.java
+++ /dev/null
@@ -1,670 +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.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: "); //$NON-NLS-1$
- if (transactionTypeESet) result.append(transactionType); else result.append("<unset>"); //$NON-NLS-1$
- result.append(", sessionType: "); //$NON-NLS-1$
- if (sessionTypeESet) result.append(sessionType); else result.append("<unset>"); //$NON-NLS-1$
- 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/impl/SupertypeCMPAttributeFilter.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/SupertypeCMPAttributeFilter.java
deleted file mode 100644
index c3b64c2e2..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/impl/SupertypeCMPAttributeFilter.java
+++ /dev/null
@@ -1,117 +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.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/util/CMPFieldDescriptor.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/util/CMPFieldDescriptor.java
deleted file mode 100644
index 3913dbf45..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/util/CMPFieldDescriptor.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.ejb.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/util/CMPHelper.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/util/CMPHelper.java
deleted file mode 100644
index 501a4fcc9..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/util/CMPHelper.java
+++ /dev/null
@@ -1,263 +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.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/util/CMPKeySynchronizationAdapter.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/util/CMPKeySynchronizationAdapter.java
deleted file mode 100644
index a2e3c08b9..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/util/CMPKeySynchronizationAdapter.java
+++ /dev/null
@@ -1,398 +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 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.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.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;
-
- 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);
- }
-
- 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/util/CommonRelationshipAttributeMaintenanceAdapter.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/util/CommonRelationshipAttributeMaintenanceAdapter.java
deleted file mode 100644
index ead5e5257..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/util/CommonRelationshipAttributeMaintenanceAdapter.java
+++ /dev/null
@@ -1,173 +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.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.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/util/ConvertedEJBAdapter.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/util/ConvertedEJBAdapter.java
deleted file mode 100644
index c419cd2b9..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/util/ConvertedEJBAdapter.java
+++ /dev/null
@@ -1,68 +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.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/util/EJBAttributeMaintenanceFactoryImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/util/EJBAttributeMaintenanceFactoryImpl.java
deleted file mode 100644
index 7a8d988e1..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/util/EJBAttributeMaintenanceFactoryImpl.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.ejb.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.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/util/EJBRelationAttributeMaintenanceAdapter.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/util/EJBRelationAttributeMaintenanceAdapter.java
deleted file mode 100644
index 17f594efc..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/util/EJBRelationAttributeMaintenanceAdapter.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.ejb.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.internal.ejb.util.CommonRelationshipAttributeMaintenanceAdapter#isRelationshipRolesSF(EObject)
- */
- protected boolean isRelationshipRolesSF(EObject sf) {
- return sf == EJB_PACK.getEJBRelation_RelationshipRoles();
- }
-
- /**
- * @see org.eclipse.jst.j2ee.internal.ejb.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/util/EjbAdapterFactory.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/util/EjbAdapterFactory.java
deleted file mode 100644
index 5e564284a..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/util/EjbAdapterFactory.java
+++ /dev/null
@@ -1,607 +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.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.EClass;
-import org.eclipse.emf.ecore.EClassifier;
-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 caseEClass(EClass object) {
- return createEClassAdapter();
- }
- public Object caseEAttribute(EAttribute object) {
- return createEAttributeAdapter();
- }
- public Object caseEStructuralFeature(EStructuralFeature object) {
- return createEStructuralFeatureAdapter();
- }
- public Object caseEClassifier(EClassifier object) {
- return createEClassifierAdapter();
- }
- 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.internal.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.internal.ejb.ActivationConfigProperty
- * @generated
- */
- public Adapter createActivationConfigPropertyAdapter() {
- return null;
- }
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.internal.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.internal.ejb.ActivationConfig
- * @generated
- */
- public Adapter createActivationConfigAdapter() {
- return null;
- }
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.internal.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.internal.common.DescriptionGroup
- * @generated
- */
- public Adapter createDescriptionGroupAdapter() {
- return null;
- }
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.internal.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.internal.common.CompatibilityDescriptionGroup
- * @generated
- */
- public Adapter createCompatibilityDescriptionGroupAdapter() {
- return null;
- }
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.internal.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.internal.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/util/EjbSwitch.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/util/EjbSwitch.java
deleted file mode 100644
index 282a95221..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/util/EjbSwitch.java
+++ /dev/null
@@ -1,743 +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.util;
-
-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.internal.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) {
- EClass theEClass = theEObject.eClass();
- if (theEClass.eContainer() == modelPackage) {
- switch (theEClass.getClassifierID()) {
- 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.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);
- }
- }
- 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/util/MethodElementHelper.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/util/MethodElementHelper.java
deleted file mode 100644
index e7ef7a4a5..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/util/MethodElementHelper.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.ejb.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/util/RelationshipsAttributeMaintenanceAdapter.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/util/RelationshipsAttributeMaintenanceAdapter.java
deleted file mode 100644
index abafeeeec..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/ejb/util/RelationshipsAttributeMaintenanceAdapter.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.ejb.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.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/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 98b2bbf55..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/J2EEConstants.java
+++ /dev/null
@@ -1,162 +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 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);
-
- /** "META-INF" */
- String META_INF = "META-INF"; //$NON-NLS-1$
- /** "WEB-INF" */
- String WEB_INF = "WEB-INF"; //$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_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$
- /** 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_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_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 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_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_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$
-}
-
-
-
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 812abe481..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/J2EEInit.java
+++ /dev/null
@@ -1,229 +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.lang.reflect.Method;
-
-import org.eclipse.emf.common.notify.AdapterFactory;
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.emf.ecore.resource.Resource;
-import org.eclipse.jst.j2ee.application.ApplicationPackage;
-import org.eclipse.jst.j2ee.application.impl.ApplicationResourceFactory;
-import org.eclipse.jst.j2ee.client.ClientPackage;
-import org.eclipse.jst.j2ee.client.impl.ApplicationClientResourceFactory;
-import org.eclipse.jst.j2ee.common.CommonPackage;
-import org.eclipse.jst.j2ee.common.J2EEXMIResourceFactory;
-import org.eclipse.jst.j2ee.common.impl.J2EEResourceFactoryRegistry;
-import org.eclipse.jst.j2ee.ejb.EjbPackage;
-import org.eclipse.jst.j2ee.ejb.impl.EJBJarResourceFactory;
-import org.eclipse.jst.j2ee.ejb.impl.EjbFactoryImpl;
-import org.eclipse.jst.j2ee.ejb.util.EJBAttributeMaintenanceFactoryImpl;
-import org.eclipse.jst.j2ee.internal.xml.J2EEXmlDtDEntityResolver;
-import org.eclipse.jst.j2ee.jca.JcaPackage;
-import org.eclipse.jst.j2ee.jca.impl.ConnectorResourceFactory;
-import org.eclipse.jst.j2ee.jsp.JspPackage;
-import org.eclipse.jst.j2ee.taglib.TaglibPackage;
-import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage;
-import org.eclipse.jst.j2ee.webapplication.impl.WebAppResourceFactory;
-import org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapPackage;
-import org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapResourceFactory;
-import org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientPackage;
-import org.eclipse.jst.j2ee.webservice.wsclient.impl.WebServicesClientResourceFactory;
-import org.eclipse.jst.j2ee.webservice.wscommon.WscommonPackage;
-import org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage;
-import org.eclipse.jst.j2ee.webservice.wsdd.WsddResourceFactory;
-import org.eclipse.wst.common.emf.utilities.AdapterFactoryDescriptor;
-import org.eclipse.wst.common.emf.utilities.ExtendedEcoreUtil;
-import org.eclipse.wst.common.internal.emf.resource.RendererFactory;
-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.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();
- }
- });
- //TODO: Remove this line after SED Adapter is restored.
- RendererFactory.getDefaultRendererFactory().setValidating(false);
-
- }
- }
-
- /**
- * 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;
- }
- });
- //application
- ExtendedEcoreUtil.preRegisterPackage("application.xmi", new EPackage.Descriptor() { //$NON-NLS-1$
- public EPackage getEPackage() {
- return ApplicationPackage.eINSTANCE;
- }
- });
- //client
- ExtendedEcoreUtil.preRegisterPackage("client.xmi", new EPackage.Descriptor() { //$NON-NLS-1$
- public EPackage getEPackage() {
- return ClientPackage.eINSTANCE;
- }
- });
- //webapplication
- ExtendedEcoreUtil.preRegisterPackage("webapplication.xmi", new EPackage.Descriptor() { //$NON-NLS-1$
- public EPackage getEPackage() {
- return WebapplicationPackage.eINSTANCE;
- }
- });
- //ejb
- ExtendedEcoreUtil.preRegisterPackage("ejb.xmi", new EPackage.Descriptor() { //$NON-NLS-1$
- public EPackage getEPackage() {
- return EjbPackage.eINSTANCE;
- }
- });
- //jca
- ExtendedEcoreUtil.preRegisterPackage("jca.xmi", new EPackage.Descriptor() { //$NON-NLS-1$
- public EPackage getEPackage() {
- return JcaPackage.eINSTANCE;
- }
- });
- //webservicesclient
- ExtendedEcoreUtil.preRegisterPackage("webservice_client.xmi", new EPackage.Descriptor() { //$NON-NLS-1$
- public EPackage getEPackage() {
- return Webservice_clientPackage.eINSTANCE;
- }
- });
- //webservicescommon
- ExtendedEcoreUtil.preRegisterPackage("wscommon.xmi", new EPackage.Descriptor() { //$NON-NLS-1$
- public EPackage getEPackage() {
- return WscommonPackage.eINSTANCE;
- }
- });
- //webservicesdd
- ExtendedEcoreUtil.preRegisterPackage("wsdd.xmi", new EPackage.Descriptor() { //$NON-NLS-1$
- public EPackage getEPackage() {
- return WsddPackage.eINSTANCE;
- }
- });
- //jaxrpcmap
- ExtendedEcoreUtil.preRegisterPackage("jaxrpcmap.xmi", new EPackage.Descriptor() { //$NON-NLS-1$
- public EPackage getEPackage() {
- return JaxrpcmapPackage.eINSTANCE;
- }
- });
-// jsp
- ExtendedEcoreUtil.preRegisterPackage("jsp.xmi", new EPackage.Descriptor() { //$NON-NLS-1$
- public EPackage getEPackage() {
- return JspPackage.eINSTANCE;
- }
- });
- //taglib
- ExtendedEcoreUtil.preRegisterPackage("taglib.xmi", new EPackage.Descriptor() { //$NON-NLS-1$
- public EPackage getEPackage() {
- return TaglibPackage.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/J2EEVersionConstants.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/J2EEVersionConstants.java
deleted file mode 100644
index 1511820a8..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/J2EEVersionConstants.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
- *******************************************************************************/
-/*
- * 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_2_ID = 12;
- public int JSP_2_0_ID = 20;
- public int SERVLET_2_2 = 22;
- public int SERVLET_2_3 = 23;
- 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 c39d9ebb3..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/MOFJ2EEResourceHandler.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.internal;
-
-import java.text.MessageFormat;
-import java.util.MissingResourceException;
-import java.util.ResourceBundle;
-
-public class MOFJ2EEResourceHandler {
-
- private static ResourceBundle fgResourceBundle;
-
- /**
- * Returns the resource bundle used by all classes in this Project
- */
- public static ResourceBundle getResourceBundle() {
- try {
- return ResourceBundle.getBundle("mofj2ee");//$NON-NLS-1$
- } catch (MissingResourceException e) {
- // does nothing - this method will return null and
- // getString(String, String) will return the key
- // it was called with
- }
- return null;
- }
- public static String getString(String key) {
- if (fgResourceBundle == null) {
- fgResourceBundle= getResourceBundle();
- }
-
- if (fgResourceBundle != null) {
- try {
- return fgResourceBundle.getString(key);
- } catch (MissingResourceException e) {
- return "!" + key + "!";//$NON-NLS-2$//$NON-NLS-1$
- }
- }
- return "!" + key + "!";//$NON-NLS-2$//$NON-NLS-1$
-
- }
-public static String getString(String key, Object[] args) {
-
- try {return MessageFormat.format(getString(key), args);}
- catch (IllegalArgumentException e) {return getString(key);}
-
-}
-}
-
-
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 8ed115236..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, 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 org.eclipse.jst.j2ee.internal.xml.J2EEXMLResourceHandler;
-
-
-
-/**
- * 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(J2EEXMLResourceHandler.getString("Stack_trace_of_nested_exce")); //$NON-NLS-1$ = "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(J2EEXMLResourceHandler.getString("Stack_trace_of_nested_exce")); //$NON-NLS-1$ = "Stack trace of nested exception:"
- nestedException.printStackTrace(s);
- } else {
- super.printStackTrace(s);
- }
-}
-public void setNestedException(java.lang.Exception newNestedException) {
- nestedException = 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 1c0019e60..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/WrappedRuntimeException.java
+++ /dev/null
@@ -1,94 +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 org.eclipse.jst.j2ee.internal.xml.J2EEXMLResourceHandler;
-
-
-
-
-public class WrappedRuntimeException extends RuntimeException implements IWrappedException {
- /** 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(J2EEXMLResourceHandler.getString("Stack_trace_of_nested_exce")); //$NON-NLS-1$ = "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(J2EEXMLResourceHandler.getString("Stack_trace_of_nested_exce")); //$NON-NLS-1$ = "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/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 75c07b274..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, 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 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 4029cedda..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, 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 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 8d1a73777..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, 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.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 c3e68001c..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/common/BooleanTranslator.java
+++ /dev/null
@@ -1,60 +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 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) {
- String correct = strValue;
- if (strValue == null)
- return null;
- if (strValue.toUpperCase().equals("YES"))//$NON-NLS-1$
- correct = "true";//$NON-NLS-1$
- else if (strValue.toUpperCase().equals("NO"))//$NON-NLS-1$
- correct = "false";//$NON-NLS-1$
- else if (strValue.toUpperCase().equals("1"))//$NON-NLS-1$
- correct = "true";//$NON-NLS-1$
- else if (strValue.toUpperCase().equals("0"))//$NON-NLS-1$
- correct = "false";//$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/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 5780500a9..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, 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 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()) //$NON-NLS-1$
- });
- 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()) //$NON-NLS-1$
- });
- 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()), //$NON-NLS-1$
- new Translator(LARGE_ICON, COMMON_PKG.getIconType_LargeIcon()) //$NON-NLS-1$
- });
- 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 65313f90b..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, 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.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 f9b70663b..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, 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.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(); //$NON-NLS-1$
- 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 6ba2d4bb3..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/common/JavaClassTranslator.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.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) {}
- 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 c410ff49f..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, 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 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 6d8e5d7aa..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, 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.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 094fb10f9..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, 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.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 972e77a85..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, 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.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 332e7d00c..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, 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 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 897ea3016..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, 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 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 96c0e2967..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, 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 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 1cdc1ff0e..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, 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 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 aafe1be3a..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, 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 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 134732731..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, 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.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 c2d8163b9..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, 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 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 3ec01f306..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, 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 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 bc6c8252b..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, 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 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 1385f6021..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, 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 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 feac1701a..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, 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 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 dd7d05052..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, 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 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()), //$NON-NLS-1$
- new Translator(ENCODING, WEBAPP_PKG.getLocalEncodingMapping_Encoding()) //$NON-NLS-1$
- });
- 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 3d11e061f..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, 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 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 53a62fa30..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, 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;
-
-
-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 6461b2aa1..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, 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;
-
-
-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 c37c7dc33..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, 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;
-
-
-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 815f078db..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, 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;
-
-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.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 41353e124..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, 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;
-
-
-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 78d0a424e..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, 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;
-
-
-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 b15f6439d..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/model/translator/webservices/WebServicesTranslator.java
+++ /dev/null
@@ -1,158 +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;
-
-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(),
- createComponentScopedRefs13()
- };
- }
- /**
- * This model was model from Websphere Webservices
- * @param reference
- * @return
- */
- public static Translator createServiceRefGroupTranslator13() {
- GenericTranslator result = new GenericTranslator(SERVICE_REF, WEBSERVICECLIENT_PKG.getWebServicesClient_ServiceRefs());
- 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;
- }
-
- /**
- * This model was model from Websphere Webservices
- * @param reference
- * @return
- */
- public static Translator createServiceRefGroupTranslator13(EStructuralFeature feature) {
- GenericTranslator result = new GenericTranslator(SERVICE_REF, feature);
- result.setChildren( new Translator[] {
- IDTranslator.INSTANCE,
- CommonTranslators.DESCRIPTIONS_TRANSLATOR,
- CommonTranslators.DISPLAYNAMES_TRANSLATOR,
- CommonTranslators.ICONS_TRANSLATOR,
- 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(),
- CommonTranslators.createServiceRefHandlerTranslator(),
- });
-
-
- 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 6245901ed..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, 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;
-
-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.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 64dcf6c2c..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, 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.lang.reflect.InvocationTargetException;
-
-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;
-
-import com.ibm.wtp.common.logger.proxy.Logger;
-/**
- * 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("failed_instantiating_EXC_", (new Object[] {"Failed to instantiate parser"})), ie); //$NON-NLS-1$ //$NON-NLS-2$ = "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("failed_instantiating_EXC_", (new Object[] {"SAX Parser error"})), ex); //$NON-NLS-1$ //$NON-NLS-2$ = "Failed instantiating: "
-
- }
- catch (java.io.IOException ex)
- {
- handleException(J2EEXMLResourceHandler.getString("failed_instantiating_EXC_", (new Object[] {"IO Exception on input stream"})), ex); //$NON-NLS-1$ //$NON-NLS-2$ = "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)
- {
- com.ibm.wtp.common.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) {
- }
- }
-
-
-/**
- * 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 8419f9f53..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/xml/J2EEXMLResourceHandler.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.internal.xml;
-
-import java.text.MessageFormat;
-import java.util.MissingResourceException;
-import java.util.ResourceBundle;
-
-public class J2EEXMLResourceHandler {
-
- private static ResourceBundle fgResourceBundle;
-
- /**
- * Returns the resource bundle used by all classes in this Project
- */
- public static ResourceBundle getResourceBundle() {
- try {
- return ResourceBundle.getBundle("j2eexml");//$NON-NLS-1$
- } catch (MissingResourceException e) {
- // does nothing - this method will return null and
- // getString(String, String) will return the key
- // it was called with
- }
- return null;
- }
- public static String getString(String key) {
- if (fgResourceBundle == null) {
- fgResourceBundle= getResourceBundle();
- }
-
- if (fgResourceBundle != null) {
- try {
- return fgResourceBundle.getString(key);
- } catch (MissingResourceException e) {
- return "!" + key + "!";//$NON-NLS-2$//$NON-NLS-1$
- }
- }
- return "!" + key + "!";//$NON-NLS-2$//$NON-NLS-1$
-
- }
-public static String getString(String key, Object[] args) {
-
- try {return MessageFormat.format(getString(key), args);}
- catch (IllegalArgumentException e) {return getString(key);}
-
-}
-}
-
-
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 b9ea5536f..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/xml/J2EEXmlDtDEntityResolver.java
+++ /dev/null
@@ -1,126 +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.net.URL;
-import java.util.HashMap;
-import java.util.Map;
-
-import org.xml.sax.InputSource;
-
-
-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) {
- //TODO Removing Registration mechanism until final location is found
- /*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) {
- if (isJavaSytemId) {
- String message = J2EEXMLResourceHandler.getString("unsupported_type_EXC_", (new Object[] {publicId, systemId })); //$NON-NLS-1$ = "Type is unrecognized or not yet supported: PUBLIC_ID= {0};SYSTEM_ID={1}"
- throw new org.xml.sax.SAXException(new NotSupportedException(message));
- }
- 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("dtd_not_found_EXC_", (new Object[] {localResourceName}));//$NON-NLS-1$ = "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) {
- //TODO Removed Resolver function until file location is known...
- return false;
- /*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 385620f86..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/internal/xml/XMLParseResourceHandler.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.internal.xml;
-
-
-import java.text.MessageFormat;
-import java.util.MissingResourceException;
-import java.util.ResourceBundle;
-
-public class XMLParseResourceHandler {
-
- private static ResourceBundle fgResourceBundle;
-
- /**
- * Returns the resource bundle used by all classes in this Project
- */
- public static ResourceBundle getResourceBundle() {
- try {
- return ResourceBundle.getBundle("xmlparse");//$NON-NLS-1$
- } catch (MissingResourceException e) {
- // does nothing - this method will return null and
- // getString(String, String) will return the key
- // it was called with
- }
- return null;
- }
- public static String getString(String key) {
- if (fgResourceBundle == null) {
- fgResourceBundle= getResourceBundle();
- }
-
- if (fgResourceBundle != null) {
- try {
- return fgResourceBundle.getString(key);
- } catch (MissingResourceException e) {
- return "!" + key + "!";//$NON-NLS-2$//$NON-NLS-1$
- }
- }
- return "!" + key + "!";//$NON-NLS-2$//$NON-NLS-1$
-
- }
-public static String getString(String key, Object[] args) {
-
- try {return MessageFormat.format(getString(key), args);}
- catch (IllegalArgumentException e) {return getString(key);}
-
-}
-}
-
-
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 4e63a94a0..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, 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.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 new J2EEXmlDtDEntityResolver();
-}
-
-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("parse_exception_occured_EXC_", (new Object[] {new Integer(parseException.getLineNumber()), new Integer(parseException.getColumnNumber()) })), parseException); //$NON-NLS-1$
- //$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 2e3bb8919..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, 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.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 -->
- * @since 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.internal.jca.ActivationSpec#getActivationSpecClass <em>Activation Spec Class</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.jca.ActivationSpec#getRequiredConfigProperties <em>Required Config Properties</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.jst.j2ee.internal.jca.JcaPackage#getActivationSpec()
- * @model
- * @generated
- */
-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.internal.jca.JcaPackage#getActivationSpec_ActivationSpecClass()
- * @model
- * @generated
- */
- String getActivationSpecClass();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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.internal.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.internal.jca.JcaPackage#getActivationSpec_RequiredConfigProperties()
- * @model type="org.eclipse.jst.j2ee.internal.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 e622c0dce..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, 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.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 -->
- * @since 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.internal.jca.AdminObject#getAdminObjectInterface <em>Admin Object Interface</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.jca.AdminObject#getAdminObjectClass <em>Admin Object Class</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.jca.AdminObject#getConfigProperties <em>Config Properties</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.jst.j2ee.internal.jca.JcaPackage#getAdminObject()
- * @model
- * @generated
- */
-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.internal.jca.JcaPackage#getAdminObject_AdminObjectInterface()
- * @model
- * @generated
- */
- String getAdminObjectInterface();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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.internal.jca.JcaPackage#getAdminObject_AdminObjectClass()
- * @model
- * @generated
- */
- String getAdminObjectClass();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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.internal.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.internal.jca.JcaPackage#getAdminObject_ConfigProperties()
- * @model type="org.eclipse.jst.j2ee.internal.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 99f827cdb..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, 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.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.
-
- */
-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.internal.jca.JcaPackage#getAuthenticationMechanism_AuthenticationMechanism()
- * @model
- * @generated
- */
- String getAuthenticationMechanism();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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.internal.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.internal.jca.AuthenticationMechanismType
- * @see #isSetAuthenticationMechanismType()
- * @see #unsetAuthenticationMechanismType()
- * @see #getAuthenticationMechanismType()
- * @generated
- */
- void setAuthenticationMechanismType(AuthenticationMechanismType value);
-
- /**
- * Unsets the value of the '{@link org.eclipse.jst.j2ee.internal.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.internal.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.internal.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 -->
- * @since J2EE1.4
- * <!-- end-model-doc -->
- * @return the value of the '<em>Descriptions</em>' containment reference list.
- * @see org.eclipse.jst.j2ee.internal.jca.JcaPackage#getAuthenticationMechanism_Descriptions()
- * @model type="org.eclipse.jst.j2ee.internal.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 77ff4551d..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/AuthenticationMechanismType.java
+++ /dev/null
@@ -1,126 +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.jca;
-import java.util.Arrays;
-import java.util.Collections;
-import java.util.List;
-
-import org.eclipse.emf.common.util.AbstractEnumerator;
-
-
-
-
-
-/**
- * @lastgen interface AuthenticationMechanismType {}
- */
-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 -->
- * <!-- 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
- */
- 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 3d11ed09f..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, 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.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.
-
- */
-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.internal.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 -->
- * @since J2EE1.4
- * <!-- end-model-doc -->
- * @return the value of the '<em>Descriptions</em>' containment reference list.
- * @see org.eclipse.jst.j2ee.internal.jca.JcaPackage#getConfigProperty_Descriptions()
- * @model type="org.eclipse.jst.j2ee.internal.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 51fd2d364..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, 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.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 -->
- * @since 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.internal.jca.ConnectionDefinition#getManagedConnectionFactoryClass <em>Managed Connection Factory Class</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.jca.ConnectionDefinition#getConnectionFactoryInterface <em>Connection Factory Interface</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.jca.ConnectionDefinition#getConnectionFactoryImplClass <em>Connection Factory Impl Class</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.jca.ConnectionDefinition#getConnectionInterface <em>Connection Interface</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.jca.ConnectionDefinition#getConnectionImplClass <em>Connection Impl Class</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.jca.ConnectionDefinition#getConfigProperties <em>Config Properties</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.jst.j2ee.internal.jca.JcaPackage#getConnectionDefinition()
- * @model
- * @generated
- */
-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.internal.jca.JcaPackage#getConnectionDefinition_ManagedConnectionFactoryClass()
- * @model
- * @generated
- */
- String getManagedConnectionFactoryClass();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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.internal.jca.JcaPackage#getConnectionDefinition_ConnectionFactoryInterface()
- * @model
- * @generated
- */
- String getConnectionFactoryInterface();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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.internal.jca.JcaPackage#getConnectionDefinition_ConnectionFactoryImplClass()
- * @model
- * @generated
- */
- String getConnectionFactoryImplClass();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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.internal.jca.JcaPackage#getConnectionDefinition_ConnectionInterface()
- * @model
- * @generated
- */
- String getConnectionInterface();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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.internal.jca.JcaPackage#getConnectionDefinition_ConnectionImplClass()
- * @model
- * @generated
- */
- String getConnectionImplClass();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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.internal.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.internal.jca.JcaPackage#getConnectionDefinition_ConfigProperties()
- * @model type="org.eclipse.jst.j2ee.internal.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 b8e6c1c7c..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/Connector.java
+++ /dev/null
@@ -1,126 +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.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.
-
- */
-public interface Connector extends CompatibilityDescriptionGroup{
-
-
- /**
- * 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
- * @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 l 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 l 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 975a18b21..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/ConnectorResource.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
- *******************************************************************************/
-/*
- * 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.common.XMLResource;
-
-public interface ConnectorResource extends XMLResource {
- 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 8c43bb9a1..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, 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.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 -->
- * @since 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.internal.jca.InboundResourceAdapter#getMessageAdapter <em>Message Adapter</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.jst.j2ee.internal.jca.JcaPackage#getInboundResourceAdapter()
- * @model
- * @generated
- */
-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.internal.jca.JcaPackage#getInboundResourceAdapter_MessageAdapter()
- * @model containment="true"
- * @generated
- */
- MessageAdapter getMessageAdapter();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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 54f4c406a..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/JcaFactory.java
+++ /dev/null
@@ -1,288 +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.jca;
-
-import org.eclipse.emf.ecore.EFactory;
-/**
- * @generated
- */
-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.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();
-
- /**
- * @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 5b94dbc77..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/JcaPackage.java
+++ /dev/null
@@ -1,2087 +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.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;
-
-
-
-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.internal.jca";//$NON-NLS-1$
-
- /**
- * The singleton instance of the package.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- JcaPackage eINSTANCE = org.eclipse.jst.j2ee.jca.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.internal.jca.impl.InboundResourceAdapterImpl <em>Inbound Resource Adapter</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.j2ee.internal.jca.impl.InboundResourceAdapterImpl
- * @see org.eclipse.jst.j2ee.internal.jca.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.internal.jca.impl.OutboundResourceAdapterImpl <em>Outbound Resource Adapter</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.j2ee.internal.jca.impl.OutboundResourceAdapterImpl
- * @see org.eclipse.jst.j2ee.internal.jca.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.internal.jca.impl.MessageAdapterImpl <em>Message Adapter</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.j2ee.internal.jca.impl.MessageAdapterImpl
- * @see org.eclipse.jst.j2ee.internal.jca.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.internal.jca.impl.ConnectionDefinitionImpl <em>Connection Definition</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.j2ee.internal.jca.impl.ConnectionDefinitionImpl
- * @see org.eclipse.jst.j2ee.internal.jca.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.internal.jca.impl.AdminObjectImpl <em>Admin Object</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.j2ee.internal.jca.impl.AdminObjectImpl
- * @see org.eclipse.jst.j2ee.internal.jca.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.internal.jca.impl.MessageListenerImpl <em>Message Listener</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.j2ee.internal.jca.impl.MessageListenerImpl
- * @see org.eclipse.jst.j2ee.internal.jca.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.internal.jca.impl.ActivationSpecImpl <em>Activation Spec</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.j2ee.internal.jca.impl.ActivationSpecImpl
- * @see org.eclipse.jst.j2ee.internal.jca.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.internal.jca.impl.RequiredConfigPropertyTypeImpl <em>Required Config Property Type</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.j2ee.internal.jca.impl.RequiredConfigPropertyTypeImpl
- * @see org.eclipse.jst.j2ee.internal.jca.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.internal.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.internal.jca.License#getDescriptions()
- * @see #getLicense()
- * @generated
- */
- EReference getLicense_Descriptions();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.jst.j2ee.internal.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.internal.jca.InboundResourceAdapter
- * @generated
- */
- EClass getInboundResourceAdapter();
-
- /**
- * Returns the meta object for the containment reference '{@link org.eclipse.jst.j2ee.internal.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.internal.jca.InboundResourceAdapter#getMessageAdapter()
- * @see #getInboundResourceAdapter()
- * @generated
- */
- EReference getInboundResourceAdapter_MessageAdapter();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.jst.j2ee.internal.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.internal.jca.OutboundResourceAdapter
- * @generated
- */
- EClass getOutboundResourceAdapter();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.internal.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.internal.jca.OutboundResourceAdapter#isReauthenticationSupport()
- * @see #getOutboundResourceAdapter()
- * @generated
- */
- EAttribute getOutboundResourceAdapter_ReauthenticationSupport();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.internal.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.internal.jca.OutboundResourceAdapter#getTransactionSupport()
- * @see #getOutboundResourceAdapter()
- * @generated
- */
- EAttribute getOutboundResourceAdapter_TransactionSupport();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.internal.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.internal.jca.OutboundResourceAdapter#getConnectionDefinitions()
- * @see #getOutboundResourceAdapter()
- * @generated
- */
- EReference getOutboundResourceAdapter_ConnectionDefinitions();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.internal.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.internal.jca.OutboundResourceAdapter#getAuthenticationMechanisms()
- * @see #getOutboundResourceAdapter()
- * @generated
- */
- EReference getOutboundResourceAdapter_AuthenticationMechanisms();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.jst.j2ee.internal.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.internal.jca.MessageAdapter
- * @generated
- */
- EClass getMessageAdapter();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.internal.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.internal.jca.MessageAdapter#getMessageListeners()
- * @see #getMessageAdapter()
- * @generated
- */
- EReference getMessageAdapter_MessageListeners();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.jst.j2ee.internal.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.internal.jca.ConnectionDefinition
- * @generated
- */
- EClass getConnectionDefinition();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.internal.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.internal.jca.ConnectionDefinition#getManagedConnectionFactoryClass()
- * @see #getConnectionDefinition()
- * @generated
- */
- EAttribute getConnectionDefinition_ManagedConnectionFactoryClass();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.internal.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.internal.jca.ConnectionDefinition#getConnectionFactoryInterface()
- * @see #getConnectionDefinition()
- * @generated
- */
- EAttribute getConnectionDefinition_ConnectionFactoryInterface();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.internal.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.internal.jca.ConnectionDefinition#getConnectionFactoryImplClass()
- * @see #getConnectionDefinition()
- * @generated
- */
- EAttribute getConnectionDefinition_ConnectionFactoryImplClass();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.internal.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.internal.jca.ConnectionDefinition#getConnectionInterface()
- * @see #getConnectionDefinition()
- * @generated
- */
- EAttribute getConnectionDefinition_ConnectionInterface();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.internal.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.internal.jca.ConnectionDefinition#getConnectionImplClass()
- * @see #getConnectionDefinition()
- * @generated
- */
- EAttribute getConnectionDefinition_ConnectionImplClass();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.internal.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.internal.jca.ConnectionDefinition#getConfigProperties()
- * @see #getConnectionDefinition()
- * @generated
- */
- EReference getConnectionDefinition_ConfigProperties();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.jst.j2ee.internal.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.internal.jca.AdminObject
- * @generated
- */
- EClass getAdminObject();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.internal.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.internal.jca.AdminObject#getAdminObjectInterface()
- * @see #getAdminObject()
- * @generated
- */
- EAttribute getAdminObject_AdminObjectInterface();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.internal.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.internal.jca.AdminObject#getAdminObjectClass()
- * @see #getAdminObject()
- * @generated
- */
- EAttribute getAdminObject_AdminObjectClass();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.internal.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.internal.jca.AdminObject#getConfigProperties()
- * @see #getAdminObject()
- * @generated
- */
- EReference getAdminObject_ConfigProperties();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.jst.j2ee.internal.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.internal.jca.MessageListener
- * @generated
- */
- EClass getMessageListener();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.internal.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.internal.jca.MessageListener#getMessageListenerType()
- * @see #getMessageListener()
- * @generated
- */
- EAttribute getMessageListener_MessageListenerType();
-
- /**
- * Returns the meta object for the containment reference '{@link org.eclipse.jst.j2ee.internal.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.internal.jca.MessageListener#getActivationSpec()
- * @see #getMessageListener()
- * @generated
- */
- EReference getMessageListener_ActivationSpec();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.jst.j2ee.internal.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.internal.jca.ActivationSpec
- * @generated
- */
- EClass getActivationSpec();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.internal.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.internal.jca.ActivationSpec#getActivationSpecClass()
- * @see #getActivationSpec()
- * @generated
- */
- EAttribute getActivationSpec_ActivationSpecClass();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.internal.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.internal.jca.ActivationSpec#getRequiredConfigProperties()
- * @see #getActivationSpec()
- * @generated
- */
- EReference getActivationSpec_RequiredConfigProperties();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.jst.j2ee.internal.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.internal.jca.RequiredConfigPropertyType
- * @generated
- */
- EClass getRequiredConfigPropertyType();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.internal.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.internal.jca.RequiredConfigPropertyType#getName()
- * @see #getRequiredConfigPropertyType()
- * @generated
- */
- EAttribute getRequiredConfigPropertyType_Name();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.internal.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.internal.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.internal.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.internal.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.internal.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.internal.jca.ResourceAdapter#getOutboundResourceAdapter()
- * @see #getResourceAdapter()
- * @generated
- */
- EReference getResourceAdapter_OutboundResourceAdapter();
-
- /**
- * Returns the meta object for the containment reference '{@link org.eclipse.jst.j2ee.internal.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.internal.jca.ResourceAdapter#getInboundResourceAdapter()
- * @see #getResourceAdapter()
- * @generated
- */
- EReference getResourceAdapter_InboundResourceAdapter();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.internal.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.internal.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.internal.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.internal.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.internal.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.internal.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.internal.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.internal.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.internal.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.internal.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 4cfc8f3e9..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, 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.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).
- */
-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.internal.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.internal.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.internal.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.internal.jca.JcaPackage#getLicense_Descriptions()
- * @model type="org.eclipse.jst.j2ee.internal.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 9d4442910..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, 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.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 -->
- * @since 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.internal.jca.MessageAdapter#getMessageListeners <em>Message Listeners</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.jst.j2ee.internal.jca.JcaPackage#getMessageAdapter()
- * @model
- * @generated
- */
-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.internal.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.internal.jca.JcaPackage#getMessageAdapter_MessageListeners()
- * @model type="org.eclipse.jst.j2ee.internal.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 450258167..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, 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.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 -->
- * @since 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.internal.jca.MessageListener#getMessageListenerType <em>Message Listener Type</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.jca.MessageListener#getActivationSpec <em>Activation Spec</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.jst.j2ee.internal.jca.JcaPackage#getMessageListener()
- * @model
- * @generated
- */
-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.internal.jca.JcaPackage#getMessageListener_MessageListenerType()
- * @model
- * @generated
- */
- String getMessageListenerType();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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.internal.jca.JcaPackage#getMessageListener_ActivationSpec()
- * @model containment="true" required="true"
- * @generated
- */
- ActivationSpec getActivationSpec();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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 6a7de2f69..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, 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.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 -->
- * @since 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.internal.jca.OutboundResourceAdapter#isReauthenticationSupport <em>Reauthentication Support</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.jca.OutboundResourceAdapter#getTransactionSupport <em>Transaction Support</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.jca.OutboundResourceAdapter#getConnectionDefinitions <em>Connection Definitions</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.jca.OutboundResourceAdapter#getAuthenticationMechanisms <em>Authentication Mechanisms</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.jst.j2ee.internal.jca.JcaPackage#getOutboundResourceAdapter()
- * @model
- * @generated
- */
-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.internal.jca.JcaPackage#getOutboundResourceAdapter_ReauthenticationSupport()
- * @model unsettable="true"
- * @generated
- */
- boolean isReauthenticationSupport();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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.internal.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.internal.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.internal.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.internal.jca.TransactionSupportKind
- * @see #isSetTransactionSupport()
- * @see #unsetTransactionSupport()
- * @see #setTransactionSupport(TransactionSupportKind)
- * @see org.eclipse.jst.j2ee.internal.jca.JcaPackage#getOutboundResourceAdapter_TransactionSupport()
- * @model unsettable="true"
- * @generated
- */
- TransactionSupportKind getTransactionSupport();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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.internal.jca.TransactionSupportKind
- * @see #isSetTransactionSupport()
- * @see #unsetTransactionSupport()
- * @see #getTransactionSupport()
- * @generated
- */
- void setTransactionSupport(TransactionSupportKind value);
-
- /**
- * Unsets the value of the '{@link org.eclipse.jst.j2ee.internal.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.internal.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.internal.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.internal.jca.JcaPackage#getOutboundResourceAdapter_ConnectionDefinitions()
- * @model type="org.eclipse.jst.j2ee.internal.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.internal.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.internal.jca.JcaPackage#getOutboundResourceAdapter_AuthenticationMechanisms()
- * @model type="org.eclipse.jst.j2ee.internal.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 1bf1f6b58..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, 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.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 -->
- * @since 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.internal.jca.RequiredConfigPropertyType#getName <em>Name</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.jca.RequiredConfigPropertyType#getDescriptions <em>Descriptions</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.jst.j2ee.internal.jca.JcaPackage#getRequiredConfigPropertyType()
- * @model
- * @generated
- */
-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.internal.jca.JcaPackage#getRequiredConfigPropertyType_Name()
- * @model
- * @generated
- */
- String getName();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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.internal.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.internal.jca.JcaPackage#getRequiredConfigPropertyType_Descriptions()
- * @model type="org.eclipse.jst.j2ee.internal.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 7cc4a77b5..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, 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.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.
-
- */
-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.internal.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.internal.jca.TransactionSupportKind
- * @see #isSetTransactionSupport()
- * @see #unsetTransactionSupport()
- * @see #getTransactionSupport()
- * @generated
- */
- void setTransactionSupport(TransactionSupportKind value);
-
- /**
- * Unsets the value of the '{@link org.eclipse.jst.j2ee.internal.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.internal.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.internal.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.internal.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.internal.jca.JcaPackage#getResourceAdapter_ResourceAdapterClass()
- * @model
- * @generated
- */
- String getResourceAdapterClass();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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 -->
- * @since 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.internal.jca.JcaPackage#getResourceAdapter_OutboundResourceAdapter()
- * @model containment="true"
- * @generated
- */
- OutboundResourceAdapter getOutboundResourceAdapter();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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 -->
- * @since 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.internal.jca.JcaPackage#getResourceAdapter_InboundResourceAdapter()
- * @model containment="true"
- * @generated
- */
- InboundResourceAdapter getInboundResourceAdapter();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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.internal.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 -->
- * @since J2EE1.4
- * <!-- end-model-doc -->
- * @return the value of the '<em>Admin Objects</em>' containment reference list.
- * @see org.eclipse.jst.j2ee.internal.jca.JcaPackage#getResourceAdapter_AdminObjects()
- * @model type="org.eclipse.jst.j2ee.internal.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 783228cc1..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, 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.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.
-
- */
-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.internal.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 -->
- * @since J2EE1.4
- * <!-- end-model-doc -->
- * @return the value of the '<em>Descriptions</em>' containment reference list.
- * @see org.eclipse.jst.j2ee.internal.jca.JcaPackage#getSecurityPermission_Descriptions()
- * @model type="org.eclipse.jst.j2ee.internal.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 83b9dda6d..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/TransactionSupportKind.java
+++ /dev/null
@@ -1,146 +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.jca;
-import java.util.Arrays;
-import java.util.Collections;
-import java.util.List;
-
-import org.eclipse.emf.common.util.AbstractEnumerator;
-
-
-
-
-
-/**
- * @lastgen interface TransactionSupportKind {}
- */
-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 -->
- * <!-- 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 -->
- * <!-- 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/impl/ActivationSpecImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/impl/ActivationSpecImpl.java
deleted file mode 100644
index 88bf9d2ae..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/impl/ActivationSpecImpl.java
+++ /dev/null
@@ -1,223 +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.jca.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.internal.jca.impl.ActivationSpecImpl#getActivationSpecClass <em>Activation Spec Class</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.jca.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: ");//$NON-NLS-1$
- result.append(activationSpecClass);
- result.append(')');
- return result.toString();
- }
-
-} //ActivationSpecImpl
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/impl/AdminObjectImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/impl/AdminObjectImpl.java
deleted file mode 100644
index 9c187bbcf..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/impl/AdminObjectImpl.java
+++ /dev/null
@@ -1,277 +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.jca.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.internal.jca.impl.AdminObjectImpl#getAdminObjectInterface <em>Admin Object Interface</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.jca.impl.AdminObjectImpl#getAdminObjectClass <em>Admin Object Class</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.jca.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: ");//$NON-NLS-1$
- result.append(adminObjectInterface);
- result.append(", adminObjectClass: ");//$NON-NLS-1$
- result.append(adminObjectClass);
- result.append(')');
- return result.toString();
- }
-
-} //AdminObjectImpl
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/impl/AuthenticationMechanismImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/impl/AuthenticationMechanismImpl.java
deleted file mode 100644
index 15ca01547..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/impl/AuthenticationMechanismImpl.java
+++ /dev/null
@@ -1,866 +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.jca.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: ");//$NON-NLS-1$
- result.append(description);
- result.append(", authenticationMechanism: ");//$NON-NLS-1$
- result.append(authenticationMechanism);
- result.append(", authenticationMechanismType: ");//$NON-NLS-1$
- if (authenticationMechanismTypeESet) result.append(authenticationMechanismType); else result.append("<unset>");//$NON-NLS-1$
- result.append(", credentialInterface: ");//$NON-NLS-1$
- result.append(credentialInterface);
- result.append(", customAuthMechType: ");//$NON-NLS-1$
- 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/impl/ConfigPropertyImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/impl/ConfigPropertyImpl.java
deleted file mode 100644
index 443f8cbc3..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/impl/ConfigPropertyImpl.java
+++ /dev/null
@@ -1,357 +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.jca.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: ");//$NON-NLS-1$
- result.append(description);
- result.append(", name: ");//$NON-NLS-1$
- result.append(name);
- result.append(", type: ");//$NON-NLS-1$
- result.append(type);
- result.append(", value: ");//$NON-NLS-1$
- result.append(value);
- result.append(')');
- return result.toString();
- }
-
-}
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/impl/ConnectionDefinitionImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/impl/ConnectionDefinitionImpl.java
deleted file mode 100644
index 03c7bb1de..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/impl/ConnectionDefinitionImpl.java
+++ /dev/null
@@ -1,439 +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.jca.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.internal.jca.impl.ConnectionDefinitionImpl#getManagedConnectionFactoryClass <em>Managed Connection Factory Class</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.jca.impl.ConnectionDefinitionImpl#getConnectionFactoryInterface <em>Connection Factory Interface</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.jca.impl.ConnectionDefinitionImpl#getConnectionFactoryImplClass <em>Connection Factory Impl Class</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.jca.impl.ConnectionDefinitionImpl#getConnectionInterface <em>Connection Interface</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.jca.impl.ConnectionDefinitionImpl#getConnectionImplClass <em>Connection Impl Class</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.jca.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: ");//$NON-NLS-1$
- result.append(managedConnectionFactoryClass);
- result.append(", connectionFactoryInterface: ");//$NON-NLS-1$
- result.append(connectionFactoryInterface);
- result.append(", connectionFactoryImplClass: ");//$NON-NLS-1$
- result.append(connectionFactoryImplClass);
- result.append(", connectionInterface: ");//$NON-NLS-1$
- result.append(connectionInterface);
- result.append(", connectionImplClass: ");//$NON-NLS-1$
- result.append(connectionImplClass);
- result.append(')');
- return result.toString();
- }
-
-} //ConnectionDefinitionImpl
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/impl/ConnectorImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/impl/ConnectorImpl.java
deleted file mode 100644
index 46eec25ac..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/impl/ConnectorImpl.java
+++ /dev/null
@@ -1,508 +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.jca.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.J2EEVersionResource;
-import org.eclipse.jst.j2ee.common.impl.CompatibilityDescriptionGroupImpl;
-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: ");//$NON-NLS-1$
- result.append(vendorName);
- result.append(", specVersion: ");//$NON-NLS-1$
- result.append(specVersion);
- result.append(", eisType: ");//$NON-NLS-1$
- result.append(eisType);
- result.append(", version: ");//$NON-NLS-1$
- result.append(version);
- result.append(')');
- return result.toString();
- }
-
-}
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/impl/ConnectorResourceFactory.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/impl/ConnectorResourceFactory.java
deleted file mode 100644
index d1a309ff9..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/impl/ConnectorResourceFactory.java
+++ /dev/null
@@ -1,67 +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.jca.impl;
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.emf.ecore.resource.Resource;
-import org.eclipse.jst.j2ee.common.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.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_SCHEMA_LOC_1_5, "connector_1_5.xsd"); //$NON-NLS-1$
- }
-
- /**
- * 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 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/impl/ConnectorResourceImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/impl/ConnectorResourceImpl.java
deleted file mode 100644
index b0f91220f..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/impl/ConnectorResourceImpl.java
+++ /dev/null
@@ -1,180 +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.jca.impl;
-
-
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.jst.j2ee.common.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;
- }
-
- /* (non-Javadoc)
- * @see com.ibm.etools.j2eexml.XMLResourceImpl#getJ2EE_1_3_SystemID()
- */
- public String getJ2EE_1_3_SystemID() {
- return J2EEConstants.CONNECTOR_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/impl/InboundResourceAdapterImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/impl/InboundResourceAdapterImpl.java
deleted file mode 100644
index 303f793e3..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/impl/InboundResourceAdapterImpl.java
+++ /dev/null
@@ -1,181 +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.jca.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.internal.jca.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/impl/JcaFactoryImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/impl/JcaFactoryImpl.java
deleted file mode 100644
index 76495f7c3..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/impl/JcaFactoryImpl.java
+++ /dev/null
@@ -1,422 +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.jca.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"); //$NON-NLS-1$ //$NON-NLS-2$
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Object createFromString(EDataType eDataType, String initialValue) {
- switch (eDataType.getClassifierID()) {
- case JcaPackage.AUTHENTICATION_MECHANISM_TYPE:
- return AuthenticationMechanismType.get(initialValue);
- case JcaPackage.TRANSACTION_SUPPORT_KIND:
- return TransactionSupportKind.get(initialValue);
- default:
- throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier");//$NON-NLS-1$ //$NON-NLS-2$
- }
- }
-
- /**
- * <!-- 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"); //$NON-NLS-1$//$NON-NLS-2$
- }
- }
-
- /**
- * @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/impl/JcaPackageImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/impl/JcaPackageImpl.java
deleted file mode 100644
index 94a651efd..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/impl/JcaPackageImpl.java
+++ /dev/null
@@ -1,2107 +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.jca.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.impl.JavaRefPackageImpl;
-import org.eclipse.jst.j2ee.application.ApplicationPackage;
-import org.eclipse.jst.j2ee.application.impl.ApplicationPackageImpl;
-import org.eclipse.jst.j2ee.client.ClientPackage;
-import org.eclipse.jst.j2ee.client.impl.ClientPackageImpl;
-import org.eclipse.jst.j2ee.common.CommonPackage;
-import org.eclipse.jst.j2ee.common.impl.CommonPackageImpl;
-import org.eclipse.jst.j2ee.ejb.EjbPackage;
-import org.eclipse.jst.j2ee.ejb.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.impl.JspPackageImpl;
-import org.eclipse.jst.j2ee.taglib.TaglibPackage;
-import org.eclipse.jst.j2ee.taglib.impl.TaglibPackageImpl;
-import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage;
-import org.eclipse.jst.j2ee.webapplication.impl.WebapplicationPackageImpl;
-import org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientPackage;
-import org.eclipse.jst.j2ee.webservice.wsclient.impl.Webservice_clientPackageImpl;
-import org.eclipse.jst.j2ee.webservice.wscommon.WscommonPackage;
-import org.eclipse.jst.j2ee.webservice.wscommon.impl.WscommonPackageImpl;
-import org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage;
-import org.eclipse.jst.j2ee.webservice.wsdd.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 EPackage ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new JcaPackageImpl());
-
- isInited = true;
-
- // Initialize simple dependencies
- EcorePackageImpl.init();
- JavaRefPackageImpl.init();
-
- // Obtain or create and register interdependencies
- EjbPackageImpl theEjbPackage = (EjbPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(EjbPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(EjbPackage.eNS_URI) : EjbPackage.eINSTANCE);
- ClientPackageImpl theClientPackage = (ClientPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ClientPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(ClientPackage.eNS_URI) : ClientPackage.eINSTANCE);
- CommonPackageImpl theCommonPackage = (CommonPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI) : CommonPackage.eINSTANCE);
- Webservice_clientPackageImpl theWebservice_clientPackage = (Webservice_clientPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(Webservice_clientPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(Webservice_clientPackage.eNS_URI) : Webservice_clientPackage.eINSTANCE);
- WscommonPackageImpl theWscommonPackage = (WscommonPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(WscommonPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(WscommonPackage.eNS_URI) : WscommonPackage.eINSTANCE);
- WsddPackageImpl theWsddPackage = (WsddPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(WsddPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(WsddPackage.eNS_URI) : WsddPackage.eINSTANCE);
- WebapplicationPackageImpl theWebapplicationPackage = (WebapplicationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(WebapplicationPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(WebapplicationPackage.eNS_URI) : WebapplicationPackage.eINSTANCE);
- ApplicationPackageImpl theApplicationPackage = (ApplicationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ApplicationPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(ApplicationPackage.eNS_URI) : ApplicationPackage.eINSTANCE);
- JspPackageImpl theJspPackage = (JspPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(JspPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(JspPackage.eNS_URI) : JspPackage.eINSTANCE);
- TaglibPackageImpl theTaglibPackage = (TaglibPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(TaglibPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(TaglibPackage.eNS_URI) : TaglibPackage.eINSTANCE);
-
- // Step 1: create meta-model objects
- theJcaPackage.createPackageContents();
- theEjbPackage.createPackageContents();
- theClientPackage.createPackageContents();
- theCommonPackage.createPackageContents();
- theWebservice_clientPackage.createPackageContents();
- theWscommonPackage.createPackageContents();
- theWsddPackage.createPackageContents();
- theWebapplicationPackage.createPackageContents();
- theApplicationPackage.createPackageContents();
- theJspPackage.createPackageContents();
- theTaglibPackage.createPackageContents();
-
- // Step 2: complete initialization
- theJcaPackage.initializePackageContents();
- theEjbPackage.initializePackageContents();
- theClientPackage.initializePackageContents();
- theCommonPackage.initializePackageContents();
- theWebservice_clientPackage.initializePackageContents();
- theWscommonPackage.initializePackageContents();
- theWsddPackage.initializePackageContents();
- theWebapplicationPackage.initializePackageContents();
- theApplicationPackage.initializePackageContents();
- theJspPackage.initializePackageContents();
- theTaglibPackage.initializePackageContents();
-
- 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);//$NON-NLS-1$
- initEAttribute(getConnector_VendorName(), ecorePackage.getEString(), "vendorName", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEAttribute(getConnector_SpecVersion(), ecorePackage.getEString(), "specVersion", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEAttribute(getConnector_EisType(), ecorePackage.getEString(), "eisType", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEAttribute(getConnector_Version(), ecorePackage.getEString(), "version", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getConnector_License(), this.getLicense(), null, "license", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getConnector_ResourceAdapter(), this.getResourceAdapter(), null, "resourceAdapter", null, 1, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
-
- initEClass(resourceAdapterEClass, ResourceAdapter.class, "ResourceAdapter", !IS_ABSTRACT, !IS_INTERFACE);//$NON-NLS-1$
- initEAttribute(getResourceAdapter_ManagedConnectionFactoryClass(), ecorePackage.getEString(), "managedConnectionFactoryClass", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEAttribute(getResourceAdapter_ConnectionFactoryInterface(), ecorePackage.getEString(), "connectionFactoryInterface", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEAttribute(getResourceAdapter_ConnectionFactoryImplClass(), ecorePackage.getEString(), "connectionFactoryImplClass", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEAttribute(getResourceAdapter_ConnectionInterface(), ecorePackage.getEString(), "connectionInterface", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEAttribute(getResourceAdapter_ConnectionImplClass(), ecorePackage.getEString(), "connectionImplClass", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEAttribute(getResourceAdapter_TransactionSupport(), this.getTransactionSupportKind(), "transactionSupport", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEAttribute(getResourceAdapter_ReauthenticationSupport(), ecorePackage.getEBoolean(), "reauthenticationSupport", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEAttribute(getResourceAdapter_ResourceAdapterClass(), ecorePackage.getEString(), "resourceAdapterClass", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getResourceAdapter_SecurityPermissions(), this.getSecurityPermission(), null, "securityPermissions", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getResourceAdapter_AuthenticationMechanisms(), this.getAuthenticationMechanism(), null, "authenticationMechanisms", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getResourceAdapter_ConfigProperties(), this.getConfigProperty(), null, "configProperties", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getResourceAdapter_OutboundResourceAdapter(), this.getOutboundResourceAdapter(), null, "outboundResourceAdapter", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getResourceAdapter_InboundResourceAdapter(), this.getInboundResourceAdapter(), null, "inboundResourceAdapter", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getResourceAdapter_AdminObjects(), this.getAdminObject(), null, "adminObjects", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
-
- initEClass(authenticationMechanismEClass, AuthenticationMechanism.class, "AuthenticationMechanism", !IS_ABSTRACT, !IS_INTERFACE);//$NON-NLS-1$
- initEAttribute(getAuthenticationMechanism_Description(), ecorePackage.getEString(), "description", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEAttribute(getAuthenticationMechanism_AuthenticationMechanism(), ecorePackage.getEString(), "authenticationMechanism", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEAttribute(getAuthenticationMechanism_AuthenticationMechanismType(), this.getAuthenticationMechanismType(), "authenticationMechanismType", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEAttribute(getAuthenticationMechanism_CredentialInterface(), ecorePackage.getEString(), "credentialInterface", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEAttribute(getAuthenticationMechanism_CustomAuthMechType(), ecorePackage.getEString(), "customAuthMechType", null, 0, 1, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getAuthenticationMechanism_Descriptions(), theCommonPackage.getDescription(), null, "descriptions", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
-
- initEClass(configPropertyEClass, ConfigProperty.class, "ConfigProperty", !IS_ABSTRACT, !IS_INTERFACE);//$NON-NLS-1$
- initEAttribute(getConfigProperty_Description(), ecorePackage.getEString(), "description", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEAttribute(getConfigProperty_Name(), ecorePackage.getEString(), "name", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEAttribute(getConfigProperty_Type(), ecorePackage.getEString(), "type", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEAttribute(getConfigProperty_Value(), ecorePackage.getEString(), "value", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getConfigProperty_Descriptions(), theCommonPackage.getDescription(), null, "descriptions", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
-
- initEClass(securityPermissionEClass, SecurityPermission.class, "SecurityPermission", !IS_ABSTRACT, !IS_INTERFACE);//$NON-NLS-1$
- initEAttribute(getSecurityPermission_Description(), ecorePackage.getEString(), "description", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEAttribute(getSecurityPermission_Specification(), ecorePackage.getEString(), "specification", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getSecurityPermission_Descriptions(), theCommonPackage.getDescription(), null, "descriptions", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
-
- initEClass(licenseEClass, License.class, "License", !IS_ABSTRACT, !IS_INTERFACE);//$NON-NLS-1$
- initEAttribute(getLicense_Description(), ecorePackage.getEString(), "description", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEAttribute(getLicense_Required(), ecorePackage.getEBoolean(), "required", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getLicense_Descriptions(), theCommonPackage.getDescription(), null, "descriptions", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
-
- initEClass(inboundResourceAdapterEClass, InboundResourceAdapter.class, "InboundResourceAdapter", !IS_ABSTRACT, !IS_INTERFACE);//$NON-NLS-1$
- initEReference(getInboundResourceAdapter_MessageAdapter(), this.getMessageAdapter(), null, "messageAdapter", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
-
- initEClass(outboundResourceAdapterEClass, OutboundResourceAdapter.class, "OutboundResourceAdapter", !IS_ABSTRACT, !IS_INTERFACE);//$NON-NLS-1$
- initEAttribute(getOutboundResourceAdapter_ReauthenticationSupport(), ecorePackage.getEBoolean(), "reauthenticationSupport", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEAttribute(getOutboundResourceAdapter_TransactionSupport(), this.getTransactionSupportKind(), "transactionSupport", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getOutboundResourceAdapter_ConnectionDefinitions(), this.getConnectionDefinition(), null, "connectionDefinitions", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getOutboundResourceAdapter_AuthenticationMechanisms(), this.getAuthenticationMechanism(), null, "authenticationMechanisms", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
-
- initEClass(messageAdapterEClass, MessageAdapter.class, "MessageAdapter", !IS_ABSTRACT, !IS_INTERFACE);//$NON-NLS-1$
- initEReference(getMessageAdapter_MessageListeners(), this.getMessageListener(), null, "messageListeners", null, 1, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
-
- initEClass(connectionDefinitionEClass, ConnectionDefinition.class, "ConnectionDefinition", !IS_ABSTRACT, !IS_INTERFACE);//$NON-NLS-1$
- initEAttribute(getConnectionDefinition_ManagedConnectionFactoryClass(), ecorePackage.getEString(), "managedConnectionFactoryClass", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEAttribute(getConnectionDefinition_ConnectionFactoryInterface(), ecorePackage.getEString(), "connectionFactoryInterface", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEAttribute(getConnectionDefinition_ConnectionFactoryImplClass(), ecorePackage.getEString(), "connectionFactoryImplClass", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEAttribute(getConnectionDefinition_ConnectionInterface(), ecorePackage.getEString(), "connectionInterface", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEAttribute(getConnectionDefinition_ConnectionImplClass(), ecorePackage.getEString(), "connectionImplClass", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getConnectionDefinition_ConfigProperties(), this.getConfigProperty(), null, "configProperties", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
-
- initEClass(adminObjectEClass, AdminObject.class, "AdminObject", !IS_ABSTRACT, !IS_INTERFACE);//$NON-NLS-1$
- initEAttribute(getAdminObject_AdminObjectInterface(), ecorePackage.getEString(), "adminObjectInterface", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEAttribute(getAdminObject_AdminObjectClass(), ecorePackage.getEString(), "adminObjectClass", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getAdminObject_ConfigProperties(), this.getConfigProperty(), null, "configProperties", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
-
- initEClass(messageListenerEClass, MessageListener.class, "MessageListener", !IS_ABSTRACT, !IS_INTERFACE);//$NON-NLS-1$
- initEAttribute(getMessageListener_MessageListenerType(), ecorePackage.getEString(), "messageListenerType", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getMessageListener_ActivationSpec(), this.getActivationSpec(), null, "activationSpec", null, 1, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
-
- initEClass(activationSpecEClass, ActivationSpec.class, "ActivationSpec", !IS_ABSTRACT, !IS_INTERFACE);//$NON-NLS-1$
- initEAttribute(getActivationSpec_ActivationSpecClass(), ecorePackage.getEString(), "activationSpecClass", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getActivationSpec_RequiredConfigProperties(), this.getRequiredConfigPropertyType(), null, "requiredConfigProperties", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
-
- initEClass(requiredConfigPropertyTypeEClass, RequiredConfigPropertyType.class, "RequiredConfigPropertyType", !IS_ABSTRACT, !IS_INTERFACE);//$NON-NLS-1$
- initEAttribute(getRequiredConfigPropertyType_Name(), ecorePackage.getEString(), "name", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getRequiredConfigPropertyType_Descriptions(), theCommonPackage.getDescription(), null, "descriptions", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
-
- // Initialize enums and add enum literals
- initEEnum(authenticationMechanismTypeEEnum, AuthenticationMechanismType.class, "AuthenticationMechanismType");//$NON-NLS-1$
- addEEnumLiteral(authenticationMechanismTypeEEnum, AuthenticationMechanismType.BASIC_PASSWORD_LITERAL);//$NON-NLS-1$
- addEEnumLiteral(authenticationMechanismTypeEEnum, AuthenticationMechanismType.KERBV5_LITERAL);//$NON-NLS-1$
-
- initEEnum(transactionSupportKindEEnum, TransactionSupportKind.class, "TransactionSupportKind");//$NON-NLS-1$
- 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/impl/LicenseImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/impl/LicenseImpl.java
deleted file mode 100644
index 43ab399f1..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/impl/LicenseImpl.java
+++ /dev/null
@@ -1,275 +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.jca.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: ");//$NON-NLS-1$
- result.append(description);
- result.append(", required: ");//$NON-NLS-1$
- if (requiredESet) result.append(required); else result.append("<unset>");//$NON-NLS-1$
- result.append(')');
- return result.toString();
- }
-
-}
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/impl/MessageAdapterImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/impl/MessageAdapterImpl.java
deleted file mode 100644
index fe5d65ff8..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/impl/MessageAdapterImpl.java
+++ /dev/null
@@ -1,154 +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.jca.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.internal.jca.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/impl/MessageListenerImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/impl/MessageListenerImpl.java
deleted file mode 100644
index ca8179892..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/impl/MessageListenerImpl.java
+++ /dev/null
@@ -1,248 +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.jca.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.internal.jca.impl.MessageListenerImpl#getMessageListenerType <em>Message Listener Type</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.jca.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: ");//$NON-NLS-1$
- result.append(messageListenerType);
- result.append(')');
- return result.toString();
- }
-
-} //MessageListenerImpl
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/impl/OutboundResourceAdapterImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/impl/OutboundResourceAdapterImpl.java
deleted file mode 100644
index 219f287cd..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/impl/OutboundResourceAdapterImpl.java
+++ /dev/null
@@ -1,383 +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.jca.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.internal.jca.impl.OutboundResourceAdapterImpl#isReauthenticationSupport <em>Reauthentication Support</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.jca.impl.OutboundResourceAdapterImpl#getTransactionSupport <em>Transaction Support</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.jca.impl.OutboundResourceAdapterImpl#getConnectionDefinitions <em>Connection Definitions</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.jca.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: ");//$NON-NLS-1$
- if (reauthenticationSupportESet) result.append(reauthenticationSupport); else result.append("<unset>");//$NON-NLS-1$
- result.append(", transactionSupport: ");//$NON-NLS-1$
- if (transactionSupportESet) result.append(transactionSupport); else result.append("<unset>");//$NON-NLS-1$
- result.append(')');
- return result.toString();
- }
-
-} //OutboundResourceAdapterImpl
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/impl/RequiredConfigPropertyTypeImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/impl/RequiredConfigPropertyTypeImpl.java
deleted file mode 100644
index 96b7be83b..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/impl/RequiredConfigPropertyTypeImpl.java
+++ /dev/null
@@ -1,223 +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.jca.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.internal.jca.impl.RequiredConfigPropertyTypeImpl#getName <em>Name</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.jca.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: ");//$NON-NLS-1$
- result.append(name);
- result.append(')');
- return result.toString();
- }
-
-} //RequiredConfigPropertyTypeImpl
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/impl/ResourceAdapterImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/impl/ResourceAdapterImpl.java
deleted file mode 100644
index 4990c3be2..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/impl/ResourceAdapterImpl.java
+++ /dev/null
@@ -1,817 +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.jca.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: ");//$NON-NLS-1$
- result.append(managedConnectionFactoryClass);
- result.append(", connectionFactoryInterface: ");//$NON-NLS-1$
- result.append(connectionFactoryInterface);
- result.append(", connectionFactoryImplClass: ");//$NON-NLS-1$
- result.append(connectionFactoryImplClass);
- result.append(", connectionInterface: ");//$NON-NLS-1$
- result.append(connectionInterface);
- result.append(", connectionImplClass: ");//$NON-NLS-1$
- result.append(connectionImplClass);
- result.append(", transactionSupport: ");//$NON-NLS-1$
- if (transactionSupportESet) result.append(transactionSupport); else result.append("<unset>");//$NON-NLS-1$
- result.append(", reauthenticationSupport: ");//$NON-NLS-1$
- if (reauthenticationSupportESet) result.append(reauthenticationSupport); else result.append("<unset>");//$NON-NLS-1$
- result.append(", resourceAdapterClass: ");//$NON-NLS-1$
- result.append(resourceAdapterClass);
- result.append(')');
- return result.toString();
- }
-
-}
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/impl/SecurityPermissionImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/impl/SecurityPermissionImpl.java
deleted file mode 100644
index d1ce6ae38..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/impl/SecurityPermissionImpl.java
+++ /dev/null
@@ -1,246 +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.jca.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: ");//$NON-NLS-1$
- result.append(description);
- result.append(", specification: ");//$NON-NLS-1$
- result.append(specification);
- result.append(')');
- return result.toString();
- }
-
-}
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/util/JCADescriptionHelper.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/util/JCADescriptionHelper.java
deleted file mode 100644
index 17c2d305f..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/util/JCADescriptionHelper.java
+++ /dev/null
@@ -1,157 +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.jca.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/util/JcaAdapterFactory.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/util/JcaAdapterFactory.java
deleted file mode 100644
index 56757a7b0..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/util/JcaAdapterFactory.java
+++ /dev/null
@@ -1,392 +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.jca.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.internal.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.internal.jca.InboundResourceAdapter
- * @generated
- */
- public Adapter createInboundResourceAdapterAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.internal.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.internal.jca.OutboundResourceAdapter
- * @generated
- */
- public Adapter createOutboundResourceAdapterAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.internal.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.internal.jca.MessageAdapter
- * @generated
- */
- public Adapter createMessageAdapterAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.internal.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.internal.jca.ConnectionDefinition
- * @generated
- */
- public Adapter createConnectionDefinitionAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.internal.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.internal.jca.AdminObject
- * @generated
- */
- public Adapter createAdminObjectAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.internal.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.internal.jca.MessageListener
- * @generated
- */
- public Adapter createMessageListenerAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.internal.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.internal.jca.ActivationSpec
- * @generated
- */
- public Adapter createActivationSpecAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.internal.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.internal.jca.RequiredConfigPropertyType
- * @generated
- */
- public Adapter createRequiredConfigPropertyTypeAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.internal.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.internal.common.DescriptionGroup
- * @generated
- */
- public Adapter createDescriptionGroupAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.internal.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.internal.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/util/JcaSwitch.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/util/JcaSwitch.java
deleted file mode 100644
index c9e699cc7..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jca/util/JcaSwitch.java
+++ /dev/null
@@ -1,427 +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.jca.util;
-
-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.internal.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) {
- EClass theEClass = theEObject.eClass();
- if (theEClass.eContainer() == modelPackage) {
- switch (theEClass.getClassifierID()) {
- 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);
- }
- }
- 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/jsp/JSPConfig.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jsp/JSPConfig.java
deleted file mode 100644
index 5c3ad75e4..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, 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.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 -->
- * @since 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.internal.jsp.JSPConfig#getTagLibs <em>Tag Libs</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.jsp.JSPConfig#getPropertyGroups <em>Property Groups</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.jst.j2ee.internal.jsp.JspPackage#getJSPConfig()
- * @model
- * @generated
- */
-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.internal.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.internal.jsp.JspPackage#getJSPConfig_TagLibs()
- * @model type="org.eclipse.jst.j2ee.internal.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.internal.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.internal.jsp.JspPackage#getJSPConfig_PropertyGroups()
- * @model type="org.eclipse.jst.j2ee.internal.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 416f68dda..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, 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.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 -->
- * @since 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.internal.jsp.JSPPropertyGroup#getUrlPattern <em>Url Pattern</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.jsp.JSPPropertyGroup#isElIgnored <em>El Ignored</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.jsp.JSPPropertyGroup#getPageEncoding <em>Page Encoding</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.jsp.JSPPropertyGroup#isScriptingInvalid <em>Scripting Invalid</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.jsp.JSPPropertyGroup#isIsXML <em>Is XML</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.jsp.JSPPropertyGroup#getIncludePreludes <em>Include Preludes</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.jsp.JSPPropertyGroup#getIncludeCodas <em>Include Codas</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.jst.j2ee.internal.jsp.JspPackage#getJSPPropertyGroup()
- * @model
- * @generated
- */
-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.internal.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.internal.jsp.JspPackage#getJSPPropertyGroup_ElIgnored()
- * @model default="true" unsettable="true"
- * @generated
- */
- boolean isElIgnored();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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.internal.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.internal.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.internal.jsp.JspPackage#getJSPPropertyGroup_PageEncoding()
- * @model
- * @generated
- */
- String getPageEncoding();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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.internal.jsp.JspPackage#getJSPPropertyGroup_ScriptingInvalid()
- * @model default="true" unsettable="true"
- * @generated
- */
- boolean isScriptingInvalid();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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.internal.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.internal.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.internal.jsp.JspPackage#getJSPPropertyGroup_IsXML()
- * @model default="false" unsettable="true"
- * @generated
- */
- boolean isIsXML();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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.internal.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.internal.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.internal.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.internal.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 ed50d0a71..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jsp/JspFactory.java
+++ /dev/null
@@ -1,68 +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.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.internal.jsp.JspPackage
- * @generated
- */
-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.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 -->
- * <!-- 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 a1fcce4de..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jsp/JspPackage.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
- *******************************************************************************/
-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>
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.j2ee.internal.jsp.JspFactory
- * @generated
- */
-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.internal.jsp";//$NON-NLS-1$
-
- /**
- * The singleton instance of the package.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- JspPackage eINSTANCE = org.eclipse.jst.j2ee.jsp.impl.JspPackageImpl.init();
-
- /**
- * The meta object id for the '{@link org.eclipse.jst.j2ee.internal.jsp.impl.JSPConfigImpl <em>JSP Config</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.j2ee.internal.jsp.impl.JSPConfigImpl
- * @see org.eclipse.jst.j2ee.internal.jsp.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.internal.jsp.impl.JSPPropertyGroupImpl <em>JSP Property Group</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.j2ee.internal.jsp.impl.JSPPropertyGroupImpl
- * @see org.eclipse.jst.j2ee.internal.jsp.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.internal.jsp.impl.TagLibRefTypeImpl <em>Tag Lib Ref Type</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.j2ee.internal.jsp.impl.TagLibRefTypeImpl
- * @see org.eclipse.jst.j2ee.internal.jsp.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.internal.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.internal.jsp.JSPConfig
- * @generated
- */
- EClass getJSPConfig();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.internal.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.internal.jsp.JSPConfig#getTagLibs()
- * @see #getJSPConfig()
- * @generated
- */
- EReference getJSPConfig_TagLibs();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.internal.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.internal.jsp.JSPConfig#getPropertyGroups()
- * @see #getJSPConfig()
- * @generated
- */
- EReference getJSPConfig_PropertyGroups();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.jst.j2ee.internal.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.internal.jsp.JSPPropertyGroup
- * @generated
- */
- EClass getJSPPropertyGroup();
-
- /**
- * Returns the meta object for the attribute list '{@link org.eclipse.jst.j2ee.internal.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.internal.jsp.JSPPropertyGroup#getUrlPattern()
- * @see #getJSPPropertyGroup()
- * @generated
- */
- EAttribute getJSPPropertyGroup_UrlPattern();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.internal.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.internal.jsp.JSPPropertyGroup#isElIgnored()
- * @see #getJSPPropertyGroup()
- * @generated
- */
- EAttribute getJSPPropertyGroup_ElIgnored();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.internal.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.internal.jsp.JSPPropertyGroup#getPageEncoding()
- * @see #getJSPPropertyGroup()
- * @generated
- */
- EAttribute getJSPPropertyGroup_PageEncoding();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.internal.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.internal.jsp.JSPPropertyGroup#isScriptingInvalid()
- * @see #getJSPPropertyGroup()
- * @generated
- */
- EAttribute getJSPPropertyGroup_ScriptingInvalid();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.internal.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.internal.jsp.JSPPropertyGroup#isIsXML()
- * @see #getJSPPropertyGroup()
- * @generated
- */
- EAttribute getJSPPropertyGroup_IsXML();
-
- /**
- * Returns the meta object for the attribute list '{@link org.eclipse.jst.j2ee.internal.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.internal.jsp.JSPPropertyGroup#getIncludePreludes()
- * @see #getJSPPropertyGroup()
- * @generated
- */
- EAttribute getJSPPropertyGroup_IncludePreludes();
-
- /**
- * Returns the meta object for the attribute list '{@link org.eclipse.jst.j2ee.internal.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.internal.jsp.JSPPropertyGroup#getIncludeCodas()
- * @see #getJSPPropertyGroup()
- * @generated
- */
- EAttribute getJSPPropertyGroup_IncludeCodas();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.jst.j2ee.internal.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.internal.jsp.TagLibRefType
- * @generated
- */
- EClass getTagLibRefType();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.internal.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.internal.jsp.TagLibRefType#getTaglibURI()
- * @see #getTagLibRefType()
- * @generated
- */
- EAttribute getTagLibRefType_TaglibURI();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.internal.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.internal.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 206aee913..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, 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.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 -->
- * @since 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.internal.jsp.TagLibRefType#getTaglibURI <em>Taglib URI</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.jsp.TagLibRefType#getTaglibLocation <em>Taglib Location</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.jst.j2ee.internal.jsp.JspPackage#getTagLibRefType()
- * @model
- * @generated
- */
-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.internal.jsp.JspPackage#getTagLibRefType_TaglibURI()
- * @model
- * @generated
- */
- String getTaglibURI();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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.internal.jsp.JspPackage#getTagLibRefType_TaglibLocation()
- * @model
- * @generated
- */
- String getTaglibLocation();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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/impl/JSPConfigImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jsp/impl/JSPConfigImpl.java
deleted file mode 100644
index 0e7f76e34..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jsp/impl/JSPConfigImpl.java
+++ /dev/null
@@ -1,191 +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.jsp.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.internal.jsp.impl.JSPConfigImpl#getTagLibs <em>Tag Libs</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.jsp.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/impl/JSPPropertyGroupImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jsp/impl/JSPPropertyGroupImpl.java
deleted file mode 100644
index 0fb32b613..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jsp/impl/JSPPropertyGroupImpl.java
+++ /dev/null
@@ -1,637 +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.jsp.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.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.internal.jsp.impl.JSPPropertyGroupImpl#getUrlPattern <em>Url Pattern</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.jsp.impl.JSPPropertyGroupImpl#isElIgnored <em>El Ignored</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.jsp.impl.JSPPropertyGroupImpl#getPageEncoding <em>Page Encoding</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.jsp.impl.JSPPropertyGroupImpl#isScriptingInvalid <em>Scripting Invalid</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.jsp.impl.JSPPropertyGroupImpl#isIsXML <em>Is XML</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.jsp.impl.JSPPropertyGroupImpl#getIncludePreludes <em>Include Preludes</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.jsp.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: ");//$NON-NLS-1$
- result.append(urlPattern);
- result.append(", elIgnored: ");//$NON-NLS-1$
- if (elIgnoredESet) result.append(elIgnored); else result.append("<unset>");//$NON-NLS-1$
- result.append(", pageEncoding: ");//$NON-NLS-1$
- result.append(pageEncoding);
- result.append(", scriptingInvalid: ");//$NON-NLS-1$
- if (scriptingInvalidESet) result.append(scriptingInvalid); else result.append("<unset>");//$NON-NLS-1$
- result.append(", isXML: ");//$NON-NLS-1$
- if (isXMLESet) result.append(isXML); else result.append("<unset>");//$NON-NLS-1$
- result.append(", includePreludes: ");//$NON-NLS-1$
- result.append(includePreludes);
- result.append(", includeCodas: ");//$NON-NLS-1$
- result.append(includeCodas);
- result.append(')');
- return result.toString();
- }
-
-} //JSPPropertyGroupImpl
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jsp/impl/JspFactoryImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jsp/impl/JspFactoryImpl.java
deleted file mode 100644
index 2cb253e9d..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jsp/impl/JspFactoryImpl.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.jsp.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 and 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"); //$NON-NLS-1$ //$NON-NLS-2$
- }
- }
-
- /**
- * <!-- 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/impl/JspPackageImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jsp/impl/JspPackageImpl.java
deleted file mode 100644
index 22bf9ff62..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jsp/impl/JspPackageImpl.java
+++ /dev/null
@@ -1,398 +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.jsp.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.impl.JavaRefPackageImpl;
-import org.eclipse.jst.j2ee.application.ApplicationPackage;
-import org.eclipse.jst.j2ee.application.impl.ApplicationPackageImpl;
-import org.eclipse.jst.j2ee.client.ClientPackage;
-import org.eclipse.jst.j2ee.client.impl.ClientPackageImpl;
-import org.eclipse.jst.j2ee.common.CommonPackage;
-import org.eclipse.jst.j2ee.common.impl.CommonPackageImpl;
-import org.eclipse.jst.j2ee.ejb.EjbPackage;
-import org.eclipse.jst.j2ee.ejb.impl.EjbPackageImpl;
-import org.eclipse.jst.j2ee.jca.JcaPackage;
-import org.eclipse.jst.j2ee.jca.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.TaglibPackage;
-import org.eclipse.jst.j2ee.taglib.impl.TaglibPackageImpl;
-import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage;
-import org.eclipse.jst.j2ee.webapplication.impl.WebapplicationPackageImpl;
-import org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientPackage;
-import org.eclipse.jst.j2ee.webservice.wsclient.impl.Webservice_clientPackageImpl;
-import org.eclipse.jst.j2ee.webservice.wscommon.WscommonPackage;
-import org.eclipse.jst.j2ee.webservice.wscommon.impl.WscommonPackageImpl;
-import org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage;
-import org.eclipse.jst.j2ee.webservice.wsdd.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.internal.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 EPackage ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new JspPackageImpl());
-
- isInited = true;
-
- // Initialize simple dependencies
- EcorePackageImpl.init();
- JavaRefPackageImpl.init();
-
- // Obtain or create and register interdependencies
- EjbPackageImpl theEjbPackage = (EjbPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(EjbPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(EjbPackage.eNS_URI) : EjbPackage.eINSTANCE);
- TaglibPackageImpl theTaglibPackage = (TaglibPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(TaglibPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(TaglibPackage.eNS_URI) : TaglibPackage.eINSTANCE);
- ApplicationPackageImpl theApplicationPackage = (ApplicationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ApplicationPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(ApplicationPackage.eNS_URI) : ApplicationPackage.eINSTANCE);
- WscommonPackageImpl theWscommonPackage = (WscommonPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(WscommonPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(WscommonPackage.eNS_URI) : WscommonPackage.eINSTANCE);
- ClientPackageImpl theClientPackage = (ClientPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ClientPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(ClientPackage.eNS_URI) : ClientPackage.eINSTANCE);
- JcaPackageImpl theJcaPackage = (JcaPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(JcaPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(JcaPackage.eNS_URI) : JcaPackage.eINSTANCE);
- Webservice_clientPackageImpl theWebservice_clientPackage = (Webservice_clientPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(Webservice_clientPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(Webservice_clientPackage.eNS_URI) : Webservice_clientPackage.eINSTANCE);
- WebapplicationPackageImpl theWebapplicationPackage = (WebapplicationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(WebapplicationPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(WebapplicationPackage.eNS_URI) : WebapplicationPackage.eINSTANCE);
- WsddPackageImpl theWsddPackage = (WsddPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(WsddPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(WsddPackage.eNS_URI) : WsddPackage.eINSTANCE);
- CommonPackageImpl theCommonPackage = (CommonPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI) : CommonPackage.eINSTANCE);
-
- // Step 1: create meta-model objects
- theJspPackage.createPackageContents();
- theEjbPackage.createPackageContents();
- theTaglibPackage.createPackageContents();
- theApplicationPackage.createPackageContents();
- theWscommonPackage.createPackageContents();
- theClientPackage.createPackageContents();
- theJcaPackage.createPackageContents();
- theWebservice_clientPackage.createPackageContents();
- theWebapplicationPackage.createPackageContents();
- theWsddPackage.createPackageContents();
- theCommonPackage.createPackageContents();
-
- // Step 2: complete initialization
- theJspPackage.initializePackageContents();
- theEjbPackage.initializePackageContents();
- theTaglibPackage.initializePackageContents();
- theApplicationPackage.initializePackageContents();
- theWscommonPackage.initializePackageContents();
- theClientPackage.initializePackageContents();
- theJcaPackage.initializePackageContents();
- theWebservice_clientPackage.initializePackageContents();
- theWebapplicationPackage.initializePackageContents();
- theWsddPackage.initializePackageContents();
- theCommonPackage.initializePackageContents();
-
- 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);//$NON-NLS-1$
- initEReference(getJSPConfig_TagLibs(), this.getTagLibRefType(), null, "tagLibs", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getJSPConfig_PropertyGroups(), this.getJSPPropertyGroup(), null, "propertyGroups", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
-
- initEClass(jspPropertyGroupEClass, JSPPropertyGroup.class, "JSPPropertyGroup", !IS_ABSTRACT, !IS_INTERFACE);//$NON-NLS-1$
- initEAttribute(getJSPPropertyGroup_UrlPattern(), ecorePackage.getEString(), "urlPattern", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEAttribute(getJSPPropertyGroup_ElIgnored(), ecorePackage.getEBoolean(), "elIgnored", "true", 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$ //$NON-NLS-2$
- initEAttribute(getJSPPropertyGroup_PageEncoding(), ecorePackage.getEString(), "pageEncoding", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEAttribute(getJSPPropertyGroup_ScriptingInvalid(), ecorePackage.getEBoolean(), "scriptingInvalid", "true", 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$ //$NON-NLS-2$
- initEAttribute(getJSPPropertyGroup_IsXML(), ecorePackage.getEBoolean(), "isXML", "false", 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$ //$NON-NLS-2$
- initEAttribute(getJSPPropertyGroup_IncludePreludes(), ecorePackage.getEString(), "includePreludes", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEAttribute(getJSPPropertyGroup_IncludeCodas(), ecorePackage.getEString(), "includeCodas", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
-
- initEClass(tagLibRefTypeEClass, TagLibRefType.class, "TagLibRefType", !IS_ABSTRACT, !IS_INTERFACE);//$NON-NLS-1$
- initEAttribute(getTagLibRefType_TaglibURI(), ecorePackage.getEString(), "taglibURI", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEAttribute(getTagLibRefType_TaglibLocation(), ecorePackage.getEString(), "taglibLocation", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
-
- // Create resource
- createResource(eNS_URI);
- }
-} //JspPackageImpl
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jsp/impl/TagLibRefTypeImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jsp/impl/TagLibRefTypeImpl.java
deleted file mode 100644
index 8b253bf2c..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jsp/impl/TagLibRefTypeImpl.java
+++ /dev/null
@@ -1,218 +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.jsp.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.internal.jsp.impl.TagLibRefTypeImpl#getTaglibURI <em>Taglib URI</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.jsp.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: ");//$NON-NLS-1$
- result.append(taglibURI);
- result.append(", taglibLocation: ");//$NON-NLS-1$
- result.append(taglibLocation);
- result.append(')');
- return result.toString();
- }
-
-} //TagLibRefTypeImpl
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jsp/util/JspAdapterFactory.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jsp/util/JspAdapterFactory.java
deleted file mode 100644
index b25f2e512..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jsp/util/JspAdapterFactory.java
+++ /dev/null
@@ -1,196 +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.jsp.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.internal.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.internal.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.internal.jsp.JSPConfig
- * @generated
- */
- public Adapter createJSPConfigAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.internal.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.internal.jsp.JSPPropertyGroup
- * @generated
- */
- public Adapter createJSPPropertyGroupAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.internal.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.internal.jsp.TagLibRefType
- * @generated
- */
- public Adapter createTagLibRefTypeAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.internal.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.internal.common.DescriptionGroup
- * @generated
- */
- public Adapter createDescriptionGroupAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.internal.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.internal.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/util/JspSwitch.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jsp/util/JspSwitch.java
deleted file mode 100644
index 8c3363eb5..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/jsp/util/JspSwitch.java
+++ /dev/null
@@ -1,184 +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.jsp.util;
-
-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.internal.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) {
- EClass theEClass = theEObject.eClass();
- if (theEClass.eContainer() == modelPackage) {
- switch (theEClass.getClassifierID()) {
- 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);
- }
- }
- 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/migration/Connector14SpecificationMigrator.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/migration/Connector14SpecificationMigrator.java
deleted file mode 100644
index 091868a0a..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/migration/Connector14SpecificationMigrator.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
- *******************************************************************************/
-/*
- * Created on Mar 31, 2004
- *
- * To change the template for this generated file go to
- * Window - Preferences - Java - Code Generation - Code and Comments
- */
-package org.eclipse.jst.j2ee.migration;
-
-import java.util.List;
-
-import org.eclipse.jst.j2ee.common.CommonFactory;
-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.ConfigProperty;
-import org.eclipse.jst.j2ee.jca.ConnectionDefinition;
-import org.eclipse.jst.j2ee.jca.Connector;
-import org.eclipse.jst.j2ee.jca.JcaFactory;
-import org.eclipse.jst.j2ee.jca.OutboundResourceAdapter;
-import org.eclipse.jst.j2ee.jca.ResourceAdapter;
-import org.eclipse.jst.j2ee.jca.SecurityPermission;
-
-
-/**
- * To change the template for this generated type comment go to
- * Window - Preferences - Java - Code Generation - Code and Comments
- */
-public class Connector14SpecificationMigrator {
- /**
- * @param connector
- */
- public J2EEMigrationStatus migrateConnectorTo14(Connector connector) {
- migrateResourceAdaptor(connector);
- return new J2EEMigrationStatus(J2EEMigrationStatus.COMPLETED_OK,(
- new J2EEMigrationStatus()).format(J2EESpecificationMigrator.DEFAULT_COMPLETED_STATUS_MSG,connector.getDisplayName()));
- }
-
- /**
- * @param connector
- */
- private void migrateResourceAdaptor(Connector connector) {
- ResourceAdapter resAdaptor = connector.getResourceAdapter();
- if(resAdaptor != null) {
- OutboundResourceAdapter outboundAdaptor = JcaFactory.eINSTANCE.createOutboundResourceAdapter();
- outboundAdaptor.setReauthenticationSupport(resAdaptor.isReauthenticationSupport());
- outboundAdaptor.setTransactionSupport(resAdaptor.getTransactionSupport());
-
- ConnectionDefinition connDefinition = JcaFactory.eINSTANCE.createConnectionDefinition();
- connDefinition.setManagedConnectionFactoryClass(resAdaptor.getManagedConnectionFactoryClass());
- connDefinition.setConnectionFactoryInterface(resAdaptor.getConnectionFactoryInterface());
- connDefinition.setConnectionFactoryImplClass(resAdaptor.getConnectionFactoryImplClass());
- connDefinition.setConnectionInterface(resAdaptor.getConnectionInterface());
- connDefinition.setConnectionImplClass(resAdaptor.getConnectionImplClass());
-
- outboundAdaptor.getConnectionDefinitions().add(connDefinition);
-
- resAdaptor.setOutboundResourceAdapter(outboundAdaptor);
-
- migrateAuthenticationMechanism(resAdaptor);
-
- migrateDescriptions(resAdaptor);
-
- }
- }
- /**
- * @param resAdaptor
- */
- private void migrateDescriptions(ResourceAdapter resAdaptor) {
- List secPermissions = resAdaptor.getSecurityPermissions();
- if(!secPermissions.isEmpty()) {
- for(int i = 0; i < secPermissions.size(); i++) {
- SecurityPermission secPerm = (SecurityPermission)secPermissions.get(i);
- String secDescription = secPerm.getDescription();
- if(secDescription != null && secDescription.length() > 0) {
- Description description = CommonFactory.eINSTANCE.createDescription();
- description.setValue(secDescription);
- secPerm.getDescriptions().add(description);
- }
-
- }
- }
- List authMechanisms = resAdaptor.getAuthenticationMechanisms();
- if(!authMechanisms.isEmpty()) {
- for(int i = 0 ; i < authMechanisms.size(); i++) {
- AuthenticationMechanism authMech = (AuthenticationMechanism)authMechanisms.get(i);
- String authDescrition = authMech.getDescription();
- if(authDescrition != null && authDescrition.length() > 0) {
- Description description = CommonFactory.eINSTANCE.createDescription();
- description.setValue(authDescrition);
- authMech.getDescriptions().add(description);
- }
- }
- }
- List configProps = resAdaptor.getConfigProperties();
- if(!configProps.isEmpty()) {
- for(int i = 0; i < configProps.size(); i++) {
- ConfigProperty configProp = (ConfigProperty)configProps.get(i);
- String configDescription = configProp.getDescription();
- if(configDescription != null && configDescription.length() > 0) {
- Description description = CommonFactory.eINSTANCE.createDescription();
- description.setValue(configDescription);
- configProp.getDescriptions().add(description);
- }
- }
- }
- }
- /**
- * @param resAdaptor
- */
- private void migrateAuthenticationMechanism(ResourceAdapter resAdaptor) {
- List authMechanisms = resAdaptor.getAuthenticationMechanisms();
- for (int i = 0; i < authMechanisms.size(); i++) {
- AuthenticationMechanism authMech = (AuthenticationMechanism)authMechanisms.get(i);
- AuthenticationMechanismType authType = authMech.getAuthenticationMechanismType();
- if(authType != null) {
- authMech.setAuthenticationMechanism(authType.getName());
- } else {
- String customAuth = authMech.getCustomAuthMechType();
- if(customAuth != null && customAuth.length() > 0) {
- authMech.setAuthenticationMechanism(customAuth);
- }
- }
- }
- }
-}
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/migration/J2EEMigrationMultiStatus.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/migration/J2EEMigrationMultiStatus.java
deleted file mode 100644
index ae44238aa..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/migration/J2EEMigrationMultiStatus.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.migration;
-
-/**
- * @author DABERG
- */
-public class J2EEMigrationMultiStatus extends J2EEMigrationStatus {
- private J2EEMigrationStatus[] children = new J2EEMigrationStatus[0];
-
- public void add(J2EEMigrationStatus status) {
- J2EEMigrationStatus[] result =
- new J2EEMigrationStatus[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(J2EEMigrationStatus status) {
- if (status == null)
- return;
- J2EEMigrationStatus[] statuses = status.getChildren();
- for (int i = 0; i < statuses.length; i++) {
- add(statuses[i]);
- }
- }
-
- public J2EEMigrationStatus[] 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(J2EEMigrationStatus 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.J2EEMigrationStatus#append(J2EEMigrationStatus)
- */
- public J2EEMigrationStatus append(J2EEMigrationStatus 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/migration/J2EEMigrationStatus.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/migration/J2EEMigrationStatus.java
deleted file mode 100644
index 6f68ceb07..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/migration/J2EEMigrationStatus.java
+++ /dev/null
@@ -1,232 +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.migration;
-
-import java.text.MessageFormat;
-
-import org.eclipse.emf.ecore.ENamedElement;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.jst.j2ee.common.XMLResource;
-
-
-/**
- * @author DABERG
- *
- */
-public class J2EEMigrationStatus implements J2EESpecificationMigrationConstants {
-
- 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 J2EEMigrationStatus OK_STATUS = new J2EEMigrationStatus(COMPLETED_OK, "");
-
- private static final J2EEMigrationStatus[] EmptyStatusArray = new J2EEMigrationStatus[0];
-
- private int severity;
- private String message;
- private XMLResource resource;
- private EObject targetObject;
-
- J2EEMigrationStatus() {
- }
-
- public J2EEMigrationStatus(int aSeverity, String aMessage) {
- this(aSeverity, (EObject)null, aMessage);
- }
- public J2EEMigrationStatus(int aSeverity, XMLResource xmlResource) {
- this(aSeverity, xmlResource, null);
- }
-
- public J2EEMigrationStatus(int aSeverity, EObject anObject) {
- this(aSeverity, anObject, null);
- }
-
- public J2EEMigrationStatus(int aSeverity, XMLResource xmlResource, String aMessage) {
- severity = aSeverity;
- resource = xmlResource;
- message = aMessage;
- }
-
- public J2EEMigrationStatus(int aSeverity, EObject anObject, String aMessage) {
- severity = aSeverity;
- targetObject = anObject;
- message = aMessage;
- }
-
- protected 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 J2EEMigrationStatus[] 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 J2EEMigrationStatus append(J2EEMigrationStatus aStatus) {
- if (aStatus == null)
- return this;
- J2EEMigrationMultiStatus multi = new J2EEMigrationMultiStatus();
- multi.merge(this);
- multi.merge(aStatus);
- return multi;
- }
-}
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/migration/J2EESpecificationMigrationConstants.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/migration/J2EESpecificationMigrationConstants.java
deleted file mode 100644
index efbdb64c3..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/migration/J2EESpecificationMigrationConstants.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.migration;
-
-import org.eclipse.jst.j2ee.internal.MOFJ2EEResourceHandler;
-
-
-public interface J2EESpecificationMigrationConstants {
- 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.getString("DEFAULT_COMPLETED_STATUS_MSG"); //$NON-NLS-1$
- String DEFAULT_NOT_NEEDED_STATUS_MSG = MOFJ2EEResourceHandler.getString("DEFAULT_NOT_NEEDED_STATUS_MSG"); //$NON-NLS-1$
- String DEFAULT_NOT_POSSIBLE_STATUS_MSG = MOFJ2EEResourceHandler.getString("DEFAULT_NOT_POSSIBLE_STATUS_MSG"); //$NON-NLS-1$
- String DEFAULT_ERROR_STATUS_MSG = MOFJ2EEResourceHandler.getString("DEFAULT_ERROR_STATUS_MSG"); //$NON-NLS-1$
-
- String REMOVED_LOCAL_CLIENT_MSG = MOFJ2EEResourceHandler.getString("REMOVED_LOCAL_CLIENT_MSG"); //$NON-NLS-1$
- String REMOVED_ACCESS_INTENTS_MSG = MOFJ2EEResourceHandler.getString("REMOVED_ACCESS_INTENTS_MSG"); //$NON-NLS-1$
- String REMOVED_ISOLATION_LEVELS_MSG = MOFJ2EEResourceHandler.getString("REMOVED_ISOLATION_LEVELS_MSG"); //$NON-NLS-1$
- String CONVERTED_FINDER_MSG = MOFJ2EEResourceHandler.getString("CONVERTED_FINDER_MSG"); //$NON-NLS-1$
- String UNNAMED_EJB = MOFJ2EEResourceHandler.getString("UNNAMED_EJB"); //$NON-NLS-1$
- String CONVERTED_QUERY_DESCRIPTION = MOFJ2EEResourceHandler.getString("CONVERTED_QUERY_DESCRIPTION"); //$NON-NLS-1$
- String MIGRATED_DEFAULT_DATASOURCE_JAR_MSG = MOFJ2EEResourceHandler.getString("MIGRATED_DEFAULT_DATASOURCE_JAR_MSG"); //$NON-NLS-1$
- String MIGRATED_DEFAULT_DATASOURCE_MSG = MOFJ2EEResourceHandler.getString("MIGRATED_DEFAULT_DATASOURCE_MSG"); //$NON-NLS-1$
- String ERROR_TEXT = MOFJ2EEResourceHandler.getString("ERROR"); //$NON-NLS-1$
- String WARNING_TEXT = MOFJ2EEResourceHandler.getString("WARNING"); //$NON-NLS-1$
- String INFO_TEXT = MOFJ2EEResourceHandler.getString("INFO"); //$NON-NLS-1$
-}
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/migration/J2EESpecificationMigrator.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/migration/J2EESpecificationMigrator.java
deleted file mode 100644
index a92e66623..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/migration/J2EESpecificationMigrator.java
+++ /dev/null
@@ -1,484 +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.migration;
-
-import java.text.MessageFormat;
-import java.util.HashMap;
-import java.util.List;
-
-import org.eclipse.emf.common.util.TreeIterator;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.EPackage;
-import org.eclipse.jem.java.JavaHelpers;
-import org.eclipse.jem.java.JavaRefFactory;
-import org.eclipse.jst.j2ee.application.ApplicationResource;
-import org.eclipse.jst.j2ee.client.ApplicationClientResource;
-import org.eclipse.jst.j2ee.common.CommonPackage;
-import org.eclipse.jst.j2ee.common.XMLResource;
-import org.eclipse.jst.j2ee.common.impl.CompatibilityDescriptionGroupImpl;
-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.ContainerManagedEntity;
-import org.eclipse.jst.j2ee.ejb.DestinationType;
-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.MessageDriven;
-import org.eclipse.jst.j2ee.ejb.MessageDrivenDestination;
-import org.eclipse.jst.j2ee.ejb.MethodElement;
-import org.eclipse.jst.j2ee.ejb.QueryMethod;
-import org.eclipse.jst.j2ee.ejb.SubscriptionDurabilityKind;
-import org.eclipse.jst.j2ee.ejb.impl.EjbFactoryImpl;
-import org.eclipse.jst.j2ee.internal.J2EEConstants;
-import org.eclipse.jst.j2ee.internal.J2EEVersionConstants;
-import org.eclipse.jst.j2ee.jca.ConnectorResource;
-import org.eclipse.jst.j2ee.webapplication.WebAppResource;
-
-import com.ibm.wtp.common.logger.proxy.Logger;
-
-/**
- * @author DABERG
- *
- * This class is used to migrate J2EE specific objects from one
- * J2EE version to another.
- */
-public class J2EESpecificationMigrator extends SpecificationMigrator implements J2EEConstants, J2EESpecificationMigrationConstants {
-
-
- /**
- * Public constructor for migrating a single ejb
- */
- public J2EESpecificationMigrator(String aVersion, boolean complex) {
- super(aVersion, complex);
- }
-
- /**
- * Public constructor for migrating the entire deployment descriptor
- */
- public J2EESpecificationMigrator(XMLResource anXmlResource, String aVersion, boolean complex) {
- super(anXmlResource, aVersion, complex);
- }
-
- protected QueryMethod convertMethodElementToQueryMethod(MethodElement me) {
- QueryMethod queryMethod = ((EjbPackage)EPackage.Registry.INSTANCE.getEPackage(EjbPackage.eNS_URI)).getEjbFactory().createQueryMethod();
- queryMethod.setParms(me.getParms());
- queryMethod.setName(me.getName());
- return queryMethod;
- }
- protected void ensureBeanVersionsSet(EJBJar jar) {
- if (jar != null) {
- List beans = jar.getEnterpriseBeans();
- int size = beans.size();
- EnterpriseBean bean;
- for (int i = 0; i < size; i++) {
- bean = (EnterpriseBean) beans.get(i);
- if (bean.isContainerManagedEntity() && ((ContainerManagedEntity)bean).isVersion1_X())
- ((ContainerManagedEntity)bean).setVersion(ContainerManagedEntity.VERSION_1_X);
- }
- }
- }
- protected String format(String aPattern, String arg1) {
- return MessageFormat.format(aPattern, new String[]{arg1});
- }
- protected String format(String aPattern, String arg1, String arg2) {
- return MessageFormat.format(aPattern, new String[]{arg1, arg2});
- }
- protected J2EEMigrationStatus getMigrateToLowerLevelStatus(EJBJar ejbJar) {
- J2EEMigrationStatus status = null, beanStatus;
- if (ejbJar != null) {
- List beans = ejbJar.getEnterpriseBeans();
- int size = beans.size();
- EnterpriseBean bean;
- for (int i = 0; i < size; i++) {
- bean = (EnterpriseBean) beans.get(i);
- beanStatus = getMigrateToLowerLevelStatus(bean);
- if (status == null)
- status = beanStatus;
- else
- status = status.append(beanStatus);
- }
- }
- return status;
- }
- protected J2EEMigrationStatus getMigrateToLowerLevelStatus(EnterpriseBean bean) {
- if (bean.isMessageDriven() && isVersion1_2())
- return new J2EEMigrationStatus(J2EEMigrationStatus.NOT_POSSIBLE, bean);
- if (bean.isContainerManagedEntity() && ((ContainerManagedEntity)bean).isVersion2_X() && isVersion1_2())
- return new J2EEMigrationStatus(J2EEMigrationStatus.NOT_POSSIBLE, bean);
- return null;
- }
-
- protected J2EEMigrationStatus migrate(ContainerManagedEntity aCMP) {
- boolean is1_x = aCMP.getVersion().equals(ContainerManagedEntity.VERSION_1_X);
- if (isVersion1_2() && !is1_x)
- return new J2EEMigrationStatus(J2EEMigrationStatus.NOT_POSSIBLE, aCMP);
- else if ((isVersion1_4() || isVersion1_3()) && is1_x) {
- return migrate1_xCMPFor2_0Target(aCMP);
- }
- return new J2EEMigrationStatus(J2EEMigrationStatus.NOT_NEEDED, aCMP);
- }
-
- protected void migrateDescriptionsTo14(XMLResource resource) {
- ((EJBResource)resource).getEJBJar().getDescription();
-
- }
-
-
- protected J2EEMigrationStatus migrateTo13(EnterpriseBean anEJB) {
- if (anEJB != null && getVersion() != null) {
- if (anEJB.isContainerManagedEntity())
- return migrate((ContainerManagedEntity) anEJB);
- return migrateBeanInterfaces(anEJB);
- }
- return new J2EEMigrationStatus(J2EEMigrationStatus.NOT_NEEDED, anEJB);
- }
-
- /**
- * Migrate a 1.1 CMP to a 1.1 CMP in a 2.0 EJB project.
- * Set the cmp-version to 1.x.
- * @param aCMP
- * @return J2EEMigrationStatus
- */
- protected J2EEMigrationStatus migrate1_xCMPFor2_0Target(ContainerManagedEntity aCMP) {
- //This is necessary to force a change in the version so the event is
- //not a TOUCH which will do nothing.
- aCMP.setVersion(ContainerManagedEntity.VERSION_2_X);
- if (!isComplex())
- //reset it if we are not doing full migration
- aCMP.setVersion(ContainerManagedEntity.VERSION_1_X);
- else
- aCMP.setAbstractSchemaName(aCMP.getName());
-
- return new J2EEMigrationStatus(J2EEMigrationStatus.COMPLETED_OK, aCMP);
- }
- protected J2EEMigrationStatus migrateBeanInterfaces(EnterpriseBean anEJB) {
- if (isVersion1_2() && anEJB.getVersionID() >= J2EEVersionConstants.EJB_2_0_ID && anEJB.hasLocalClient()) {
- anEJB.setLocalInterface(null);
- anEJB.setLocalHomeInterface(null);
- return new J2EEMigrationStatus(J2EEMigrationStatus.WARNING, anEJB, format(REMOVED_LOCAL_CLIENT_MSG, anEJB.getName()));
- }
- return new J2EEMigrationStatus(J2EEMigrationStatus.NOT_NEEDED, anEJB);
- }
-
- private J2EEMigrationMultiStatus migrateBeans13(EJBJar jar) {
- J2EEMigrationMultiStatus status = new J2EEMigrationMultiStatus();
- if (jar != null) {
- List beans = jar.getEnterpriseBeans();
- int size = beans.size();
- EnterpriseBean bean;
- for (int i = 0; i < size; i++) {
- bean = (EnterpriseBean) beans.get(i);
- status.merge(migrateTo13(bean));
- }
- }
- return status;
- }
-
- private J2EEMigrationMultiStatus migrateBeans14(EJBJar jar,HashMap beanMap) {
- J2EEMigrationMultiStatus status = new J2EEMigrationMultiStatus();
- if (jar != null) {
- List beans = jar.getEnterpriseBeans();
- int size = beans.size();
- EnterpriseBean bean;
- for (int i = 0; i < size; i++) {
- bean = (EnterpriseBean) beans.get(i);
- status.merge(migrateTo14Bean(bean,beanMap));
- }
- }
- return status;
- }
- /**
- *
- */
- private J2EEMigrationStatus migrateMessageDrivenTo14(MessageDriven anEJB) {
-
- ActivationConfig config = EjbFactoryImpl.getActiveFactory().createActivationConfig();
- ActivationConfigProperty property = null;
- AcknowledgeMode ackMode = anEJB.getAcknowledgeMode();
- String ackModeName = ackMode.getName();
-
- if(ackModeName != null && ackModeName.length() > 0) {
- property = EjbFactoryImpl.getActiveFactory().createActivationConfigProperty();
- property.setName("acknowledgeMode"); property.setValue(ackModeName); //$NON-NLS-1$
- config.getConfigProperties().add(property);
- anEJB.setAcknowledgeMode(null);
- }
-
- MessageDrivenDestination destination = anEJB.getDestination();
- if(destination != null)
- create14Destination(anEJB,destination,config);
-
- String messageSelector = anEJB.getMessageSelector();
-
- if(messageSelector != null && messageSelector.length() > 0) {
- property = EjbFactoryImpl.getActiveFactory().createActivationConfigProperty();
- property.setName("messageSelector"); property.setValue(messageSelector); //$NON-NLS-1$
- config.getConfigProperties().add(property);
- anEJB.setMessageSelector(null);
-
- }
- anEJB.setActivationConfig(config);
-
- return new J2EEMigrationStatus(J2EEMigrationStatus.COMPLETED_OK, anEJB);
- }
-
- /**
- *
- */
- private void create14Destination(MessageDriven bean,MessageDrivenDestination destination,ActivationConfig config ) {
- DestinationType type = destination.getType();
- String typeString = null;
- if (type != null) {
- switch (type.getValue()) {
- case DestinationType.QUEUE :
- typeString = "javax.jms.Queue"; //$NON-NLS-1$
- break;
- case DestinationType.TOPIC :
- typeString = "javax.jms.Topic"; //$NON-NLS-1$
- break;
- }
- }
- JavaHelpers helper = JavaRefFactory.eINSTANCE.reflectType(typeString,bean.eContainer());
- if(helper != null)
- bean.setMessageDestination(helper.getWrapper());
-
- ActivationConfigProperty property = EjbFactoryImpl.getActiveFactory().createActivationConfigProperty();
- property.setName("destinationType"); property.setValue(typeString); //$NON-NLS-1$
- config.getConfigProperties().add(property);
-
- SubscriptionDurabilityKind durability = destination.getSubscriptionDurability();
- String durabilityName = durability.getName();
- if(durabilityName != null && durabilityName.length() > 0) {
- property = EjbFactoryImpl.getActiveFactory().createActivationConfigProperty();
- property.setName("subscriptionDurability"); property.setValue(durabilityName); //$NON-NLS-1$
- config.getConfigProperties().add(property);
- bean.getDestination().setSubscriptionDurability(null);
- }
- }
-
-
- protected J2EEMigrationStatus migrateTo13(ApplicationClientResource appClientResource) {
- if (!basicNeedsToMigrate())
- return new J2EEMigrationStatus(J2EEMigrationStatus.NOT_NEEDED, appClientResource);
- String pubId, sysId;
- boolean isVersion1_3 = isVersion1_3();
- pubId = isVersion1_3 ? APP_CLIENT_PUBLICID_1_3 : APP_CLIENT_PUBLICID_1_2;
- sysId = isVersion1_3 ? APP_CLIENT_SYSTEMID_1_3 : APP_CLIENT_SYSTEMID_1_2;
- appClientResource.setDoctypeValues(pubId, sysId);
- return new J2EEMigrationStatus(J2EEMigrationStatus.COMPLETED_OK, appClientResource);
- }
-
- protected J2EEMigrationStatus migrateTo13(ApplicationResource appResource) {
- if (!basicNeedsToMigrate())
- return new J2EEMigrationStatus(J2EEMigrationStatus.NOT_NEEDED, appResource);
- String pubId, sysId;
- boolean isVersion1_3 = isVersion1_3();
- pubId = isVersion1_3 ? APPLICATION_PUBLICID_1_3 : APPLICATION_PUBLICID_1_2;
- sysId = isVersion1_3 ? APPLICATION_SYSTEMID_1_3 : APPLICATION_SYSTEMID_1_2;
- appResource.setDoctypeValues(pubId, sysId);
- return new J2EEMigrationStatus(J2EEMigrationStatus.COMPLETED_OK, appResource);
- }
-
- protected J2EEMigrationStatus migrateTo13(EJBResource ejbResource) {
- J2EEMigrationStatus status = null;
- boolean b = basicNeedsToMigrate();
- String pubId, sysId;
- boolean isVersion1_3 = isVersion1_3();
- EJBJar jar = ejbResource.getEJBJar();
- if (b) {
- if (!isVersion1_3) {
- status = getMigrateToLowerLevelStatus(jar);
- if (status != null)
- return status;
- }
- ensureBeanVersionsSet(jar);
- pubId = isVersion1_3 ? EJBJAR_PUBLICID_2_0 : EJBJAR_PUBLICID_1_1;
- sysId = isVersion1_3 ? EJBJAR_SYSTEMID_2_0 : EJBJAR_SYSTEMID_1_1;
- ejbResource.setDoctypeValues(pubId, sysId);
- } else {
- status = new J2EEMigrationStatus(J2EEMigrationStatus.NOT_NEEDED, ejbResource);
- }
- boolean notNeeded = status != null;
- status = mergeStatuses(status, migrateBeans13(jar));
- if (!notNeeded)
- status = mergeStatuses(status, new J2EEMigrationStatus(J2EEMigrationStatus.COMPLETED_OK, ejbResource));
- return status;
- }
-
- protected J2EEMigrationStatus migrateTo13(WebAppResource webResource) {
- if (!basicNeedsToMigrate())
- return new J2EEMigrationStatus(J2EEMigrationStatus.NOT_NEEDED, webResource);
- String pubId, sysId;
- boolean isVersion1_3 = isVersion1_3();
- pubId = isVersion1_3 ? WEBAPP_PUBLICID_2_3 : WEBAPP_PUBLICID_2_2;
- sysId = isVersion1_3 ? WEBAPP_SYSTEMID_2_3 : WEBAPP_SYSTEMID_2_2;
- webResource.setDoctypeValues(pubId, sysId);
- return new J2EEMigrationStatus(J2EEMigrationStatus.COMPLETED_OK, webResource);
- }
-
- protected J2EEMigrationStatus migrateTo14(ApplicationClientResource appClientResource) {
- if (!basicNeedsMigrationTo14())
- return new J2EEMigrationStatus(J2EEMigrationStatus.NOT_NEEDED, appClientResource);
- appClientResource.setModuleVersionID(J2EEVersionConstants.J2EE_1_4_ID);
- migrateCompatibilityDescriptionGroup(appClientResource);
- EObject rootObject = appClientResource.getRootObject();
- appClientResource.removePreservingIds(rootObject);
- appClientResource.getContents().remove(rootObject);
- appClientResource.getContents().add(rootObject);
- return new J2EEMigrationStatus(J2EEMigrationStatus.COMPLETED_OK, appClientResource);
- }
-
- protected J2EEMigrationStatus migrateTo14(ApplicationResource appResource) {
- if (!basicNeedsMigrationTo14())
- return new J2EEMigrationStatus(J2EEMigrationStatus.NOT_NEEDED, appResource);
- appResource.setJ2EEVersionID(J2EEVersionConstants.J2EE_1_4_ID);
- migrateCompatibilityDescriptionGroup(appResource);
- EObject rootObject = appResource.getRootObject();
- appResource.removePreservingIds(rootObject);
- appResource.getContents().add(rootObject);
- return new J2EEMigrationStatus(J2EEMigrationStatus.COMPLETED_OK, appResource);
- }
-
- protected J2EEMigrationStatus migrateTo14(ConnectorResource connectorResource) {
- if (!basicNeedsMigrationTo14())
- return new J2EEMigrationStatus(J2EEMigrationStatus.NOT_NEEDED,connectorResource);
- connectorResource.setModuleVersionID(J2EEVersionConstants.JCA_1_5_ID);
- EObject rootObject = connectorResource.getRootObject();
- connectorResource.getContents().remove(rootObject);
- connectorResource.getContents().add(rootObject);
- Connector14SpecificationMigrator migrator = new Connector14SpecificationMigrator();
- J2EEMigrationStatus status = migrator.migrateConnectorTo14(connectorResource.getConnector());
- status = mergeStatuses(status,new J2EEMigrationStatus(J2EEMigrationStatus.COMPLETED_OK,connectorResource));
- return status;
- }
-
- protected J2EEMigrationStatus migrateTo14(EJBResource ejbResource) {
- J2EEMigrationStatus status = null;
- boolean b = basicNeedsMigrationTo14();
- boolean isVersion1_4 = isVersion1_4();
- EJBJar jar = ejbResource.getEJBJar();
- HashMap beanCache = new HashMap();
- if(jar.getVersionID() == EJB_1_1_ID)
- createBeanCache(jar,beanCache);
- if (b) {
- if (!isVersion1_4) {
- status = getMigrateToLowerLevelStatus(jar);
- if (status != null)
- return status;
- }
- ejbResource.setModuleVersionID(J2EEVersionConstants.EJB_2_1_ID);
- migrateCompatibilityDescriptionGroup(ejbResource);
- EObject rootObject = ejbResource.getRootObject();
- ejbResource.removePreservingIds(rootObject);
- ejbResource.getContents().add(rootObject);
-
- } else {
- status = new J2EEMigrationStatus(J2EEMigrationStatus.NOT_NEEDED, ejbResource);
- }
- boolean notNeeded = status != null;
- status = mergeStatuses(status, migrateBeans14(jar,beanCache));
- if (!notNeeded)
- status = mergeStatuses(status, new J2EEMigrationStatus(J2EEMigrationStatus.COMPLETED_OK, ejbResource));
- return status;
- }
-
- protected void migrateCompatibilityDescriptionGroup(XMLResource resource) {
- TreeIterator contents = resource.getAllContents();
- EObject object = null;
- while(contents.hasNext()) {
- object = (EObject) contents.next();
- migrateCompatibilityDescriptionGroup(object);
- }
- }
-
- private static final EClass COMPATIBILITY_DESCRIPTION_GROUP_ECLASS = CommonPackage.eINSTANCE.getCompatibilityDescriptionGroup();
-
- protected void migrateCompatibilityDescriptionGroup(EObject eObj) {
- if(COMPATIBILITY_DESCRIPTION_GROUP_ECLASS.isInstance(eObj)) {
- CompatibilityDescriptionGroupImpl cg = (CompatibilityDescriptionGroupImpl)eObj;
- if(cg.getDisplayNameGen() != null) cg.setDisplayName(cg.getDisplayNameGen());
- if(cg.getDescriptionGen() != null) cg.setDescription(cg.getDescriptionGen());
- if(cg.getLargeIconGen() != null) cg.setLargeIcon(cg.getLargeIconGen());
- if(cg.getSmallIconGen() != null) cg.setSmallIcon(cg.getSmallIconGen());
- }
- }
-
- /**
- * @param jar
- * @param beanCache
- */
- private void createBeanCache(EJBJar jar, HashMap beanCache) {
- List beans = jar.getEnterpriseBeans();
- EnterpriseBean bean;
- for (int i = 0; i < beans.size(); i++) {
- bean = (EnterpriseBean) beans.get(i);
- if (bean.isContainerManagedEntity() && ((ContainerManagedEntity)bean).isVersion1_X())
- beanCache.put(bean,ContainerManagedEntity.VERSION_1_X);
- }
- }
-
- protected J2EEMigrationStatus migrateTo14(WebAppResource webResource) {
- J2EEMigrationStatus status = null;
- try {
- if (!basicNeedsMigrationTo14())
- return new J2EEMigrationStatus(J2EEMigrationStatus.NOT_NEEDED, webResource);
- webResource.setModuleVersionID(J2EEVersionConstants.WEB_2_4_ID);
- migrateCompatibilityDescriptionGroup(webResource);
- EObject rootObject = webResource.getRootObject();
- webResource.removePreservingIds(rootObject);
- webResource.getContents().add(rootObject);
- webResource.saveIfNecessary();
- War14SpecificationMigrator migrator = new War14SpecificationMigrator();
- status = migrator.migrateWebAppTo14(webResource.getWebApp());
- status = mergeStatuses(status,new J2EEMigrationStatus(J2EEMigrationStatus.COMPLETED_OK, webResource));
- return status;
- } catch (Exception e) {
- Logger.getLogger().logError(e);
- }
- return status;
- }
- private J2EEMigrationStatus migrateTo14Bean(EnterpriseBean anEJB,HashMap beanMap) {
- if(!anEJB.isMessageDriven()) {
- if (anEJB != null && getVersion() != null) {
- if (anEJB.isContainerManagedEntity())
- return migrate((ContainerManagedEntity)anEJB,beanMap);
- return migrateBeanInterfaces(anEJB);
- }
- return new J2EEMigrationStatus(J2EEMigrationStatus.NOT_NEEDED, anEJB);
- }
- if(anEJB.isMessageDriven()) {
- return migrateMessageDrivenTo14((MessageDriven)anEJB);
- }
- return new J2EEMigrationStatus(J2EEMigrationStatus.NOT_NEEDED,anEJB);
- }
-
- /**
- * @param entity
- * @param beanMap
- * @return
- */
- protected J2EEMigrationStatus migrate(ContainerManagedEntity aCMP, HashMap beanMap) {
- String versionString = (String)beanMap.get(aCMP);
- boolean is1_x = versionString != null && versionString.equals(ContainerManagedEntity.VERSION_1_X);
- if (isVersion1_2() && !is1_x)
- return new J2EEMigrationStatus(J2EEMigrationStatus.NOT_POSSIBLE, aCMP);
- else if ((isVersion1_4() || isVersion1_3()) && is1_x) {
- return migrate1_xCMPFor2_0Target(aCMP);
- }
- return new J2EEMigrationStatus(J2EEMigrationStatus.NOT_NEEDED, aCMP);
- }
-
-}
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/migration/SpecificationMigrator.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/migration/SpecificationMigrator.java
deleted file mode 100644
index 25693ce57..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/migration/SpecificationMigrator.java
+++ /dev/null
@@ -1,209 +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.migration;
-
-import org.eclipse.jst.j2ee.application.ApplicationResource;
-import org.eclipse.jst.j2ee.client.ApplicationClientResource;
-import org.eclipse.jst.j2ee.common.XMLResource;
-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.jca.ConnectorResource;
-import org.eclipse.jst.j2ee.webapplication.WebAppResource;
-
-
-
-/**
- * @author mdelder
- *
- */
-public class SpecificationMigrator implements J2EEConstants, J2EESpecificationMigrationConstants {
- private boolean isComplex;
- private String version;
- private XMLResource xmlResource;
-
- /**
- * Public constructor for migrating a single ejb
- */
- public SpecificationMigrator(String aVersion, boolean complex) {
- version = aVersion;
- isComplex = complex;
- }
-
- /**
- * Public constructor for migrating the entire deployment descriptor
- */
- public SpecificationMigrator(XMLResource anXmlResource, String aVersion, boolean complex) {
- xmlResource = anXmlResource;
- version = aVersion;
- isComplex = complex;
- }
-
-
- public J2EEMigrationStatus migrateTo13() {
- if (xmlResource != null && version != null) {
- switch (xmlResource.getType()) {
- case XMLResource.APP_CLIENT_TYPE :
- return migrateTo13((ApplicationClientResource)xmlResource);
- case XMLResource.APPLICATION_TYPE :
- return migrateTo13((ApplicationResource)xmlResource);
- case XMLResource.EJB_TYPE :
- return migrateTo13((EJBResource)xmlResource);
- case XMLResource.WEB_APP_TYPE :
- return migrateTo13((WebAppResource)xmlResource);
- }
- }
- return new J2EEMigrationStatus(J2EEMigrationStatus.NOT_NEEDED, xmlResource);
- }
-
-
- /**
- * @param resource
- * @return
- */
- protected J2EEMigrationStatus migrateTo13(WebAppResource resource) {
- return null;
- }
-
- /**
- * @param resource
- * @return
- */
- protected J2EEMigrationStatus migrateTo13(EJBResource resource) {
- return null;
- }
-
- /**
- * @param resource
- * @return
- */
- protected J2EEMigrationStatus migrateTo13(ApplicationResource resource) {
- return null;
- }
-
- /**
- * @param resource
- * @return
- */
- protected J2EEMigrationStatus migrateTo13(ApplicationClientResource resource) {
- return null;
- }
-
- public J2EEMigrationStatus migrateTo14() {
- if (xmlResource != null && version != null) {
- switch (xmlResource.getType()) {
- case XMLResource.APP_CLIENT_TYPE :
- return migrateTo14((ApplicationClientResource)xmlResource);
- case XMLResource.APPLICATION_TYPE :
- return migrateTo14((ApplicationResource)xmlResource);
- case XMLResource.EJB_TYPE :
- return migrateTo14((EJBResource)xmlResource);
- case XMLResource.WEB_APP_TYPE :
- return migrateTo14((WebAppResource)xmlResource);
- case XMLResource.RAR_TYPE :
- return migrateTo14 ((ConnectorResource)xmlResource);
- }
- }
- return new J2EEMigrationStatus(J2EEMigrationStatus.NOT_NEEDED, xmlResource);
- }
-
- /**
- * @param resource
- * @return
- */
- protected J2EEMigrationStatus migrateTo14(ApplicationClientResource resource) {
- return null;
- }
-
- /**
- * @param resource
- * @return
- */
- protected J2EEMigrationStatus migrateTo14(ApplicationResource resource) {
- return null;
- }
-
- /**
- * @param resource
- * @return
- */
- protected J2EEMigrationStatus migrateTo14(EJBResource resource) {
- return null;
- }
-
- /**
- * @param resource
- * @return
- */
- protected J2EEMigrationStatus migrateTo14(WebAppResource resource) {
- return null;
- }
-
- /**
- * @param resource
- * @return
- */
- protected J2EEMigrationStatus migrateTo14(ConnectorResource resource) {
- return null;
- }
-
- protected boolean basicNeedsMigrationTo14() {
- boolean isResource1_4, isTarget1_4;
- isResource1_4 = xmlResource.getVersionID() == J2EEVersionConstants.J2EE_1_4_ID;
- isTarget1_4 = isVersion1_4();
- return (isResource1_4 && !isTarget1_4) || (!isResource1_4 && isTarget1_4);
- }
-
- protected boolean basicNeedsToMigrate() {
- boolean isResource1_3, isTarget1_3;
- isResource1_3 = xmlResource.getVersionID() == J2EEVersionConstants.J2EE_1_3_ID;
- isTarget1_3 = isVersion1_3();
- return (isResource1_3 && !isTarget1_3) || (!isResource1_3 && isTarget1_3);
- }
-
- protected J2EEMigrationStatus mergeStatuses(J2EEMigrationStatus status1, J2EEMigrationStatus status2) {
- if (status1 != null)
- return status1.append(status2);
- return status2;
- }
-
-
- protected boolean isVersion1_2() {
- return version == J2EE_VERSION_1_2;
- }
-
- protected boolean isVersion1_3() {
- return version == J2EE_VERSION_1_3;
- }
-
- protected boolean isVersion1_4() {
- return version == J2EE_VERSION_1_4;
- }
-
- /**
- * @return Returns the isComplex.
- */
- protected boolean isComplex() {
- return isComplex;
- }
- /**
- * @return Returns the version.
- */
- public String getVersion() {
- return version;
- }
- /**
- * @return Returns the xmlResource.
- */
- public XMLResource getXmlResource() {
- return xmlResource;
- }
-}
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/migration/War14SpecificationMigrator.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/migration/War14SpecificationMigrator.java
deleted file mode 100644
index 62274ca87..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/migration/War14SpecificationMigrator.java
+++ /dev/null
@@ -1,202 +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, 2004
- *
- * To change the template for this generated file go to
- * Window - Preferences - Java - Code Generation - Code and Comments
- */
-package org.eclipse.jst.j2ee.migration;
-
-import java.util.List;
-
-import org.eclipse.jst.j2ee.common.CommonFactory;
-import org.eclipse.jst.j2ee.common.Description;
-import org.eclipse.jst.j2ee.common.ParamValue;
-import org.eclipse.jst.j2ee.jsp.JSPConfig;
-import org.eclipse.jst.j2ee.jsp.JspFactory;
-import org.eclipse.jst.j2ee.jsp.TagLibRefType;
-import org.eclipse.jst.j2ee.webapplication.ContextParam;
-import org.eclipse.jst.j2ee.webapplication.Filter;
-import org.eclipse.jst.j2ee.webapplication.InitParam;
-import org.eclipse.jst.j2ee.webapplication.Servlet;
-import org.eclipse.jst.j2ee.webapplication.TagLibRef;
-import org.eclipse.jst.j2ee.webapplication.WebApp;
-
-
-/**
- * @author vijayb
- *
- * To change the template for this generated type comment go to
- * Window - Preferences - Java - Code Generation - Code and Comments
- */
-public class War14SpecificationMigrator {
-
- /**
- * @param app
- */
- public J2EEMigrationStatus migrateWebAppTo14(WebApp app) {
- migrateTabLibs(app);
- migrateContextParam(app);
- migrateInitParams(app);
- return new J2EEMigrationStatus(J2EEMigrationStatus.COMPLETED_OK,(new J2EEMigrationStatus()).format(J2EESpecificationMigrator.DEFAULT_COMPLETED_STATUS_MSG,app.getDisplayName()));
- }
- /**
- * @param app
- */
- private void migrateInitParams(WebApp app) {
- migrateServletInitParams(app);
- migrateFilterInitParams(app);
- }
- /**
- * @param app
- */
- private void migrateFilterInitParams(WebApp app) {
- List filters = app.getFilters();
- if(filters != null && !filters.isEmpty()) {
- for(int i = 0; i < filters.size(); i++) {
- Filter filter = (Filter)filters.get(i);
- List initParam = filter.getInitParams();
- for(int j = 0; j < initParam.size(); j++) {
- InitParam param = (InitParam)initParam.get(j);
- if(param != null) {
- ParamValue cParam = createParamValue(param);
- List contextParams = filter.getInitParamValues();
- if(!paramValueExist(contextParams,cParam))
- filter.getInitParamValues().add(cParam);
- }
- }
- }
- }
- }
- /**
- * @param app
- */
- private void migrateServletInitParams(WebApp app) {
- List servlets = app.getServlets();
- if(servlets != null && !servlets.isEmpty()) {
- for(int i = 0; i < servlets.size(); i++) {
- Servlet servlet = (Servlet)servlets.get(i);
- List initParam = servlet.getParams();
- for(int j = 0; j < initParam.size(); j++) {
- InitParam param = (InitParam)initParam.get(j);
- if(param != null) {
- ParamValue cParam = createParamValue(param);
- List contextParams = servlet.getInitParams();
- if(!paramValueExist(contextParams,cParam))
- servlet.getInitParams().add(cParam);
- }
- }
- }
- }
- }
- /**
- * @param param
- * @return
- */
- private ParamValue createParamValue(InitParam param) {
- ParamValue cParam = CommonFactory.eINSTANCE.createParamValue();
- cParam.setName(param.getParamName());
- cParam.setValue(param.getParamValue());
- String desc = param.getDescription();
- if(desc != null && desc.length() > 0)
- cParam.getDescriptions().add(createDescription(desc));
- return cParam;
- }
- /**
- * @param desc
- * @return
- */
- private Object createDescription(String desc) {
- Description description = CommonFactory.eINSTANCE.createDescription();
- description.setValue(desc);
- return description;
- }
- /**
- * @param contextParam
- * @param param
- * @return
- */
- private boolean paramValueExist(List contextParams, ParamValue param) {
- boolean exists = false;
- for(int i = 0; i < contextParams.size(); i++) {
- ParamValue paramValue = (ParamValue)contextParams.get(i);
- if(paramValue.getName().equals(param.getName()) && paramValue.getValue().equals(param.getValue())) {
- exists = true;
- break;
- }
- }
- return exists;
- }
-
- /**
- * @param contextParams
- * @param param
- * @return
- */
- private boolean tagLibURITypeExists(List tagLibsURITypes, TagLibRefType tlut) {
- boolean exists = false;
- for(int i = 0; i < tagLibsURITypes.size(); i++) {
- TagLibRefType tempTlut = (TagLibRefType)tagLibsURITypes.get(i);
- if(tempTlut.getTaglibLocation().equals(tlut.getTaglibLocation()) && tempTlut.getTaglibURI().equals(tempTlut.getTaglibURI())) {
- exists = true;
- break;
- }
- }
- return exists;
- }
- /**
- * @param app
- */
- private void migrateContextParam(WebApp app) {
- List contexts = app.getContexts();
- if(contexts != null && !contexts.isEmpty()) {
- for(int j = 0; j < contexts.size(); j++) {
- ContextParam param = (ContextParam)contexts.get(j);
- if(param != null) {
- ParamValue cParam = CommonFactory.eINSTANCE.createParamValue();
- cParam.setName(param.getParamName());
- cParam.setValue(param.getParamValue());
- cParam.setDescription(param.getDescription());
- List contextParams = app.getContextParams();
- if(!paramValueExist(contextParams,cParam))
- app.getContextParams().add(cParam);
- }
- }
- }
- }
-
-
- /**
- * @param app
- */
- private void migrateTabLibs(WebApp app) {
- List tagLibs = app.getTagLibs();
- JSPConfig config = app.getJspConfig();
- if(tagLibs != null && !tagLibs.isEmpty()) {
- if(config == null) {
- config = JspFactory.eINSTANCE.createJSPConfig();
- app.setJspConfig(config);
- config = app.getJspConfig();
- }
- for(int i = 0; i < tagLibs.size(); i++) {
- TagLibRef tlr = (TagLibRef)tagLibs.get(i);
- TagLibRefType tlrt = JspFactory.eINSTANCE.createTagLibRefType();
- tlrt.setTaglibLocation(tlr.getTaglibLocation());
- tlrt.setTaglibURI(tlr.getTaglibURI());
- List tagLibRefTypes = config.getTagLibs();
- if(!tagLibURITypeExists(tagLibRefTypes,tlrt))
- config.getTagLibs().add(tlrt);
- }
-
- }
- }
-}
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/BodyContentType.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/BodyContentType.java
deleted file mode 100644
index 5861c4bcc..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/BodyContentType.java
+++ /dev/null
@@ -1,178 +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.taglib;
-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 -->
- * <!-- 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 -->
- * <!-- 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/ExtensibleType.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/ExtensibleType.java
deleted file mode 100644
index ae5b84fa1..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/ExtensibleType.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.taglib;
-
-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.taglib.ExtensibleType#getValue <em>Value</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.jst.j2ee.internal.taglib.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.internal.taglib.TaglibPackage#getExtensibleType_Value()
- * @model
- * @generated
- */
- String getValue();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.taglib.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/Function.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/Function.java
deleted file mode 100644
index 8a0762f78..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/Function.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.taglib;
-
-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 -->
- * @since 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.internal.taglib.Function#getName <em>Name</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.taglib.Function#getSignature <em>Signature</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.taglib.Function#getExample <em>Example</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.taglib.Function#getFunctionClass <em>Function Class</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.taglib.Function#getFunctionExtensions <em>Function Extensions</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.jst.j2ee.internal.taglib.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.internal.taglib.TaglibPackage#getFunction_Name()
- * @model
- * @generated
- */
- String getName();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.taglib.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.internal.taglib.TaglibPackage#getFunction_Signature()
- * @model
- * @generated
- */
- String getSignature();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.taglib.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.internal.taglib.TaglibPackage#getFunction_Example()
- * @model
- * @generated
- */
- String getExample();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.taglib.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.internal.taglib.TaglibPackage#getFunction_FunctionClass()
- * @model required="true"
- * @generated
- */
- JavaClass getFunctionClass();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.taglib.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.internal.taglib.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.internal.taglib.TaglibPackage#getFunction_FunctionExtensions()
- * @model type="org.eclipse.jst.j2ee.internal.taglib.TldExtension" containment="true"
- * @generated
- */
- EList getFunctionExtensions();
-
-} // Function
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/JSPScriptingVariableScope.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/JSPScriptingVariableScope.java
deleted file mode 100644
index 76aa8f657..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/JSPScriptingVariableScope.java
+++ /dev/null
@@ -1,151 +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.taglib;
-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 -->
- * <!-- 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 -->
- * <!-- 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/JSPTag.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/JSPTag.java
deleted file mode 100644
index 1ea0f4555..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/JSPTag.java
+++ /dev/null
@@ -1,227 +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.taglib;
-
-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.internal.taglib.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.internal.taglib.BodyContentType
- * @see #isSetBodyContent()
- * @see #unsetBodyContent()
- * @see #getBodyContent()
- * @generated
- */
- void setBodyContent(BodyContentType value);
-
- /**
- * Unsets the value of the '{@link org.eclipse.jst.j2ee.internal.taglib.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.internal.taglib.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.internal.taglib.TaglibPackage#getJSPTag_Name()
- * @model
- * @generated
- */
- String getName();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.taglib.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.internal.taglib.TaglibPackage#getJSPTag_DynamicAttributes()
- * @model
- * @generated
- */
- boolean isDynamicAttributes();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.taglib.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/JSPTagAttribute.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/JSPTagAttribute.java
deleted file mode 100644
index c37401c02..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/JSPTagAttribute.java
+++ /dev/null
@@ -1,186 +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.taglib;
-
-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.internal.taglib.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.internal.taglib.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.internal.taglib.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.internal.taglib.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 -->
- * @since J2EE1.4
- * <!-- end-model-doc -->
- * @return the value of the '<em>Fragment</em>' attribute.
- * @see #setFragment(boolean)
- * @see org.eclipse.jst.j2ee.internal.taglib.TaglibPackage#getJSPTagAttribute_Fragment()
- * @model
- * @generated
- */
- boolean isFragment();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.taglib.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.internal.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 -->
- * @since J2EE1.4
- * <!-- end-model-doc -->
- * @return the value of the '<em>Descriptions</em>' containment reference list.
- * @see org.eclipse.jst.j2ee.internal.taglib.TaglibPackage#getJSPTagAttribute_Descriptions()
- * @model type="org.eclipse.jst.j2ee.internal.common.Description" containment="true"
- * @generated
- */
- EList getDescriptions();
-
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/JSPVariable.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/JSPVariable.java
deleted file mode 100644
index 88e17bb23..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/JSPVariable.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.taglib;
-
-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.internal.taglib.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.internal.taglib.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.internal.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.internal.taglib.TaglibPackage#getJSPVariable_Descriptions()
- * @model type="org.eclipse.jst.j2ee.internal.common.Description" containment="true"
- * @generated
- */
- EList getDescriptions();
-
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/TagFile.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/TagFile.java
deleted file mode 100644
index 24994e4f5..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/TagFile.java
+++ /dev/null
@@ -1,148 +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.taglib;
-
-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 -->
- * @since 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.internal.taglib.TagFile#getName <em>Name</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.taglib.TagFile#getPath <em>Path</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.taglib.TagFile#getExample <em>Example</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.taglib.TagFile#getTagExtensions <em>Tag Extensions</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.jst.j2ee.internal.taglib.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.internal.taglib.TaglibPackage#getTagFile_Name()
- * @model
- * @generated
- */
- String getName();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.taglib.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.internal.taglib.TaglibPackage#getTagFile_Path()
- * @model
- * @generated
- */
- String getPath();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.taglib.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.internal.taglib.TaglibPackage#getTagFile_Example()
- * @model
- * @generated
- */
- String getExample();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.taglib.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.internal.taglib.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.internal.taglib.TaglibPackage#getTagFile_TagExtensions()
- * @model type="org.eclipse.jst.j2ee.internal.taglib.TldExtension" containment="true"
- * @generated
- */
- EList getTagExtensions();
-
-} // TagFile
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/TagLib.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/TagLib.java
deleted file mode 100644
index e9f0d5c53..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/TagLib.java
+++ /dev/null
@@ -1,162 +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.taglib;
-
-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.internal.taglib.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 -->
- * @since J2EE1.4
- * <!-- end-model-doc -->
- * @return the value of the '<em>Functions</em>' containment reference list.
- * @see org.eclipse.jst.j2ee.internal.taglib.TaglibPackage#getTagLib_Functions()
- * @model type="org.eclipse.jst.j2ee.internal.taglib.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.internal.taglib.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.internal.taglib.TaglibPackage#getTagLib_TaglibExtensions()
- * @model type="org.eclipse.jst.j2ee.internal.taglib.TldExtension" containment="true"
- * @generated
- */
- EList getTaglibExtensions();
-
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/TaglibFactory.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/TaglibFactory.java
deleted file mode 100644
index 3a094a4b2..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/TaglibFactory.java
+++ /dev/null
@@ -1,95 +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.taglib;
-
-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.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/TaglibPackage.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/TaglibPackage.java
deleted file mode 100644
index e763ccf39..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/TaglibPackage.java
+++ /dev/null
@@ -1,1053 +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.taglib;
-
-
-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.internal.taglib.impl.FunctionImpl <em>Function</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.j2ee.internal.taglib.impl.FunctionImpl
- * @see org.eclipse.jst.j2ee.internal.taglib.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.internal.taglib.impl.TagFileImpl <em>Tag File</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.j2ee.internal.taglib.impl.TagFileImpl
- * @see org.eclipse.jst.j2ee.internal.taglib.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.internal.taglib.impl.TldExtensionImpl <em>Tld Extension</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.j2ee.internal.taglib.impl.TldExtensionImpl
- * @see org.eclipse.jst.j2ee.internal.taglib.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.internal.taglib.impl.ExtensibleTypeImpl <em>Extensible Type</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.j2ee.internal.taglib.impl.ExtensibleTypeImpl
- * @see org.eclipse.jst.j2ee.internal.taglib.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.internal.taglib";//$NON-NLS-1$
-
- /**
- * The singleton instance of the package.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- TaglibPackage eINSTANCE = org.eclipse.jst.j2ee.taglib.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.internal.taglib.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.internal.taglib.TagLib#getFunctions()
- * @see #getTagLib()
- * @generated
- */
- EReference getTagLib_Functions();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.internal.taglib.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.internal.taglib.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.internal.taglib.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.internal.taglib.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.internal.taglib.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.internal.taglib.JSPTag#getName()
- * @see #getJSPTag()
- * @generated
- */
- EAttribute getJSPTag_Name();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.internal.taglib.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.internal.taglib.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.internal.taglib.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.internal.taglib.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.internal.taglib.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.internal.taglib.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.internal.taglib.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.internal.taglib.JSPVariable#getDescriptions()
- * @see #getJSPVariable()
- * @generated
- */
- EReference getJSPVariable_Descriptions();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.jst.j2ee.internal.taglib.Function <em>Function</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for class '<em>Function</em>'.
- * @see org.eclipse.jst.j2ee.internal.taglib.Function
- * @generated
- */
- EClass getFunction();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.internal.taglib.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.internal.taglib.Function#getName()
- * @see #getFunction()
- * @generated
- */
- EAttribute getFunction_Name();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.internal.taglib.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.internal.taglib.Function#getSignature()
- * @see #getFunction()
- * @generated
- */
- EAttribute getFunction_Signature();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.internal.taglib.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.internal.taglib.Function#getExample()
- * @see #getFunction()
- * @generated
- */
- EAttribute getFunction_Example();
-
- /**
- * Returns the meta object for the reference '{@link org.eclipse.jst.j2ee.internal.taglib.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.internal.taglib.Function#getFunctionClass()
- * @see #getFunction()
- * @generated
- */
- EReference getFunction_FunctionClass();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.internal.taglib.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.internal.taglib.Function#getFunctionExtensions()
- * @see #getFunction()
- * @generated
- */
- EReference getFunction_FunctionExtensions();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.jst.j2ee.internal.taglib.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.internal.taglib.TagFile
- * @generated
- */
- EClass getTagFile();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.internal.taglib.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.internal.taglib.TagFile#getName()
- * @see #getTagFile()
- * @generated
- */
- EAttribute getTagFile_Name();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.internal.taglib.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.internal.taglib.TagFile#getPath()
- * @see #getTagFile()
- * @generated
- */
- EAttribute getTagFile_Path();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.internal.taglib.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.internal.taglib.TagFile#getExample()
- * @see #getTagFile()
- * @generated
- */
- EAttribute getTagFile_Example();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.internal.taglib.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.internal.taglib.TagFile#getTagExtensions()
- * @see #getTagFile()
- * @generated
- */
- EReference getTagFile_TagExtensions();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.jst.j2ee.internal.taglib.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.internal.taglib.TldExtension
- * @generated
- */
- EClass getTldExtension();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.internal.taglib.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.internal.taglib.TldExtension#getNamespace()
- * @see #getTldExtension()
- * @generated
- */
- EAttribute getTldExtension_Namespace();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.internal.taglib.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.internal.taglib.TldExtension#getExtensionElements()
- * @see #getTldExtension()
- * @generated
- */
- EReference getTldExtension_ExtensionElements();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.jst.j2ee.internal.taglib.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.internal.taglib.ExtensibleType
- * @generated
- */
- EClass getExtensibleType();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.internal.taglib.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.internal.taglib.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/TldExtension.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/TldExtension.java
deleted file mode 100644
index a91bd7e5c..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/TldExtension.java
+++ /dev/null
@@ -1,76 +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.taglib;
-
-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.internal.taglib.TldExtension#getNamespace <em>Namespace</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.taglib.TldExtension#getExtensionElements <em>Extension Elements</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.jst.j2ee.internal.taglib.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.internal.taglib.TaglibPackage#getTldExtension_Namespace()
- * @model
- * @generated
- */
- String getNamespace();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.taglib.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.internal.taglib.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.internal.taglib.TaglibPackage#getTldExtension_ExtensionElements()
- * @model type="org.eclipse.jst.j2ee.internal.taglib.ExtensibleType" containment="true" required="true"
- * @generated
- */
- EList getExtensionElements();
-
-} // TldExtension
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/Validator.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/Validator.java
deleted file mode 100644
index 2292026cf..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/Validator.java
+++ /dev/null
@@ -1,74 +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.taglib;
-
-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.internal.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 -->
- * @since J2EE1.4
- * <!-- end-model-doc -->
- * @return the value of the '<em>Descriptions</em>' containment reference list.
- * @see org.eclipse.jst.j2ee.internal.taglib.TaglibPackage#getValidator_Descriptions()
- * @model type="org.eclipse.jst.j2ee.internal.common.Description" containment="true"
- * @generated
- */
- EList getDescriptions();
-
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/impl/ExtensibleTypeImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/impl/ExtensibleTypeImpl.java
deleted file mode 100644
index 70cb2e94a..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/impl/ExtensibleTypeImpl.java
+++ /dev/null
@@ -1,164 +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.taglib.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.ExtensibleType;
-import org.eclipse.jst.j2ee.taglib.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.internal.taglib.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: ");//$NON-NLS-1$
- result.append(value);
- result.append(')');
- return result.toString();
- }
-
-} //ExtensibleTypeImpl
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/impl/FunctionImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/impl/FunctionImpl.java
deleted file mode 100644
index 75bd41c53..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/impl/FunctionImpl.java
+++ /dev/null
@@ -1,431 +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.taglib.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.impl.DescriptionGroupImpl;
-import org.eclipse.jst.j2ee.taglib.Function;
-import org.eclipse.jst.j2ee.taglib.TaglibPackage;
-import org.eclipse.jst.j2ee.taglib.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.internal.taglib.impl.FunctionImpl#getName <em>Name</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.taglib.impl.FunctionImpl#getSignature <em>Signature</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.taglib.impl.FunctionImpl#getExample <em>Example</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.taglib.impl.FunctionImpl#getFunctionClass <em>Function Class</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.taglib.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: ");//$NON-NLS-1$
- result.append(name);
- result.append(", signature: ");//$NON-NLS-1$
- result.append(signature);
- result.append(", example: ");//$NON-NLS-1$
- result.append(example);
- result.append(')');
- return result.toString();
- }
-
-} //FunctionImpl
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/impl/JSPTagAttributeImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/impl/JSPTagAttributeImpl.java
deleted file mode 100644
index d5b98a28f..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/impl/JSPTagAttributeImpl.java
+++ /dev/null
@@ -1,473 +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.taglib.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.JSPTagAttribute;
-import org.eclipse.jst.j2ee.taglib.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: ");//$NON-NLS-1$
- result.append(name);
- result.append(", required: ");//$NON-NLS-1$
- if (requiredESet) result.append(required); else result.append("<unset>");//$NON-NLS-1$
- result.append(", rtExprValue: ");//$NON-NLS-1$
- if (rtExprValueESet) result.append(rtExprValue); else result.append("<unset>");//$NON-NLS-1$
- result.append(", fragment: ");//$NON-NLS-1$
- result.append(fragment);
- result.append(')');
- return result.toString();
- }
-
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/impl/JSPTagImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/impl/JSPTagImpl.java
deleted file mode 100644
index 8c03bb3bc..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/impl/JSPTagImpl.java
+++ /dev/null
@@ -1,599 +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.taglib.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.impl.DescriptionGroupImpl;
-import org.eclipse.jst.j2ee.taglib.BodyContentType;
-import org.eclipse.jst.j2ee.taglib.JSPTag;
-import org.eclipse.jst.j2ee.taglib.JSPTagAttribute;
-import org.eclipse.jst.j2ee.taglib.JSPVariable;
-import org.eclipse.jst.j2ee.taglib.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: ");//$NON-NLS-1$
- if (bodyContentESet) result.append(bodyContent); else result.append("<unset>");//$NON-NLS-1$
- result.append(", example: ");//$NON-NLS-1$
- result.append(example);
- result.append(", name: ");//$NON-NLS-1$
- result.append(name);
- result.append(", dynamicAttributes: ");//$NON-NLS-1$
- result.append(dynamicAttributes);
- result.append(')');
- return result.toString();
- }
-
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/impl/JSPVariableImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/impl/JSPVariableImpl.java
deleted file mode 100644
index deac6f68c..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/impl/JSPVariableImpl.java
+++ /dev/null
@@ -1,397 +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.taglib.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.JSPScriptingVariableScope;
-import org.eclipse.jst.j2ee.taglib.JSPVariable;
-import org.eclipse.jst.j2ee.taglib.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: ");//$NON-NLS-1$
- result.append(nameGiven);
- result.append(", nameFromAttribute: ");//$NON-NLS-1$
- result.append(nameFromAttribute);
- result.append(", declare: ");//$NON-NLS-1$
- result.append(declare);
- result.append(", scope: ");//$NON-NLS-1$
- result.append(scope);
- result.append(')');
- return result.toString();
- }
-
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/impl/TagFileImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/impl/TagFileImpl.java
deleted file mode 100644
index 616b1323f..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/impl/TagFileImpl.java
+++ /dev/null
@@ -1,370 +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.taglib.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.impl.DescriptionGroupImpl;
-import org.eclipse.jst.j2ee.taglib.TagFile;
-import org.eclipse.jst.j2ee.taglib.TaglibPackage;
-import org.eclipse.jst.j2ee.taglib.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.internal.taglib.impl.TagFileImpl#getName <em>Name</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.taglib.impl.TagFileImpl#getPath <em>Path</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.taglib.impl.TagFileImpl#getExample <em>Example</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.taglib.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: ");//$NON-NLS-1$
- result.append(name);
- result.append(", path: ");//$NON-NLS-1$
- result.append(path);
- result.append(", example: ");//$NON-NLS-1$
- result.append(example);
- result.append(')');
- return result.toString();
- }
-
-} //TagFileImpl
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/impl/TagLibImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/impl/TagLibImpl.java
deleted file mode 100644
index be51420e3..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/impl/TagLibImpl.java
+++ /dev/null
@@ -1,594 +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.taglib.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.J2EEVersionResource;
-import org.eclipse.jst.j2ee.common.Listener;
-import org.eclipse.jst.j2ee.common.impl.CompatibilityDescriptionGroupImpl;
-import org.eclipse.jst.j2ee.taglib.Function;
-import org.eclipse.jst.j2ee.taglib.JSPTag;
-import org.eclipse.jst.j2ee.taglib.TagLib;
-import org.eclipse.jst.j2ee.taglib.TaglibPackage;
-import org.eclipse.jst.j2ee.taglib.TldExtension;
-import org.eclipse.jst.j2ee.taglib.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: ");//$NON-NLS-1$
- result.append(tagLibVersion);
- result.append(", jspVersion: ");//$NON-NLS-1$
- result.append(jspVersion);
- result.append(", shortName: ");//$NON-NLS-1$
- result.append(shortName);
- result.append(", uri: ");//$NON-NLS-1$
- result.append(uri);
- result.append(')');
- return result.toString();
- }
-
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/impl/TaglibFactoryImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/impl/TaglibFactoryImpl.java
deleted file mode 100644
index f9f364228..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/impl/TaglibFactoryImpl.java
+++ /dev/null
@@ -1,183 +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.taglib.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.BodyContentType;
-import org.eclipse.jst.j2ee.taglib.Function;
-import org.eclipse.jst.j2ee.taglib.JSPScriptingVariableScope;
-import org.eclipse.jst.j2ee.taglib.JSPTag;
-import org.eclipse.jst.j2ee.taglib.JSPTagAttribute;
-import org.eclipse.jst.j2ee.taglib.JSPVariable;
-import org.eclipse.jst.j2ee.taglib.TagFile;
-import org.eclipse.jst.j2ee.taglib.TagLib;
-import org.eclipse.jst.j2ee.taglib.TaglibFactory;
-import org.eclipse.jst.j2ee.taglib.TaglibPackage;
-import org.eclipse.jst.j2ee.taglib.TldExtension;
-import org.eclipse.jst.j2ee.taglib.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"); //$NON-NLS-1$ //$NON-NLS-2$
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Object createFromString(EDataType eDataType, String initialValue) {
- switch (eDataType.getClassifierID()) {
- case TaglibPackage.BODY_CONTENT_TYPE:
- return BodyContentType.get(initialValue);
- case TaglibPackage.JSP_SCRIPTING_VARIABLE_SCOPE:
- return JSPScriptingVariableScope.get(initialValue);
- default:
- throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); //$NON-NLS-1$//$NON-NLS-2$
- }
- }
-
- /**
- * <!-- 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"); //$NON-NLS-1$ //$NON-NLS-2$
- }
- }
-
-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/impl/TaglibPackageImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/impl/TaglibPackageImpl.java
deleted file mode 100644
index 97e1e66c8..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/impl/TaglibPackageImpl.java
+++ /dev/null
@@ -1,851 +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.taglib.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.impl.JavaRefPackageImpl;
-import org.eclipse.jst.j2ee.application.ApplicationPackage;
-import org.eclipse.jst.j2ee.application.impl.ApplicationPackageImpl;
-import org.eclipse.jst.j2ee.client.ClientPackage;
-import org.eclipse.jst.j2ee.client.impl.ClientPackageImpl;
-import org.eclipse.jst.j2ee.common.CommonPackage;
-import org.eclipse.jst.j2ee.common.impl.CommonPackageImpl;
-import org.eclipse.jst.j2ee.ejb.EjbPackage;
-import org.eclipse.jst.j2ee.ejb.impl.EjbPackageImpl;
-import org.eclipse.jst.j2ee.jca.JcaPackage;
-import org.eclipse.jst.j2ee.jca.impl.JcaPackageImpl;
-import org.eclipse.jst.j2ee.jsp.JspPackage;
-import org.eclipse.jst.j2ee.jsp.impl.JspPackageImpl;
-import org.eclipse.jst.j2ee.taglib.BodyContentType;
-import org.eclipse.jst.j2ee.taglib.ExtensibleType;
-import org.eclipse.jst.j2ee.taglib.Function;
-import org.eclipse.jst.j2ee.taglib.JSPScriptingVariableScope;
-import org.eclipse.jst.j2ee.taglib.JSPTag;
-import org.eclipse.jst.j2ee.taglib.JSPTagAttribute;
-import org.eclipse.jst.j2ee.taglib.JSPVariable;
-import org.eclipse.jst.j2ee.taglib.TagFile;
-import org.eclipse.jst.j2ee.taglib.TagLib;
-import org.eclipse.jst.j2ee.taglib.TaglibFactory;
-import org.eclipse.jst.j2ee.taglib.TaglibPackage;
-import org.eclipse.jst.j2ee.taglib.TldExtension;
-import org.eclipse.jst.j2ee.taglib.Validator;
-import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage;
-import org.eclipse.jst.j2ee.webapplication.impl.WebapplicationPackageImpl;
-import org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientPackage;
-import org.eclipse.jst.j2ee.webservice.wsclient.impl.Webservice_clientPackageImpl;
-import org.eclipse.jst.j2ee.webservice.wscommon.WscommonPackage;
-import org.eclipse.jst.j2ee.webservice.wscommon.impl.WscommonPackageImpl;
-import org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage;
-import org.eclipse.jst.j2ee.webservice.wsdd.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 EPackage ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new TaglibPackageImpl());
-
- isInited = true;
-
- // Initialize simple dependencies
- EcorePackageImpl.init();
- JavaRefPackageImpl.init();
-
- // Obtain or create and register interdependencies
- EjbPackageImpl theEjbPackage = (EjbPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(EjbPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(EjbPackage.eNS_URI) : EjbPackage.eINSTANCE);
- ClientPackageImpl theClientPackage = (ClientPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ClientPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(ClientPackage.eNS_URI) : ClientPackage.eINSTANCE);
- CommonPackageImpl theCommonPackage = (CommonPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI) : CommonPackage.eINSTANCE);
- JcaPackageImpl theJcaPackage = (JcaPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(JcaPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(JcaPackage.eNS_URI) : JcaPackage.eINSTANCE);
- Webservice_clientPackageImpl theWebservice_clientPackage = (Webservice_clientPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(Webservice_clientPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(Webservice_clientPackage.eNS_URI) : Webservice_clientPackage.eINSTANCE);
- WscommonPackageImpl theWscommonPackage = (WscommonPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(WscommonPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(WscommonPackage.eNS_URI) : WscommonPackage.eINSTANCE);
- WsddPackageImpl theWsddPackage = (WsddPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(WsddPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(WsddPackage.eNS_URI) : WsddPackage.eINSTANCE);
- WebapplicationPackageImpl theWebapplicationPackage = (WebapplicationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(WebapplicationPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(WebapplicationPackage.eNS_URI) : WebapplicationPackage.eINSTANCE);
- ApplicationPackageImpl theApplicationPackage = (ApplicationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ApplicationPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(ApplicationPackage.eNS_URI) : ApplicationPackage.eINSTANCE);
- JspPackageImpl theJspPackage = (JspPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(JspPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(JspPackage.eNS_URI) : JspPackage.eINSTANCE);
-
- // Step 1: create meta-model objects
- theTaglibPackage.createPackageContents();
- theEjbPackage.createPackageContents();
- theClientPackage.createPackageContents();
- theCommonPackage.createPackageContents();
- theJcaPackage.createPackageContents();
- theWebservice_clientPackage.createPackageContents();
- theWscommonPackage.createPackageContents();
- theWsddPackage.createPackageContents();
- theWebapplicationPackage.createPackageContents();
- theApplicationPackage.createPackageContents();
- theJspPackage.createPackageContents();
-
- // Step 2: complete initialization
- theTaglibPackage.initializePackageContents();
- theEjbPackage.initializePackageContents();
- theClientPackage.initializePackageContents();
- theCommonPackage.initializePackageContents();
- theJcaPackage.initializePackageContents();
- theWebservice_clientPackage.initializePackageContents();
- theWscommonPackage.initializePackageContents();
- theWsddPackage.initializePackageContents();
- theWebapplicationPackage.initializePackageContents();
- theApplicationPackage.initializePackageContents();
- theJspPackage.initializePackageContents();
-
- 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);//$NON-NLS-1$
- initEAttribute(getTagLib_TagLibVersion(), ecorePackage.getEString(), "tagLibVersion", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEAttribute(getTagLib_JspVersion(), ecorePackage.getEString(), "jspVersion", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEAttribute(getTagLib_ShortName(), ecorePackage.getEString(), "shortName", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEAttribute(getTagLib_Uri(), ecorePackage.getEString(), "uri", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getTagLib_Tags(), this.getJSPTag(), null, "tags", null, 1, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getTagLib_Validator(), this.getValidator(), null, "validator", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getTagLib_Listeners(), theCommonPackage.getListener(), null, "listeners", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getTagLib_Functions(), this.getFunction(), null, "functions", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getTagLib_TaglibExtensions(), this.getTldExtension(), null, "taglibExtensions", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
-
- initEClass(jspTagEClass, JSPTag.class, "JSPTag", !IS_ABSTRACT, !IS_INTERFACE);//$NON-NLS-1$
- initEAttribute(getJSPTag_BodyContent(), this.getBodyContentType(), "bodyContent", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEAttribute(getJSPTag_Example(), ecorePackage.getEString(), "example", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEAttribute(getJSPTag_Name(), ecorePackage.getEString(), "name", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEAttribute(getJSPTag_DynamicAttributes(), ecorePackage.getEBoolean(), "dynamicAttributes", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getJSPTag_Attributes(), this.getJSPTagAttribute(), null, "attributes", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getJSPTag_Variables(), this.getJSPVariable(), null, "variables", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getJSPTag_TagClass(), theJavaRefPackage.getJavaClass(), null, "tagClass", null, 1, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getJSPTag_TeiClass(), theJavaRefPackage.getJavaClass(), null, "teiClass", null, 1, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
-
- initEClass(jspTagAttributeEClass, JSPTagAttribute.class, "JSPTagAttribute", !IS_ABSTRACT, !IS_INTERFACE);//$NON-NLS-1$
- initEAttribute(getJSPTagAttribute_Name(), ecorePackage.getEString(), "name", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEAttribute(getJSPTagAttribute_Required(), ecorePackage.getEBoolean(), "required", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEAttribute(getJSPTagAttribute_RtExprValue(), ecorePackage.getEBoolean(), "rtExprValue", "false", 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$ //$NON-NLS-2$
- initEAttribute(getJSPTagAttribute_Fragment(), ecorePackage.getEBoolean(), "fragment", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getJSPTagAttribute_Type(), theJavaRefPackage.getJavaClass(), null, "type", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getJSPTagAttribute_Descriptions(), theCommonPackage.getDescription(), null, "descriptions", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
-
- initEClass(validatorEClass, Validator.class, "Validator", !IS_ABSTRACT, !IS_INTERFACE);//$NON-NLS-1$
- initEReference(getValidator_ValidatorClass(), theJavaRefPackage.getJavaClass(), null, "validatorClass", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getValidator_InitParams(), theWebapplicationPackage.getInitParam(), null, "initParams", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getValidator_Descriptions(), theCommonPackage.getDescription(), null, "descriptions", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
-
- initEClass(jspVariableEClass, JSPVariable.class, "JSPVariable", !IS_ABSTRACT, !IS_INTERFACE);//$NON-NLS-1$
- initEAttribute(getJSPVariable_NameGiven(), ecorePackage.getEString(), "nameGiven", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEAttribute(getJSPVariable_NameFromAttribute(), ecorePackage.getEString(), "nameFromAttribute", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEAttribute(getJSPVariable_Declare(), ecorePackage.getEBoolean(), "declare", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEAttribute(getJSPVariable_Scope(), this.getJSPScriptingVariableScope(), "scope", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getJSPVariable_VariableClass(), theJavaRefPackage.getJavaClass(), null, "variableClass", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getJSPVariable_Descriptions(), theCommonPackage.getDescription(), null, "descriptions", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
-
- initEClass(functionEClass, Function.class, "Function", !IS_ABSTRACT, !IS_INTERFACE);//$NON-NLS-1$
- initEAttribute(getFunction_Name(), ecorePackage.getEString(), "name", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEAttribute(getFunction_Signature(), ecorePackage.getEString(), "signature", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEAttribute(getFunction_Example(), ecorePackage.getEString(), "example", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED); //$NON-NLS-1$
- initEReference(getFunction_FunctionClass(), theJavaRefPackage.getJavaClass(), null, "functionClass", null, 1, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getFunction_FunctionExtensions(), this.getTldExtension(), null, "functionExtensions", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
-
- initEClass(tagFileEClass, TagFile.class, "TagFile", !IS_ABSTRACT, !IS_INTERFACE);//$NON-NLS-1$
- initEAttribute(getTagFile_Name(), ecorePackage.getEString(), "name", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEAttribute(getTagFile_Path(), ecorePackage.getEString(), "path", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEAttribute(getTagFile_Example(), ecorePackage.getEString(), "example", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getTagFile_TagExtensions(), this.getTldExtension(), null, "tagExtensions", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
-
- initEClass(tldExtensionEClass, TldExtension.class, "TldExtension", !IS_ABSTRACT, !IS_INTERFACE);//$NON-NLS-1$
- initEAttribute(getTldExtension_Namespace(), ecorePackage.getEString(), "namespace", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getTldExtension_ExtensionElements(), this.getExtensibleType(), null, "extensionElements", null, 1, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
-
- initEClass(extensibleTypeEClass, ExtensibleType.class, "ExtensibleType", IS_ABSTRACT, !IS_INTERFACE);//$NON-NLS-1$
- initEAttribute(getExtensibleType_Value(), ecorePackage.getEString(), "value", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
-
- // Initialize enums and add enum literals
- initEEnum(bodyContentTypeEEnum, BodyContentType.class, "BodyContentType");//$NON-NLS-1$
- addEEnumLiteral(bodyContentTypeEEnum, BodyContentType.TAGDEPENDENT_LITERAL);//$NON-NLS-1$
- addEEnumLiteral(bodyContentTypeEEnum, BodyContentType.JSP_LITERAL);//$NON-NLS-1$
- addEEnumLiteral(bodyContentTypeEEnum, BodyContentType.EMPTY_LITERAL);//$NON-NLS-1$
- addEEnumLiteral(bodyContentTypeEEnum, BodyContentType.SCRIPTLESS_LITERAL);//$NON-NLS-1$
-
- initEEnum(jspScriptingVariableScopeEEnum, JSPScriptingVariableScope.class, "JSPScriptingVariableScope");//$NON-NLS-1$
- 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/impl/TldExtensionImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/impl/TldExtensionImpl.java
deleted file mode 100644
index bf15c17e3..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/impl/TldExtensionImpl.java
+++ /dev/null
@@ -1,223 +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.taglib.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.ExtensibleType;
-import org.eclipse.jst.j2ee.taglib.TaglibPackage;
-import org.eclipse.jst.j2ee.taglib.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.internal.taglib.impl.TldExtensionImpl#getNamespace <em>Namespace</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.taglib.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: ");//$NON-NLS-1$
- result.append(namespace);
- result.append(')');
- return result.toString();
- }
-
-} //TldExtensionImpl
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/impl/ValidatorImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/impl/ValidatorImpl.java
deleted file mode 100644
index 2fa3e0a47..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/impl/ValidatorImpl.java
+++ /dev/null
@@ -1,245 +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.taglib.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.TaglibPackage;
-import org.eclipse.jst.j2ee.taglib.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/util/TaglibAdapterFactory.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/util/TaglibAdapterFactory.java
deleted file mode 100644
index d53aa9845..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/util/TaglibAdapterFactory.java
+++ /dev/null
@@ -1,303 +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.taglib.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.ExtensibleType;
-import org.eclipse.jst.j2ee.taglib.Function;
-import org.eclipse.jst.j2ee.taglib.JSPTag;
-import org.eclipse.jst.j2ee.taglib.JSPTagAttribute;
-import org.eclipse.jst.j2ee.taglib.JSPVariable;
-import org.eclipse.jst.j2ee.taglib.TagFile;
-import org.eclipse.jst.j2ee.taglib.TagLib;
-import org.eclipse.jst.j2ee.taglib.TaglibPackage;
-import org.eclipse.jst.j2ee.taglib.TldExtension;
-import org.eclipse.jst.j2ee.taglib.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.internal.taglib.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.internal.taglib.Function
- * @generated
- */
- public Adapter createFunctionAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.internal.taglib.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.internal.taglib.TagFile
- * @generated
- */
- public Adapter createTagFileAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.internal.taglib.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.internal.taglib.TldExtension
- * @generated
- */
- public Adapter createTldExtensionAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.internal.taglib.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.internal.taglib.ExtensibleType
- * @generated
- */
- public Adapter createExtensibleTypeAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.internal.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.internal.common.DescriptionGroup
- * @generated
- */
- public Adapter createDescriptionGroupAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.internal.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.internal.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/util/TaglibSwitch.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/util/TaglibSwitch.java
deleted file mode 100644
index 7645cbf8f..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/taglib/util/TaglibSwitch.java
+++ /dev/null
@@ -1,318 +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.taglib.util;
-
-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.ExtensibleType;
-import org.eclipse.jst.j2ee.taglib.Function;
-import org.eclipse.jst.j2ee.taglib.JSPTag;
-import org.eclipse.jst.j2ee.taglib.JSPTagAttribute;
-import org.eclipse.jst.j2ee.taglib.JSPVariable;
-import org.eclipse.jst.j2ee.taglib.TagFile;
-import org.eclipse.jst.j2ee.taglib.TagLib;
-import org.eclipse.jst.j2ee.taglib.TaglibFactory;
-import org.eclipse.jst.j2ee.taglib.TaglibPackage;
-import org.eclipse.jst.j2ee.taglib.TldExtension;
-import org.eclipse.jst.j2ee.taglib.Validator;
-import org.eclipse.jst.j2ee.taglib.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) {
- EClass theEClass = theEObject.eClass();
- if (theEClass.eContainer() == modelPackage) {
- switch (theEClass.getClassifierID()) {
- 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;
- }
- default: return defaultCase(theEObject);
- }
- }
- 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 f69da8108..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/AuthConstraint.java
+++ /dev/null
@@ -1,86 +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 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 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 l 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.internal.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 -->
- * @since J2EE1.4
- * <!-- end-model-doc -->
- * @return the value of the '<em>Descriptions</em>' containment reference list.
- * @see org.eclipse.jst.j2ee.internal.webapplication.WebapplicationPackage#getAuthConstraint_Descriptions()
- * @model type="org.eclipse.jst.j2ee.internal.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 7b40f9229..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/AuthMethodKind.java
+++ /dev/null
@@ -1,191 +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 java.util.Arrays;
-import java.util.Collections;
-import java.util.List;
-
-import org.eclipse.emf.common.util.AbstractEnumerator;
-
-
-
-
-
-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 -->
- * <!-- 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
- */
- 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 0cbd49fce..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/ContextParam.java
+++ /dev/null
@@ -1,82 +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.
- */
-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 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/DispatcherType.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/DispatcherType.java
deleted file mode 100644
index a6213672f..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/DispatcherType.java
+++ /dev/null
@@ -1,194 +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 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.internal.webapplication.WebapplicationPackage#getDispatcherType()
- * @model
- * @generated
- */
-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 -->
- * <!-- 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 -->
- * <!-- 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 90e09898e..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, 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.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.internal.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 -->
- * @since 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.internal.webapplication.WebapplicationPackage#getFilter_InitParamValues()
- * @model type="org.eclipse.jst.j2ee.internal.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 efb4b7c39..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, 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;
-/**
- * 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.internal.webapplication.DispatcherType}.
- * The literals are from the enumeration {@link org.eclipse.jst.j2ee.internal.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.internal.webapplication.DispatcherType
- * @see org.eclipse.jst.j2ee.internal.webapplication.WebapplicationPackage#getFilterMapping_DispatcherType()
- * @model type="org.eclipse.jst.j2ee.internal.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 eab42b01a..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, 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;
-
-/**
- * <!-- 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.internal.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.internal.webapplication.WebapplicationPackage#getHTTPMethodType_HttpMethod()
- * @model
- * @generated
- */
- String getHttpMethod();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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 3bba78387..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/HTTPMethodTypeEnum.java
+++ /dev/null
@@ -1,277 +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 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.internal.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 -->
- * @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 -->
- * <!-- begin-model-doc -->
- * The http-method contains an HTTP method (GET | POST |...)
- * <!-- end-model-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 -->
- * <!-- 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 -->
- * <!-- 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 b5a25e691..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/JSPType.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.webapplication;
-
-
-/**
- * @generated
- */
-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 5c5b98d13..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/LocalEncodingMapping.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.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.internal.webapplication.LocalEncodingMapping#getLocale <em>Locale</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webapplication.LocalEncodingMapping#getEncoding <em>Encoding</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.jst.j2ee.internal.webapplication.WebapplicationPackage#getLocalEncodingMapping()
- * @model
- * @generated
- */
-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.internal.webapplication.WebapplicationPackage#getLocalEncodingMapping_Locale()
- * @model
- * @generated
- */
- String getLocale();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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.internal.webapplication.WebapplicationPackage#getLocalEncodingMapping_Encoding()
- * @model
- * @generated
- */
- String getEncoding();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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 46ea47c30..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/LocalEncodingMappingList.java
+++ /dev/null
@@ -1,49 +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;
-
-/**
- * <!-- 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.internal.webapplication.LocalEncodingMappingList#getLocalEncodingMappings <em>Local Encoding Mappings</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.jst.j2ee.internal.webapplication.WebapplicationPackage#getLocalEncodingMappingList()
- * @model
- * @generated
- */
-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.internal.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.internal.webapplication.WebapplicationPackage#getLocalEncodingMappingList_LocalEncodingMappings()
- * @model type="org.eclipse.jst.j2ee.internal.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 b04136a68..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, 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 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.internal.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.internal.webapplication.AuthMethodKind
- * @see #isSetAuthMethod()
- * @see #unsetAuthMethod()
- * @see #getAuthMethod()
- * @generated
- */
- void setAuthMethod(AuthMethodKind value);
-
- /**
- * Unsets the value of the '{@link org.eclipse.jst.j2ee.internal.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.internal.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 -->
- * @since J2EE1.4
- * <!-- end-model-doc -->
- * @return the value of the '<em>Authorization Method</em>' attribute.
- * @see #setAuthorizationMethod(String)
- * @see org.eclipse.jst.j2ee.internal.webapplication.WebapplicationPackage#getLoginConfig_AuthorizationMethod()
- * @model
- * @generated
- */
- String getAuthorizationMethod();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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 8c4989bcd..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.
-
- */
-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 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/ResAuthServletType.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/ResAuthServletType.java
deleted file mode 100644
index 9d6f256d7..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/ResAuthServletType.java
+++ /dev/null
@@ -1,130 +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 java.util.Arrays;
-import java.util.Collections;
-import java.util.List;
-
-import org.eclipse.emf.common.util.AbstractEnumerator;
-
-
-
-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 -->
- * <!-- 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 -->
- * <!-- 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 a5ef1f7aa..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/RoleNameType.java
+++ /dev/null
@@ -1,44 +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
- */
-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 8930c201a..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/SecurityConstraint.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.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
- */
-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 -->
- * @since 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.internal.webapplication.WebapplicationPackage#getSecurityConstraint_DisplayName()
- * @model
- * @generated
- */
- String getDisplayName();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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 l 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 l 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 l 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.internal.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.internal.webapplication.WebapplicationPackage#getSecurityConstraint_DisplayNames()
- * @model type="org.eclipse.jst.j2ee.internal.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 5a299c384..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/Servlet.java
+++ /dev/null
@@ -1,186 +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 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.
- */
-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();
-public Properties getParamsAsProperties() ;
-/**
- * Fix the role-link on any contained role refs
- */
-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.internal.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.internal.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.internal.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 l 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 l 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 l 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.internal.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.internal.webapplication.WebapplicationPackage#getServlet_InitParams()
- * @model type="org.eclipse.jst.j2ee.internal.common.ParamValue" containment="true"
- * @generated
- */
- EList getInitParams();
-
- /**
- * return the java servlet class associated with this servlet
- */
- 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 3833af6da..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/ServletMapping.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.webapplication;
-
-import org.eclipse.emf.ecore.EObject;
-/**
- * The servlet-mapping element defines a mapping between a servlet and a url pattern
- */
-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 -->
- * @since 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.internal.webapplication.WebapplicationPackage#getServletMapping_Name()
- * @model
- * @generated
- */
- String getName();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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 l 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 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/ServletType.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/ServletType.java
deleted file mode 100644
index bc8884f9f..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/ServletType.java
+++ /dev/null
@@ -1,44 +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 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 4fce30c54..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/SessionConfig.java
+++ /dev/null
@@ -1,82 +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 session-config element defines the session parameters for this web application.
- */
-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.internal.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.internal.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 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/TagLibRef.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/TagLibRef.java
deleted file mode 100644
index 771559d1d..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/TagLibRef.java
+++ /dev/null
@@ -1,90 +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 taglib element is used to describe a JSP tag library.
- * @since since J2EE1.4 deprecated, use org.eclipse.jst.j2ee.internal.jsp.TagLibRef
- */
-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.internal.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.internal.webapplication.WebapplicationPackage#getTagLibRef_WebApp()
- * @see org.eclipse.jst.j2ee.internal.webapplication.WebApp#getTagLibs
- * @model opposite="tagLibs"
- * @generated
- */
- WebApp getWebApp();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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 e9f875c80..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/TransportGuaranteeType.java
+++ /dev/null
@@ -1,151 +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 java.util.Arrays;
-import java.util.Collections;
-import java.util.List;
-
-import org.eclipse.emf.common.util.AbstractEnumerator;
-
-
-
-
-
-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 -->
- * <!-- 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 -->
- * <!-- 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 80606accd..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/URLPatternType.java
+++ /dev/null
@@ -1,70 +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;
-/**
- * <!-- 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.internal.webapplication.URLPatternType#getUrlPattern <em>Url Pattern</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webapplication.URLPatternType#getResCollection <em>Res Collection</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.jst.j2ee.internal.webapplication.WebapplicationPackage#getURLPatternType()
- * @model
- * @generated
- */
-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 l 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 d8f699e5b..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/UserDataConstraint.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.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
- */
-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.internal.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.internal.webapplication.TransportGuaranteeType
- * @see #isSetTransportGuarantee()
- * @see #unsetTransportGuarantee()
- * @see #getTransportGuarantee()
- * @generated
- */
- void setTransportGuarantee(TransportGuaranteeType value);
-
- /**
- * Unsets the value of the '{@link org.eclipse.jst.j2ee.internal.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.internal.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 l 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.internal.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 -->
- * @since J2EE1.4
- * <!-- end-model-doc -->
- * @return the value of the '<em>Descriptions</em>' containment reference list.
- * @see org.eclipse.jst.j2ee.internal.webapplication.WebapplicationPackage#getUserDataConstraint_Descriptions()
- * @model type="org.eclipse.jst.j2ee.internal.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 c216473cd..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/WebApp.java
+++ /dev/null
@@ -1,363 +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 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.
- */
-public interface WebApp extends JNDIEnvRefsGroup{
-
-public boolean containsSecurityRole(String name);
-ErrorPage getErrorPageByCode(Integer code) ;
-ErrorPage getErrorPageByExceptionType(String exceptionType) ;
-/**
- * Finds a filter mapping for a specified filter.
- * @param filter 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);
-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 An extension to find the mime type for.
- */
-
-String getMimeType(String extension);
- public SecurityRole getSecurityRoleNamed(String roleName);
-/**
- * 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.
- */
-
-ServletMapping getServletMapping(Servlet aServlet);
-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
- */
-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.internal.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.internal.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.internal.webapplication.WebapplicationPackage#getWebApp_Version()
- * @model
- * @generated
- */
- String getVersion();
-
- /**
- * This returns the module version id. Compare with J2EEVersionConstants to determine module level
- */
- public int getVersionID() throws IllegalStateException ;
- /**
- *This returns the j2ee version id. Compare with J2EEVersionConstants to determine j2ee level
- */
- public int getJ2EEVersionID() throws IllegalStateException ;
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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()
- */
- EList getEnvEntries();
-
- /**
- * @generated This field/method will be replaced during code generation
- * @param l 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 l 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 l 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.internal.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.internal.webapplication.WebapplicationPackage#getWebApp_ContextParams()
- * @model type="org.eclipse.jst.j2ee.internal.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.internal.webapplication.WebapplicationPackage#getWebApp_JspConfig()
- * @model containment="true"
- * @generated
- */
- JSPConfig getJspConfig();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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.internal.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.internal.webapplication.WebapplicationPackage#getWebApp_MessageDestinations()
- * @model type="org.eclipse.jst.j2ee.internal.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.internal.webapplication.WebapplicationPackage#getWebApp_LocalEncodingMappingList()
- * @model containment="true"
- * @generated
- */
- LocalEncodingMappingList getLocalEncodingMappingList();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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 86f66e08c..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/WebAppResource.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 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.common.XMLResource;
-
-/**
- * @author schacher
- *
- * To change this generated comment go to
- * Window>Preferences>Java>Code Generation>Code and Comments
- */
-public interface WebAppResource extends XMLResource {
- WebApp getWebApp();
- /**
- * Return true if this Resource supports the Web 2.2 spec.
- */
- boolean isWeb2_2();
- /**
- * Return true if this Resource supports the Web 2.3 spec.
- */
- boolean isWeb2_3();
- /**
- * Return true if this Resource supports the Web 2.4 spec.
- */
- 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 e209ebe34..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/WebResourceCollection.java
+++ /dev/null
@@ -1,147 +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;
-/**
- * @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.
-
- */
-public interface WebResourceCollection extends EObject{
-
-public void addHTTP(String httpMethod);
-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 -->
- * @since J2EE1.4
- * <!-- end-model-doc -->
- * @return the value of the '<em>Url Pattern</em>' attribute list.
- * @see org.eclipse.jst.j2ee.internal.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.internal.webapplication.HTTPMethodTypeEnum}.
- * The literals are from the enumeration {@link org.eclipse.jst.j2ee.internal.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 -->
- * @since J2EE1.4
- * <!-- end-model-doc -->
- * @return the value of the '<em>Http Method</em>' attribute list.
- * @see org.eclipse.jst.j2ee.internal.webapplication.HTTPMethodTypeEnum
- * @see org.eclipse.jst.j2ee.internal.webapplication.WebapplicationPackage#getWebResourceCollection_HttpMethod()
- * @model type="org.eclipse.jst.j2ee.internal.webapplication.HTTPMethodTypeEnum"
- * @generated
- */
- EList getHttpMethod();
-
- /**
- * @deprecated : Use getHttpMethod();
- */
- 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 l 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.internal.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 -->
- * @since J2EE1.4
- * <!-- end-model-doc -->
- * @return the value of the '<em>Descriptions</em>' containment reference list.
- * @see org.eclipse.jst.j2ee.internal.webapplication.WebapplicationPackage#getWebResourceCollection_Descriptions()
- * @model type="org.eclipse.jst.j2ee.internal.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 7b58f2341..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/WebType.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.webapplication;
-
-import org.eclipse.emf.ecore.EObject;
-/**
- * @generated
- */
-public interface WebType extends EObject {
-
-public boolean isJspType();
-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 2339a56c2..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/WebapplicationFactory.java
+++ /dev/null
@@ -1,215 +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.EFactory;
-/**
- * @generated
- */
-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.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();
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- 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 03d938559..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/WebapplicationPackage.java
+++ /dev/null
@@ -1,2128 +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.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 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.internal.webapplication.impl.LocalEncodingMappingListImpl <em>Local Encoding Mapping List</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.j2ee.internal.webapplication.impl.LocalEncodingMappingListImpl
- * @see org.eclipse.jst.j2ee.internal.webapplication.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.internal.webapplication.impl.LocalEncodingMappingImpl <em>Local Encoding Mapping</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.j2ee.internal.webapplication.impl.LocalEncodingMappingImpl
- * @see org.eclipse.jst.j2ee.internal.webapplication.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.internal.webapplication.ResAuthServletType <em>Res Auth Servlet Type</em>}' enum.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.j2ee.internal.webapplication.ResAuthServletType
- * @see org.eclipse.jst.j2ee.internal.webapplication.impl.WebapplicationPackageImpl#getResAuthServletType()
- * @generated
- */
- int RES_AUTH_SERVLET_TYPE = 29;
-
- /**
- * The meta object id for the '{@link org.eclipse.jst.j2ee.internal.webapplication.HTTPMethodTypeEnum <em>HTTP Method Type Enum</em>}' enum.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.j2ee.internal.webapplication.HTTPMethodTypeEnum
- * @see org.eclipse.jst.j2ee.internal.webapplication.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.internal.webapplication.DispatcherType <em>Dispatcher Type</em>}' enum.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.j2ee.internal.webapplication.DispatcherType
- * @see org.eclipse.jst.j2ee.internal.webapplication.impl.WebapplicationPackageImpl#getDispatcherType()
- * @generated
- */
- int DISPATCHER_TYPE = 32;
-
-
- /**
- * The meta object id for the '{@link org.eclipse.jst.j2ee.internal.webapplication.AuthMethodKind <em>Auth Method Kind</em>}' enum.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.j2ee.internal.webapplication.AuthMethodKind
- * @see org.eclipse.jst.j2ee.internal.webapplication.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.internal.webapplication";//$NON-NLS-1$
-
- /**
- * The singleton instance of the package.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- WebapplicationPackage eINSTANCE = org.eclipse.jst.j2ee.webapplication.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.
- */
- EAttribute getWebApp_Distributable();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.internal.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.internal.webapplication.WebApp#getVersion()
- * @see #getWebApp()
- * @generated
- */
- EAttribute getWebApp_Version();
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- EReference getWebApp_Contexts();
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- EReference getWebApp_ErrorPages();
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- EReference getWebApp_FileList();
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- EReference getWebApp_TagLibs();
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- EReference getWebApp_Constraints();
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- EReference getWebApp_LoginConfig();
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- EReference getWebApp_MimeMappings();
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- EReference getWebApp_SessionConfig();
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- EReference getWebApp_ServletMappings();
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- EReference getWebApp_Servlets();
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- EReference getWebApp_SecurityRoles();
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- EReference getWebApp_Filters();
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- EReference getWebApp_FilterMappings();
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- EReference getWebApp_Listeners();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.internal.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.internal.webapplication.WebApp#getContextParams()
- * @see #getWebApp()
- * @generated
- */
- EReference getWebApp_ContextParams();
-
- /**
- * Returns the meta object for the containment reference '{@link org.eclipse.jst.j2ee.internal.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.internal.webapplication.WebApp#getJspConfig()
- * @see #getWebApp()
- * @generated
- */
- EReference getWebApp_JspConfig();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.internal.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.internal.webapplication.WebApp#getMessageDestinations()
- * @see #getWebApp()
- * @generated
- */
- EReference getWebApp_MessageDestinations();
-
- /**
- * Returns the meta object for the containment reference '{@link org.eclipse.jst.j2ee.internal.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.internal.webapplication.WebApp#getLocalEncodingMappingList()
- * @see #getWebApp()
- * @generated
- */
- 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.
- */
- EAttribute getContextParam_ParamName();
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- EAttribute getContextParam_ParamValue();
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- EAttribute getContextParam_Description();
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- 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.
- */
- EAttribute getErrorPage_Location();
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- 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
- */
- EClass getErrorCodeErrorPage();
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- 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.internal.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.internal.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.internal.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.internal.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.internal.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.internal.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.internal.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.internal.webapplication.WebResourceCollection#getUrlPattern()
- * @see #getWebResourceCollection()
- * @generated
- */
- EAttribute getWebResourceCollection_UrlPattern();
-
- /**
- * Returns the meta object for the attribute list '{@link org.eclipse.jst.j2ee.internal.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.internal.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.internal.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.internal.webapplication.WebResourceCollection#getURLs()
- * @see #getWebResourceCollection()
- * @generated
- */
- EReference getWebResourceCollection_URLs();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.internal.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.internal.webapplication.WebResourceCollection#getDescriptions()
- * @see #getWebResourceCollection()
- * @generated
- */
- EReference getWebResourceCollection_Descriptions();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.internal.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.internal.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.internal.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.internal.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.
- */
- EAttribute getAuthConstraint_Description();
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- EAttribute getAuthConstraint_Roles();
-
- /**
- * @generated This field/method will be replaced during code generation.
- */
- EReference getAuthConstraint_SecConstraint();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.internal.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.internal.webapplication.AuthConstraint#getDescriptions()
- * @see #getAuthConstraint()
- * @generated
- */
- 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.internal.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.internal.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.internal.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.internal.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.internal.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.internal.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.internal.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.internal.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.internal.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.internal.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.internal.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.internal.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.internal.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.internal.webapplication.LocalEncodingMappingList
- * @generated
- */
- EClass getLocalEncodingMappingList();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.internal.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.internal.webapplication.LocalEncodingMappingList#getLocalEncodingMappings()
- * @see #getLocalEncodingMappingList()
- * @generated
- */
- EReference getLocalEncodingMappingList_LocalEncodingMappings();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.jst.j2ee.internal.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.internal.webapplication.LocalEncodingMapping
- * @generated
- */
- EClass getLocalEncodingMapping();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.internal.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.internal.webapplication.LocalEncodingMapping#getLocale()
- * @see #getLocalEncodingMapping()
- * @generated
- */
- EAttribute getLocalEncodingMapping_Locale();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.internal.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.internal.webapplication.LocalEncodingMapping#getEncoding()
- * @see #getLocalEncodingMapping()
- * @generated
- */
- EAttribute getLocalEncodingMapping_Encoding();
-
- /**
- * Returns the meta object for enum '{@link org.eclipse.jst.j2ee.internal.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.internal.webapplication.ResAuthServletType
- * @generated
- */
- EEnum getResAuthServletType();
-
- /**
- * Returns the meta object for enum '{@link org.eclipse.jst.j2ee.internal.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.internal.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.internal.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.internal.webapplication.DispatcherType
- * @generated
- */
- EEnum getDispatcherType();
-
- /**
- * Returns the meta object for enum '{@link org.eclipse.jst.j2ee.internal.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.internal.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 e2eba5709..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
-
- */
-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 l 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 e248b583a..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/WelcomeFileList.java
+++ /dev/null
@@ -1,53 +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.
- */
-public interface WelcomeFileList extends EObject{
-
-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 l 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/impl/AuthConstraintImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/AuthConstraintImpl.java
deleted file mode 100644
index 444c7ec96..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/AuthConstraintImpl.java
+++ /dev/null
@@ -1,318 +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.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());//$NON-NLS-1$
- 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: ");//$NON-NLS-1$
- result.append(description);
- result.append(", roles: ");//$NON-NLS-1$
- result.append(roles);
- result.append(')');
- return result.toString();
- }
-
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/ContextParamImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/ContextParamImpl.java
deleted file mode 100644
index c789f54d6..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/ContextParamImpl.java
+++ /dev/null
@@ -1,332 +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.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());//$NON-NLS-1$
- 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: "); //$NON-NLS-1$
- result.append(paramName);
- result.append(", paramValue: "); //$NON-NLS-1$
- result.append(paramValue);
- result.append(", description: "); //$NON-NLS-1$
- result.append(description);
- result.append(')');
- return result.toString();
- }
-
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/ErrorCodeErrorPageImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/ErrorCodeErrorPageImpl.java
deleted file mode 100644
index 5a769c5d4..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/ErrorCodeErrorPageImpl.java
+++ /dev/null
@@ -1,233 +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.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: ");//$NON-NLS-1$
- result.append(errorCode);
- result.append(')');
- return result.toString();
- }
-
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/ErrorPageImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/ErrorPageImpl.java
deleted file mode 100644
index 5ce81317d..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/ErrorPageImpl.java
+++ /dev/null
@@ -1,258 +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.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()); //$NON-NLS-1$
- 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: ");//$NON-NLS-1$
- result.append(location);
- result.append(')');
- return result.toString();
- }
-
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/ExceptionTypeErrorPageImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/ExceptionTypeErrorPageImpl.java
deleted file mode 100644
index c939324de..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/ExceptionTypeErrorPageImpl.java
+++ /dev/null
@@ -1,248 +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.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/impl/FilterImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/FilterImpl.java
deleted file mode 100644
index 92829d984..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/FilterImpl.java
+++ /dev/null
@@ -1,387 +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.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.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 This field/method will be replaced during code generation
- * The init-params contain a name//value pairs as initialization params for the
- * filter
-
- */
- 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: ");//$NON-NLS-1$
- 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/impl/FilterMappingImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/FilterMappingImpl.java
deleted file mode 100644
index 670752845..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/FilterMappingImpl.java
+++ /dev/null
@@ -1,341 +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.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);
- }
-
- /**
- * @generated This field/method will 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/impl/FormLoginConfigImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/FormLoginConfigImpl.java
deleted file mode 100644
index 1fd10b362..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/FormLoginConfigImpl.java
+++ /dev/null
@@ -1,291 +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.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());//$NON-NLS-1$
- 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: ");//$NON-NLS-1$
- result.append(formLoginPage);
- result.append(", formErrorPage: ");//$NON-NLS-1$
- result.append(formErrorPage);
- result.append(')');
- return result.toString();
- }
-
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/HTTPMethodTypeImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/HTTPMethodTypeImpl.java
deleted file mode 100644
index 18f31e8fc..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/HTTPMethodTypeImpl.java
+++ /dev/null
@@ -1,164 +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.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.internal.webapplication.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: ");//$NON-NLS-1$
- result.append(httpMethod);
- result.append(')');
- return result.toString();
- }
-
-} //HTTPMethodTypeImpl
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/InitParamImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/InitParamImpl.java
deleted file mode 100644
index e29d9160a..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/InitParamImpl.java
+++ /dev/null
@@ -1,237 +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.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: ");//$NON-NLS-1$
- result.append(paramName);
- result.append(", paramValue: ");//$NON-NLS-1$
- result.append(paramValue);
- result.append(", description: ");//$NON-NLS-1$
- result.append(description);
- result.append(')');
- return result.toString();
- }
-
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/JSPTypeImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/JSPTypeImpl.java
deleted file mode 100644
index f23c5ece9..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/JSPTypeImpl.java
+++ /dev/null
@@ -1,153 +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.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: ");//$NON-NLS-1$
- result.append(jspFile);
- result.append(')');
- return result.toString();
- }
-
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/LocalEncodingMappingImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/LocalEncodingMappingImpl.java
deleted file mode 100644
index be53a1e8d..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/LocalEncodingMappingImpl.java
+++ /dev/null
@@ -1,218 +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.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.internal.webapplication.impl.LocalEncodingMappingImpl#getLocale <em>Locale</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webapplication.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: ");//$NON-NLS-1$
- result.append(locale);
- result.append(", encoding: ");//$NON-NLS-1$
- result.append(encoding);
- result.append(')');
- return result.toString();
- }
-
-} //LocalEncodingMappingImpl
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/LocalEncodingMappingListImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/LocalEncodingMappingListImpl.java
deleted file mode 100644
index 21bfea22d..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/LocalEncodingMappingListImpl.java
+++ /dev/null
@@ -1,154 +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.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.internal.webapplication.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/impl/LoginConfigImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/LoginConfigImpl.java
deleted file mode 100644
index fa646e16c..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/LoginConfigImpl.java
+++ /dev/null
@@ -1,445 +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.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());//$NON-NLS-1$
- 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: ");//$NON-NLS-1$
- if (authMethodESet) result.append(authMethod); else result.append("<unset>");//$NON-NLS-1$
- result.append(", realmName: ");//$NON-NLS-1$
- result.append(realmName);
- result.append(", authorizationMethod: ");//$NON-NLS-1$
- result.append(authorizationMethod);
- result.append(')');
- return result.toString();
- }
-
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/MimeMappingImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/MimeMappingImpl.java
deleted file mode 100644
index c73b865a6..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/MimeMappingImpl.java
+++ /dev/null
@@ -1,290 +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.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()); //$NON-NLS-1$
- 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: ");//$NON-NLS-1$
- result.append(extension);
- result.append(", mimeType: ");//$NON-NLS-1$
- result.append(mimeType);
- result.append(')');
- return result.toString();
- }
-
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/RoleNameTypeImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/RoleNameTypeImpl.java
deleted file mode 100644
index c343346c6..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/RoleNameTypeImpl.java
+++ /dev/null
@@ -1,147 +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.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: ");//$NON-NLS-1$
- result.append(roleName);
- result.append(')');
- return result.toString();
- }
-
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/SecurityConstraintImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/SecurityConstraintImpl.java
deleted file mode 100644
index 693177469..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/SecurityConstraintImpl.java
+++ /dev/null
@@ -1,449 +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.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()); //$NON-NLS-1$
- 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: ");//$NON-NLS-1$
- 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/impl/ServletImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/ServletImpl.java
deleted file mode 100644
index 50601e54b..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/ServletImpl.java
+++ /dev/null
@@ -1,699 +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.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.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());//$NON-NLS-1$
- 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 This field/method will be replaced during code generation
- */
- 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: ");//$NON-NLS-1$
- result.append(servletName);
- result.append(", loadOnStartup: ");//$NON-NLS-1$
- if (loadOnStartupESet) result.append(loadOnStartup); else result.append("<unset>");//$NON-NLS-1$
- 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/impl/ServletMappingImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/ServletMappingImpl.java
deleted file mode 100644
index d92a2a580..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/ServletMappingImpl.java
+++ /dev/null
@@ -1,349 +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.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());//$NON-NLS-1$
- 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: ");//$NON-NLS-1$
- result.append(urlPattern);
- result.append(", name: ");//$NON-NLS-1$
- result.append(name);
- result.append(')');
- return result.toString();
- }
-
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/ServletTypeImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/ServletTypeImpl.java
deleted file mode 100644
index 7d1d9db35..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/ServletTypeImpl.java
+++ /dev/null
@@ -1,150 +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.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: ");//$NON-NLS-1$
- result.append(className);
- result.append(')');
- return result.toString();
- }
-
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/SessionConfigImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/SessionConfigImpl.java
deleted file mode 100644
index 44309c084..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/SessionConfigImpl.java
+++ /dev/null
@@ -1,281 +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.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());//$NON-NLS-1$
- 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: ");//$NON-NLS-1$
- if (sessionTimeoutESet) result.append(sessionTimeout); else result.append("<unset>");//$NON-NLS-1$
- result.append(')');
- return result.toString();
- }
-
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/TagLibRefImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/TagLibRefImpl.java
deleted file mode 100644
index b1386e0a3..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/TagLibRefImpl.java
+++ /dev/null
@@ -1,296 +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.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());//$NON-NLS-1$
- 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: ");//$NON-NLS-1$
- result.append(taglibURI);
- result.append(", taglibLocation: ");//$NON-NLS-1$
- result.append(taglibLocation);
- result.append(')');
- return result.toString();
- }
-
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/URLPatternTypeImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/URLPatternTypeImpl.java
deleted file mode 100644
index 3261ef1fe..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/URLPatternTypeImpl.java
+++ /dev/null
@@ -1,243 +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.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()); //$NON-NLS-1$
- 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: ");//$NON-NLS-1$
- result.append(urlPattern);
- result.append(')');
- return result.toString();
- }
-
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/UserDataConstraintImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/UserDataConstraintImpl.java
deleted file mode 100644
index 988939d44..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/UserDataConstraintImpl.java
+++ /dev/null
@@ -1,376 +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.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());//$NON-NLS-1$
- 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: ");//$NON-NLS-1$
- result.append(description);
- result.append(", transportGuarantee: ");//$NON-NLS-1$
- if (transportGuaranteeESet) result.append(transportGuarantee); else result.append("<unset>");//$NON-NLS-1$
- result.append(')');
- return result.toString();
- }
-
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/WebAppImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/WebAppImpl.java
deleted file mode 100644
index 986ce4b5d..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/WebAppImpl.java
+++ /dev/null
@@ -1,1399 +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.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.J2EEVersionResource;
-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.XMLResource;
-import org.eclipse.jst.j2ee.common.impl.JNDIEnvRefsGroupImpl;
-import org.eclipse.jst.j2ee.common.util.CommonUtil;
-import org.eclipse.jst.j2ee.internal.J2EEConstants;
-import org.eclipse.jst.j2ee.internal.J2EEVersionConstants;
-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: ");//$NON-NLS-1$
- if (distributableESet) result.append(distributable); else result.append("<unset>");//$NON-NLS-1$
- result.append(", version: ");//$NON-NLS-1$
- result.append(version);
- result.append(')');
- return result.toString();
- }
-
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/WebAppResourceFactory.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/WebAppResourceFactory.java
deleted file mode 100644
index 7c36932e8..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/WebAppResourceFactory.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
- *******************************************************************************/
-/*
- * 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.impl;
-
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.emf.ecore.resource.Resource;
-import org.eclipse.jst.j2ee.common.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.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$
- }
-
- /**
- * @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() {
- return J2EEResourceFactoryRegistry.INSTANCE.getFactory(J2EEConstants.WEBAPP_DD_URI_OBJ);
- }
-
-}
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/WebAppResourceImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/WebAppResourceImpl.java
deleted file mode 100644
index 8da37f96d..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/WebAppResourceImpl.java
+++ /dev/null
@@ -1,201 +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 18, 2003
- *
- * To change this generated comment go to
- * Window>Preferences>Java>Code Generation>Code and Comments
- */
-package org.eclipse.jst.j2ee.webapplication.impl;
-
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.jst.j2ee.common.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;
- }
-
- /* (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;
- }
-
- /*
- * @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/impl/WebResourceCollectionImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/WebResourceCollectionImpl.java
deleted file mode 100644
index d3f971531..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/WebResourceCollectionImpl.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.webapplication.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 -->
- * Added for 1.4
- * @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 -->
- * Added for 1.4
- * @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());//$NON-NLS-1$
- 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));
- }
-
- /**
- * @generated This field/method will be replaced during code generation
- * <!-- begin-user-doc -->
- * @since J2EE1.4 deprecated, use getUrlPattern()
- * <!-- end-user-doc -->
- *
- */
- 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 -->
- * @since 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: ");//$NON-NLS-1$
- result.append(webResourceName);
- result.append(", description: ");//$NON-NLS-1$
- result.append(description);
- result.append(", urlPattern: ");//$NON-NLS-1$
- result.append(urlPattern);
- result.append(", httpMethod: ");//$NON-NLS-1$
- result.append(httpMethod);
- result.append(')');
- return result.toString();
- }
-
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/WebTypeImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/WebTypeImpl.java
deleted file mode 100644
index 79bd11fe6..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/WebTypeImpl.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.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/impl/WebapplicationFactoryImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/WebapplicationFactoryImpl.java
deleted file mode 100644
index d6c7ba51b..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/WebapplicationFactoryImpl.java
+++ /dev/null
@@ -1,402 +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.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"); //$NON-NLS-1$//$NON-NLS-2$
- }
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Object createFromString(EDataType eDataType, String initialValue) {
- switch (eDataType.getClassifierID()) {
- case WebapplicationPackage.RES_AUTH_SERVLET_TYPE:
- return ResAuthServletType.get(initialValue);
- case WebapplicationPackage.HTTP_METHOD_TYPE_ENUM:
- return HTTPMethodTypeEnum.get(initialValue);
- case WebapplicationPackage.TRANSPORT_GUARANTEE_TYPE:
- return TransportGuaranteeType.get(initialValue);
- case WebapplicationPackage.DISPATCHER_TYPE:
- return DispatcherType.get(initialValue);
- case WebapplicationPackage.AUTH_METHOD_KIND:
- return AuthMethodKind.get(initialValue);
- default:
- throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); //$NON-NLS-1$ //$NON-NLS-2$
- }
- }
-
- /**
- * <!-- 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"); //$NON-NLS-1$ //$NON-NLS-2$
- }
- }
-
-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/impl/WebapplicationPackageImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/WebapplicationPackageImpl.java
deleted file mode 100644
index 80ac41ce0..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/WebapplicationPackageImpl.java
+++ /dev/null
@@ -1,1833 +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.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.impl.JavaRefPackageImpl;
-import org.eclipse.jst.j2ee.application.ApplicationPackage;
-import org.eclipse.jst.j2ee.application.impl.ApplicationPackageImpl;
-import org.eclipse.jst.j2ee.client.ClientPackage;
-import org.eclipse.jst.j2ee.client.impl.ClientPackageImpl;
-import org.eclipse.jst.j2ee.common.CommonPackage;
-import org.eclipse.jst.j2ee.common.impl.CommonPackageImpl;
-import org.eclipse.jst.j2ee.ejb.EjbPackage;
-import org.eclipse.jst.j2ee.ejb.impl.EjbPackageImpl;
-import org.eclipse.jst.j2ee.jca.JcaPackage;
-import org.eclipse.jst.j2ee.jca.impl.JcaPackageImpl;
-import org.eclipse.jst.j2ee.jsp.JspPackage;
-import org.eclipse.jst.j2ee.jsp.impl.JspPackageImpl;
-import org.eclipse.jst.j2ee.taglib.TaglibPackage;
-import org.eclipse.jst.j2ee.taglib.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.impl.Webservice_clientPackageImpl;
-import org.eclipse.jst.j2ee.webservice.wscommon.WscommonPackage;
-import org.eclipse.jst.j2ee.webservice.wscommon.impl.WscommonPackageImpl;
-import org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage;
-import org.eclipse.jst.j2ee.webservice.wsdd.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 EPackage ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new WebapplicationPackageImpl());
-
- isInited = true;
-
- // Initialize simple dependencies
- EcorePackageImpl.init();
- JavaRefPackageImpl.init();
-
- // Obtain or create and register interdependencies
- EjbPackageImpl theEjbPackage = (EjbPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(EjbPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(EjbPackage.eNS_URI) : EjbPackage.eINSTANCE);
- ClientPackageImpl theClientPackage = (ClientPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ClientPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(ClientPackage.eNS_URI) : ClientPackage.eINSTANCE);
- CommonPackageImpl theCommonPackage = (CommonPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI) : CommonPackage.eINSTANCE);
- JcaPackageImpl theJcaPackage = (JcaPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(JcaPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(JcaPackage.eNS_URI) : JcaPackage.eINSTANCE);
- Webservice_clientPackageImpl theWebservice_clientPackage = (Webservice_clientPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(Webservice_clientPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(Webservice_clientPackage.eNS_URI) : Webservice_clientPackage.eINSTANCE);
- WscommonPackageImpl theWscommonPackage = (WscommonPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(WscommonPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(WscommonPackage.eNS_URI) : WscommonPackage.eINSTANCE);
- WsddPackageImpl theWsddPackage = (WsddPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(WsddPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(WsddPackage.eNS_URI) : WsddPackage.eINSTANCE);
- ApplicationPackageImpl theApplicationPackage = (ApplicationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ApplicationPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(ApplicationPackage.eNS_URI) : ApplicationPackage.eINSTANCE);
- JspPackageImpl theJspPackage = (JspPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(JspPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(JspPackage.eNS_URI) : JspPackage.eINSTANCE);
- TaglibPackageImpl theTaglibPackage = (TaglibPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(TaglibPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(TaglibPackage.eNS_URI) : TaglibPackage.eINSTANCE);
-
- // Step 1: create meta-model objects
- theWebapplicationPackage.createPackageContents();
- theEjbPackage.createPackageContents();
- theClientPackage.createPackageContents();
- theCommonPackage.createPackageContents();
- theJcaPackage.createPackageContents();
- theWebservice_clientPackage.createPackageContents();
- theWscommonPackage.createPackageContents();
- theWsddPackage.createPackageContents();
- theApplicationPackage.createPackageContents();
- theJspPackage.createPackageContents();
- theTaglibPackage.createPackageContents();
-
- // Step 2: complete initialization
- theWebapplicationPackage.initializePackageContents();
- theEjbPackage.initializePackageContents();
- theClientPackage.initializePackageContents();
- theCommonPackage.initializePackageContents();
- theJcaPackage.initializePackageContents();
- theWebservice_clientPackage.initializePackageContents();
- theWscommonPackage.initializePackageContents();
- theWsddPackage.initializePackageContents();
- theApplicationPackage.initializePackageContents();
- theJspPackage.initializePackageContents();
- theTaglibPackage.initializePackageContents();
-
- 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);//$NON-NLS-1$
- initEAttribute(getWebApp_Distributable(), ecorePackage.getEBoolean(), "distributable", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEAttribute(getWebApp_Version(), ecorePackage.getEString(), "version", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getWebApp_Contexts(), this.getContextParam(), this.getContextParam_WebApp(), "contexts", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getWebApp_ErrorPages(), this.getErrorPage(), this.getErrorPage_WebApp(), "errorPages", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getWebApp_FileList(), this.getWelcomeFileList(), this.getWelcomeFileList_WebApp(), "fileList", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getWebApp_TagLibs(), this.getTagLibRef(), this.getTagLibRef_WebApp(), "tagLibs", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getWebApp_Constraints(), this.getSecurityConstraint(), this.getSecurityConstraint_WebApp(), "constraints", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getWebApp_LoginConfig(), this.getLoginConfig(), this.getLoginConfig_WebApp(), "loginConfig", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getWebApp_MimeMappings(), this.getMimeMapping(), this.getMimeMapping_WebApp(), "mimeMappings", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getWebApp_SessionConfig(), this.getSessionConfig(), this.getSessionConfig_WebApp(), "sessionConfig", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getWebApp_ServletMappings(), this.getServletMapping(), this.getServletMapping_WebApp(), "servletMappings", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getWebApp_Servlets(), this.getServlet(), this.getServlet_WebApp(), "servlets", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getWebApp_SecurityRoles(), theCommonPackage.getSecurityRole(), null, "securityRoles", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getWebApp_Filters(), this.getFilter(), null, "filters", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getWebApp_FilterMappings(), this.getFilterMapping(), null, "filterMappings", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getWebApp_Listeners(), theCommonPackage.getListener(), null, "listeners", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getWebApp_ContextParams(), theCommonPackage.getParamValue(), null, "contextParams", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getWebApp_JspConfig(), theJspPackage.getJSPConfig(), null, "jspConfig", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getWebApp_MessageDestinations(), theCommonPackage.getMessageDestination(), null, "messageDestinations", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getWebApp_LocalEncodingMappingList(), this.getLocalEncodingMappingList(), null, "localEncodingMappingList", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
-
- initEClass(contextParamEClass, ContextParam.class, "ContextParam", !IS_ABSTRACT, !IS_INTERFACE);//$NON-NLS-1$
- initEAttribute(getContextParam_ParamName(), ecorePackage.getEString(), "paramName", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEAttribute(getContextParam_ParamValue(), ecorePackage.getEString(), "paramValue", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEAttribute(getContextParam_Description(), ecorePackage.getEString(), "description", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getContextParam_WebApp(), this.getWebApp(), this.getWebApp_Contexts(), "webApp", null, 0, 1, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
-
- initEClass(servletEClass, Servlet.class, "Servlet", !IS_ABSTRACT, !IS_INTERFACE);//$NON-NLS-1$
- initEAttribute(getServlet_ServletName(), ecorePackage.getEString(), "servletName", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEAttribute(getServlet_LoadOnStartup(), ecorePackage.getEIntegerObject(), "loadOnStartup", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getServlet_WebApp(), this.getWebApp(), this.getWebApp_Servlets(), "webApp", null, 0, 1, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getServlet_WebType(), this.getWebType(), null, "webType", null, 1, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getServlet_Params(), this.getInitParam(), null, "params", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getServlet_SecurityRoleRefs(), theCommonPackage.getSecurityRoleRef(), null, "securityRoleRefs", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getServlet_RunAs(), theCommonPackage.getRunAsSpecifiedIdentity(), null, "runAs", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getServlet_InitParams(), theCommonPackage.getParamValue(), null, "initParams", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
-
- initEClass(servletMappingEClass, ServletMapping.class, "ServletMapping", !IS_ABSTRACT, !IS_INTERFACE);//$NON-NLS-1$
- initEAttribute(getServletMapping_UrlPattern(), ecorePackage.getEString(), "urlPattern", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEAttribute(getServletMapping_Name(), ecorePackage.getEString(), "name", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getServletMapping_WebApp(), this.getWebApp(), this.getWebApp_ServletMappings(), "webApp", null, 0, 1, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getServletMapping_Servlet(), this.getServlet(), null, "servlet", null, 1, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
-
- initEClass(sessionConfigEClass, SessionConfig.class, "SessionConfig", !IS_ABSTRACT, !IS_INTERFACE);//$NON-NLS-1$
- initEAttribute(getSessionConfig_SessionTimeout(), ecorePackage.getEInt(), "sessionTimeout", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getSessionConfig_WebApp(), this.getWebApp(), this.getWebApp_SessionConfig(), "webApp", null, 0, 1, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
-
- initEClass(mimeMappingEClass, MimeMapping.class, "MimeMapping", !IS_ABSTRACT, !IS_INTERFACE);//$NON-NLS-1$
- initEAttribute(getMimeMapping_Extension(), ecorePackage.getEString(), "extension", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEAttribute(getMimeMapping_MimeType(), ecorePackage.getEString(), "mimeType", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getMimeMapping_WebApp(), this.getWebApp(), this.getWebApp_MimeMappings(), "webApp", null, 0, 1, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
-
- initEClass(welcomeFileListEClass, WelcomeFileList.class, "WelcomeFileList", !IS_ABSTRACT, !IS_INTERFACE);//$NON-NLS-1$
- initEReference(getWelcomeFileList_WebApp(), this.getWebApp(), this.getWebApp_FileList(), "webApp", null, 0, 1, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getWelcomeFileList_File(), this.getWelcomeFile(), this.getWelcomeFile_FileList(), "file", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
-
- initEClass(errorPageEClass, ErrorPage.class, "ErrorPage", !IS_ABSTRACT, !IS_INTERFACE);//$NON-NLS-1$
- initEAttribute(getErrorPage_Location(), ecorePackage.getEString(), "location", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getErrorPage_WebApp(), this.getWebApp(), this.getWebApp_ErrorPages(), "webApp", null, 0, 1, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
-
- initEClass(tagLibRefEClass, TagLibRef.class, "TagLibRef", !IS_ABSTRACT, !IS_INTERFACE);//$NON-NLS-1$
- initEAttribute(getTagLibRef_TaglibURI(), ecorePackage.getEString(), "taglibURI", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEAttribute(getTagLibRef_TaglibLocation(), ecorePackage.getEString(), "taglibLocation", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getTagLibRef_WebApp(), this.getWebApp(), this.getWebApp_TagLibs(), "webApp", null, 0, 1, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
-
- initEClass(securityConstraintEClass, SecurityConstraint.class, "SecurityConstraint", !IS_ABSTRACT, !IS_INTERFACE);//$NON-NLS-1$
- initEAttribute(getSecurityConstraint_DisplayName(), ecorePackage.getEString(), "displayName", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getSecurityConstraint_WebApp(), this.getWebApp(), this.getWebApp_Constraints(), "webApp", null, 0, 1, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getSecurityConstraint_WebResourceCollections(), this.getWebResourceCollection(), this.getWebResourceCollection_SecConstraint(), "webResourceCollections", null, 1, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getSecurityConstraint_AuthConstraint(), this.getAuthConstraint(), this.getAuthConstraint_SecConstraint(), "authConstraint", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getSecurityConstraint_UserDataConstraint(), this.getUserDataConstraint(), this.getUserDataConstraint_SecConstraint(), "userDataConstraint", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getSecurityConstraint_DisplayNames(), theCommonPackage.getDisplayName(), null, "displayNames", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
-
- initEClass(webResourceCollectionEClass, WebResourceCollection.class, "WebResourceCollection", !IS_ABSTRACT, !IS_INTERFACE);//$NON-NLS-1$
- initEAttribute(getWebResourceCollection_WebResourceName(), ecorePackage.getEString(), "webResourceName", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEAttribute(getWebResourceCollection_Description(), ecorePackage.getEString(), "description", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEAttribute(getWebResourceCollection_UrlPattern(), ecorePackage.getEString(), "urlPattern", null, 1, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEAttribute(getWebResourceCollection_HttpMethod(), this.getHTTPMethodTypeEnum(), "httpMethod", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getWebResourceCollection_SecConstraint(), this.getSecurityConstraint(), this.getSecurityConstraint_WebResourceCollections(), "secConstraint", null, 0, 1, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getWebResourceCollection_URLs(), this.getURLPatternType(), this.getURLPatternType_ResCollection(), "URLs", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getWebResourceCollection_Descriptions(), theCommonPackage.getDescription(), null, "descriptions", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getWebResourceCollection_HTTPs(), this.getHTTPMethodType(), null, "HTTPs", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
-
- initEClass(authConstraintEClass, AuthConstraint.class, "AuthConstraint", !IS_ABSTRACT, !IS_INTERFACE);//$NON-NLS-1$
- initEAttribute(getAuthConstraint_Description(), ecorePackage.getEString(), "description", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEAttribute(getAuthConstraint_Roles(), ecorePackage.getEString(), "roles", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getAuthConstraint_SecConstraint(), this.getSecurityConstraint(), this.getSecurityConstraint_AuthConstraint(), "secConstraint", null, 0, 1, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getAuthConstraint_Descriptions(), theCommonPackage.getDescription(), null, "descriptions", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
-
- initEClass(userDataConstraintEClass, UserDataConstraint.class, "UserDataConstraint", !IS_ABSTRACT, !IS_INTERFACE);//$NON-NLS-1$
- initEAttribute(getUserDataConstraint_Description(), ecorePackage.getEString(), "description", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEAttribute(getUserDataConstraint_TransportGuarantee(), this.getTransportGuaranteeType(), "transportGuarantee", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getUserDataConstraint_SecConstraint(), this.getSecurityConstraint(), this.getSecurityConstraint_UserDataConstraint(), "secConstraint", null, 0, 1, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getUserDataConstraint_Descriptions(), theCommonPackage.getDescription(), null, "descriptions", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
-
- initEClass(loginConfigEClass, LoginConfig.class, "LoginConfig", !IS_ABSTRACT, !IS_INTERFACE);//$NON-NLS-1$
- initEAttribute(getLoginConfig_AuthMethod(), this.getAuthMethodKind(), "authMethod", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEAttribute(getLoginConfig_RealmName(), ecorePackage.getEString(), "realmName", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEAttribute(getLoginConfig_AuthorizationMethod(), ecorePackage.getEString(), "authorizationMethod", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getLoginConfig_WebApp(), this.getWebApp(), this.getWebApp_LoginConfig(), "webApp", null, 0, 1, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getLoginConfig_FormLoginConfig(), this.getFormLoginConfig(), this.getFormLoginConfig_LoginConfig(), "formLoginConfig", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
-
- initEClass(formLoginConfigEClass, FormLoginConfig.class, "FormLoginConfig", !IS_ABSTRACT, !IS_INTERFACE);//$NON-NLS-1$
- initEAttribute(getFormLoginConfig_FormLoginPage(), ecorePackage.getEString(), "formLoginPage", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEAttribute(getFormLoginConfig_FormErrorPage(), ecorePackage.getEString(), "formErrorPage", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getFormLoginConfig_LoginConfig(), this.getLoginConfig(), this.getLoginConfig_FormLoginConfig(), "loginConfig", null, 0, 1, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
-
- initEClass(initParamEClass, InitParam.class, "InitParam", !IS_ABSTRACT, !IS_INTERFACE);//$NON-NLS-1$
- initEAttribute(getInitParam_ParamName(), ecorePackage.getEString(), "paramName", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEAttribute(getInitParam_ParamValue(), ecorePackage.getEString(), "paramValue", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEAttribute(getInitParam_Description(), ecorePackage.getEString(), "description", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
-
- initEClass(webTypeEClass, WebType.class, "WebType", IS_ABSTRACT, !IS_INTERFACE);//$NON-NLS-1$
-
- initEClass(servletTypeEClass, ServletType.class, "ServletType", !IS_ABSTRACT, !IS_INTERFACE);//$NON-NLS-1$
- initEAttribute(getServletType_ClassName(), ecorePackage.getEString(), "className", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
-
- initEClass(jspTypeEClass, JSPType.class, "JSPType", !IS_ABSTRACT, !IS_INTERFACE);//$NON-NLS-1$
- initEAttribute(getJSPType_JspFile(), ecorePackage.getEString(), "jspFile", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
-
- initEClass(urlPatternTypeEClass, URLPatternType.class, "URLPatternType", !IS_ABSTRACT, !IS_INTERFACE);//$NON-NLS-1$
- initEAttribute(getURLPatternType_UrlPattern(), ecorePackage.getEString(), "urlPattern", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getURLPatternType_ResCollection(), this.getWebResourceCollection(), this.getWebResourceCollection_URLs(), "resCollection", null, 0, 1, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
-
- initEClass(roleNameTypeEClass, RoleNameType.class, "RoleNameType", !IS_ABSTRACT, !IS_INTERFACE);//$NON-NLS-1$
- initEAttribute(getRoleNameType_RoleName(), ecorePackage.getEString(), "roleName", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
-
- initEClass(welcomeFileEClass, WelcomeFile.class, "WelcomeFile", !IS_ABSTRACT, !IS_INTERFACE);//$NON-NLS-1$
- initEAttribute(getWelcomeFile_WelcomeFile(), ecorePackage.getEString(), "welcomeFile", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getWelcomeFile_FileList(), this.getWelcomeFileList(), this.getWelcomeFileList_File(), "fileList", null, 0, 1, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
-
- initEClass(exceptionTypeErrorPageEClass, ExceptionTypeErrorPage.class, "ExceptionTypeErrorPage", !IS_ABSTRACT, !IS_INTERFACE);//$NON-NLS-1$
- initEReference(getExceptionTypeErrorPage_ExceptionType(), theJavaRefPackage.getJavaClass(), null, "exceptionType", null, 1, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
-
- initEClass(errorCodeErrorPageEClass, ErrorCodeErrorPage.class, "ErrorCodeErrorPage", !IS_ABSTRACT, !IS_INTERFACE);//$NON-NLS-1$
- initEAttribute(getErrorCodeErrorPage_ErrorCode(), ecorePackage.getEString(), "errorCode", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
-
- initEClass(filterMappingEClass, FilterMapping.class, "FilterMapping", !IS_ABSTRACT, !IS_INTERFACE);//$NON-NLS-1$
- initEAttribute(getFilterMapping_UrlPattern(), ecorePackage.getEString(), "urlPattern", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEAttribute(getFilterMapping_DispatcherType(), this.getDispatcherType(), "dispatcherType", null, 0, 4, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getFilterMapping_Filter(), this.getFilter(), null, "filter", null, 1, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getFilterMapping_Servlet(), this.getServlet(), null, "servlet", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
-
- initEClass(filterEClass, Filter.class, "Filter", !IS_ABSTRACT, !IS_INTERFACE);//$NON-NLS-1$
- initEAttribute(getFilter_Name(), ecorePackage.getEString(), "name", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getFilter_InitParams(), this.getInitParam(), null, "initParams", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getFilter_FilterClass(), theJavaRefPackage.getJavaClass(), null, "filterClass", null, 1, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getFilter_InitParamValues(), theCommonPackage.getParamValue(), null, "initParamValues", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
-
- initEClass(localEncodingMappingListEClass, LocalEncodingMappingList.class, "LocalEncodingMappingList", !IS_ABSTRACT, !IS_INTERFACE);//$NON-NLS-1$
- initEReference(getLocalEncodingMappingList_LocalEncodingMappings(), this.getLocalEncodingMapping(), null, "localEncodingMappings", null, 1, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
-
- initEClass(localEncodingMappingEClass, LocalEncodingMapping.class, "LocalEncodingMapping", !IS_ABSTRACT, !IS_INTERFACE);//$NON-NLS-1$
- initEAttribute(getLocalEncodingMapping_Locale(), ecorePackage.getEString(), "locale", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEAttribute(getLocalEncodingMapping_Encoding(), ecorePackage.getEString(), "encoding", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
-
- initEClass(httpMethodTypeEClass, HTTPMethodType.class, "HTTPMethodType", !IS_ABSTRACT, !IS_INTERFACE);//$NON-NLS-1$
- initEAttribute(getHTTPMethodType_HttpMethod(), ecorePackage.getEString(), "httpMethod", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
-
- // Initialize enums and add enum literals
- initEEnum(resAuthServletTypeEEnum, ResAuthServletType.class, "ResAuthServletType");//$NON-NLS-1$
- addEEnumLiteral(resAuthServletTypeEEnum, ResAuthServletType.CONTAINER_LITERAL);
- addEEnumLiteral(resAuthServletTypeEEnum, ResAuthServletType.SERVLET_LITERAL);
-
- initEEnum(httpMethodTypeEnumEEnum, HTTPMethodTypeEnum.class, "HTTPMethodTypeEnum");//$NON-NLS-1$
- 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");//$NON-NLS-1$
- addEEnumLiteral(transportGuaranteeTypeEEnum, TransportGuaranteeType.NONE_LITERAL);
- addEEnumLiteral(transportGuaranteeTypeEEnum, TransportGuaranteeType.INTEGRAL_LITERAL);
- addEEnumLiteral(transportGuaranteeTypeEEnum, TransportGuaranteeType.CONFIDENTIAL_LITERAL);
-
- initEEnum(dispatcherTypeEEnum, DispatcherType.class, "DispatcherType");//$NON-NLS-1$
- 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");//$NON-NLS-1$
- 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/impl/WelcomeFileImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/WelcomeFileImpl.java
deleted file mode 100644
index 6b913efc6..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/WelcomeFileImpl.java
+++ /dev/null
@@ -1,245 +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.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()); //$NON-NLS-1$
- 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: ");//$NON-NLS-1$
- result.append(welcomeFile);
- result.append(')');
- return result.toString();
- }
-
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/WelcomeFileListImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/WelcomeFileListImpl.java
deleted file mode 100644
index 82c1c3690..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/impl/WelcomeFileListImpl.java
+++ /dev/null
@@ -1,234 +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.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());//$NON-NLS-1$
- 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/util/WebapplicationAdapterFactory.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/util/WebapplicationAdapterFactory.java
deleted file mode 100644
index eef760728..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/util/WebapplicationAdapterFactory.java
+++ /dev/null
@@ -1,700 +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.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.common.Listener;
-import org.eclipse.jst.j2ee.jsp.TagLibRefType;
-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 caseListener(Listener object) {
- return createListenerAdapter();
- }
- 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 caseTagLibRefType(TagLibRefType object) {
- return createTagLibRefTypeAdapter();
- }
- 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.internal.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.internal.webapplication.LocalEncodingMappingList
- * @generated
- */
- public Adapter createLocalEncodingMappingListAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.internal.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.internal.webapplication.LocalEncodingMapping
- * @generated
- */
- public Adapter createLocalEncodingMappingAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.internal.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.internal.common.DescriptionGroup
- * @generated
- */
- public Adapter createDescriptionGroupAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.internal.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.internal.common.CompatibilityDescriptionGroup
- * @generated
- */
- public Adapter createCompatibilityDescriptionGroupAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.internal.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.internal.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/util/WebapplicationSwitch.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/util/WebapplicationSwitch.java
deleted file mode 100644
index c95cbfc13..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webapplication/util/WebapplicationSwitch.java
+++ /dev/null
@@ -1,776 +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.util;
-
-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.internal.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) {
- EClass theEClass = theEObject.eClass();
- if (theEClass.eContainer() == modelPackage) {
- switch (theEClass.getClassifierID()) {
- 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.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);
- }
- }
- 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/webservice/WebServiceConstants.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/WebServiceConstants.java
deleted file mode 100644
index d6eeb0159..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/WebServiceConstants.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.webservice;
-
-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/WebServiceInit.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/WebServiceInit.java
deleted file mode 100644
index 8486f5b4e..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/WebServiceInit.java
+++ /dev/null
@@ -1,60 +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.webservice;
-
-import org.eclipse.jst.j2ee.internal.J2EEInit;
-import org.eclipse.jst.j2ee.webservice.jaxrpcmap.JaxrpcmapResourceFactory;
-import org.eclipse.jst.j2ee.webservice.jaxrpcmap.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/util/DescriptionGroupHelper.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/util/DescriptionGroupHelper.java
deleted file mode 100644
index b22f5e732..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/util/DescriptionGroupHelper.java
+++ /dev/null
@@ -1,1577 +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.webservice.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.common.J2EEVersionResource;
-import org.eclipse.jst.j2ee.internal.J2EEVersionConstants;
-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/util/DescriptionGroupItem.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/util/DescriptionGroupItem.java
deleted file mode 100644
index 85b2236f0..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/util/DescriptionGroupItem.java
+++ /dev/null
@@ -1,77 +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.webservice.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));
-
- 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;
- }
-
- 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/util/QNameHelper.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/util/QNameHelper.java
deleted file mode 100644
index 526e5ab6b..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/util/QNameHelper.java
+++ /dev/null
@@ -1,130 +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.webservice.util;
-
-import org.eclipse.jst.j2ee.common.J2EEVersionResource;
-import org.eclipse.jst.j2ee.common.QName;
-import org.eclipse.jst.j2ee.internal.J2EEVersionConstants;
-
-
-
-/**
-* 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/wsclient/ComponentScopedRefs.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/ComponentScopedRefs.java
deleted file mode 100644
index e0eb762ba..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, 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.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 -->
- * @since J2EE1.4 deprecated
- * <!-- end-model-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.jst.j2ee.internal.webservice.wsclient.ComponentScopedRefs#getComponentName <em>Component Name</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webservice.wsclient.ComponentScopedRefs#getServiceRefs <em>Service Refs</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.jst.j2ee.internal.webservice.wsclient.Webservice_clientPackage#getComponentScopedRefs()
- * @model
- * @generated
- */
-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.internal.webservice.wsclient.Webservice_clientPackage#getComponentScopedRefs_ComponentName()
- * @model
- * @generated
- */
- String getComponentName();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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.internal.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.internal.webservice.wsclient.Webservice_clientPackage#getComponentScopedRefs_ServiceRefs()
- * @model type="org.eclipse.jst.j2ee.internal.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 829bde1db..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, 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.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.internal.webservice.wsclient.Handler#getHandlerName <em>Handler Name</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webservice.wsclient.Handler#getSoapRoles <em>Soap Roles</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webservice.wsclient.Handler#getPortNames <em>Port Names</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webservice.wsclient.Handler#getHandlerClass <em>Handler Class</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webservice.wsclient.Handler#getInitParams <em>Init Params</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webservice.wsclient.Handler#getSoapHeaders <em>Soap Headers</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.jst.j2ee.internal.webservice.wsclient.Webservice_clientPackage#getHandler()
- * @model
- * @generated
- */
-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.internal.webservice.wsclient.Webservice_clientPackage#getHandler_HandlerName()
- * @model
- * @generated
- */
- String getHandlerName();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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.internal.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.internal.webservice.wsclient.Webservice_clientPackage#getHandler_SoapHeaders()
- * @model type="org.eclipse.jst.j2ee.internal.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.internal.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.internal.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.internal.webservice.wsclient.Webservice_clientPackage#getHandler_HandlerClass()
- * @model required="true"
- * @generated
- */
- JavaClass getHandlerClass();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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.internal.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.internal.webservice.wsclient.Webservice_clientPackage#getHandler_InitParams()
- * @model type="org.eclipse.jst.j2ee.internal.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 204f48c34..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, 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.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.internal.webservice.wsclient.PortComponentRef#getPortComponentLink <em>Port Component Link</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webservice.wsclient.PortComponentRef#getServiceEndpointInterface <em>Service Endpoint Interface</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.jst.j2ee.internal.webservice.wsclient.Webservice_clientPackage#getPortComponentRef()
- * @model
- * @generated
- */
-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.internal.webservice.wsclient.Webservice_clientPackage#getPortComponentRef_PortComponentLink()
- * @model
- * @generated
- */
- String getPortComponentLink();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsclient.Webservice_clientPackage#getPortComponentRef_ServiceEndpointInterface()
- * @model required="true"
- * @generated
- */
- JavaClass getServiceEndpointInterface();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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 a18ace5b5..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, 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.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.internal.webservice.wsclient.ServiceRef#getServiceInterface <em>Service Interface</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webservice.wsclient.ServiceRef#getServiceRefName <em>Service Ref Name</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webservice.wsclient.ServiceRef#getWsdlFile <em>Wsdl File</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webservice.wsclient.ServiceRef#getJaxrpcMappingFile <em>Jaxrpc Mapping File</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webservice.wsclient.ServiceRef#getPortComponentRefs <em>Port Component Refs</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webservice.wsclient.ServiceRef#getHandlers <em>Handlers</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webservice.wsclient.ServiceRef#getServiceQname <em>Service Qname</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.jst.j2ee.internal.webservice.wsclient.Webservice_clientPackage#getServiceRef()
- * @model
- * @generated
- */
-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.internal.webservice.wsclient.Webservice_clientPackage#getServiceRef_ServiceRefName()
- * @model
- * @generated
- */
- String getServiceRefName();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsclient.Webservice_clientPackage#getServiceRef_WsdlFile()
- * @model
- * @generated
- */
- String getWsdlFile();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsclient.Webservice_clientPackage#getServiceRef_JaxrpcMappingFile()
- * @model
- * @generated
- */
- String getJaxrpcMappingFile();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsclient.Webservice_clientPackage#getServiceRef_ServiceInterface()
- * @model required="true"
- * @generated
- */
- JavaClass getServiceInterface();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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.internal.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.internal.webservice.wsclient.Webservice_clientPackage#getServiceRef_PortComponentRefs()
- * @model type="org.eclipse.jst.j2ee.internal.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.internal.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.internal.webservice.wsclient.Webservice_clientPackage#getServiceRef_Handlers()
- * @model type="org.eclipse.jst.j2ee.internal.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.internal.webservice.wsclient.Webservice_clientPackage#getServiceRef_ServiceQname()
- * @model containment="true" required="true"
- * @generated
- */
- QName getServiceQname();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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 fea7dda6c..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, 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.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 -->
- * @since J2EE1.4 deprecated
- * <!-- end-model-doc -->
- *
- * <p>
- * The following features are supported:
- * <ul>
- * <li>{@link org.eclipse.jst.j2ee.internal.webservice.wsclient.WebServicesClient#getComponentScopedRefs <em>Component Scoped Refs</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webservice.wsclient.WebServicesClient#getServiceRefs <em>Service Refs</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.jst.j2ee.internal.webservice.wsclient.Webservice_clientPackage#getWebServicesClient()
- * @model
- * @generated
- */
-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.internal.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.internal.webservice.wsclient.Webservice_clientPackage#getWebServicesClient_ComponentScopedRefs()
- * @model type="org.eclipse.jst.j2ee.internal.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.internal.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.internal.webservice.wsclient.Webservice_clientPackage#getWebServicesClient_ServiceRefs()
- * @model type="org.eclipse.jst.j2ee.internal.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 ac4323921..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/WebServicesResource.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
- *******************************************************************************/
-/*
- * 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.common.XMLResource;
-
-public interface WebServicesResource extends XMLResource{
- 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 c3f82600e..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/Webservice_clientFactory.java
+++ /dev/null
@@ -1,86 +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.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.internal.webservice.wsclient.Webservice_clientPackage
- * @generated
- */
-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.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 -->
- * <!-- 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 e12a048ec..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/Webservice_clientPackage.java
+++ /dev/null
@@ -1,729 +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.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>
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.j2ee.internal.webservice.wsclient.Webservice_clientFactory
- * @generated
- */
-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.internal.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.impl.Webservice_clientPackageImpl.init();
-
- /**
- * The meta object id for the '{@link org.eclipse.jst.j2ee.internal.webservice.wsclient.impl.ServiceRefImpl <em>Service Ref</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.j2ee.internal.webservice.wsclient.impl.ServiceRefImpl
- * @see org.eclipse.jst.j2ee.internal.webservice.wsclient.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.internal.webservice.wsclient.impl.PortComponentRefImpl <em>Port Component Ref</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.j2ee.internal.webservice.wsclient.impl.PortComponentRefImpl
- * @see org.eclipse.jst.j2ee.internal.webservice.wsclient.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.internal.webservice.wsclient.impl.HandlerImpl <em>Handler</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.j2ee.internal.webservice.wsclient.impl.HandlerImpl
- * @see org.eclipse.jst.j2ee.internal.webservice.wsclient.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.internal.webservice.wsclient.impl.WebServicesClientImpl <em>Web Services Client</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.j2ee.internal.webservice.wsclient.impl.WebServicesClientImpl
- * @see org.eclipse.jst.j2ee.internal.webservice.wsclient.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.internal.webservice.wsclient.impl.ComponentScopedRefsImpl <em>Component Scoped Refs</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.j2ee.internal.webservice.wsclient.impl.ComponentScopedRefsImpl
- * @see org.eclipse.jst.j2ee.internal.webservice.wsclient.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.internal.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.internal.webservice.wsclient.ServiceRef
- * @generated
- */
- EClass getServiceRef();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsclient.ServiceRef#getServiceRefName()
- * @see #getServiceRef()
- * @generated
- */
- EAttribute getServiceRef_ServiceRefName();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsclient.ServiceRef#getWsdlFile()
- * @see #getServiceRef()
- * @generated
- */
- EAttribute getServiceRef_WsdlFile();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsclient.ServiceRef#getJaxrpcMappingFile()
- * @see #getServiceRef()
- * @generated
- */
- EAttribute getServiceRef_JaxrpcMappingFile();
-
- /**
- * Returns the meta object for the reference '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsclient.ServiceRef#getServiceInterface()
- * @see #getServiceRef()
- * @generated
- */
- EReference getServiceRef_ServiceInterface();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsclient.ServiceRef#getPortComponentRefs()
- * @see #getServiceRef()
- * @generated
- */
- EReference getServiceRef_PortComponentRefs();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsclient.ServiceRef#getHandlers()
- * @see #getServiceRef()
- * @generated
- */
- EReference getServiceRef_Handlers();
-
- /**
- * Returns the meta object for the containment reference '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsclient.ServiceRef#getServiceQname()
- * @see #getServiceRef()
- * @generated
- */
- EReference getServiceRef_ServiceQname();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsclient.PortComponentRef
- * @generated
- */
- EClass getPortComponentRef();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsclient.PortComponentRef#getPortComponentLink()
- * @see #getPortComponentRef()
- * @generated
- */
- EAttribute getPortComponentRef_PortComponentLink();
-
- /**
- * Returns the meta object for the reference '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsclient.PortComponentRef#getServiceEndpointInterface()
- * @see #getPortComponentRef()
- * @generated
- */
- EReference getPortComponentRef_ServiceEndpointInterface();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsclient.Handler
- * @generated
- */
- EClass getHandler();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsclient.Handler#getHandlerName()
- * @see #getHandler()
- * @generated
- */
- EAttribute getHandler_HandlerName();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsclient.Handler#getSoapHeaders()
- * @see #getHandler()
- * @generated
- */
- EReference getHandler_SoapHeaders();
-
- /**
- * Returns the meta object for the attribute list '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsclient.Handler#getSoapRoles()
- * @see #getHandler()
- * @generated
- */
- EAttribute getHandler_SoapRoles();
-
- /**
- * Returns the meta object for the attribute list '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsclient.Handler#getPortNames()
- * @see #getHandler()
- * @generated
- */
- EAttribute getHandler_PortNames();
-
- /**
- * Returns the meta object for the reference '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsclient.Handler#getHandlerClass()
- * @see #getHandler()
- * @generated
- */
- EReference getHandler_HandlerClass();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsclient.Handler#getInitParams()
- * @see #getHandler()
- * @generated
- */
- EReference getHandler_InitParams();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsclient.WebServicesClient
- * @generated
- */
- EClass getWebServicesClient();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsclient.WebServicesClient#getComponentScopedRefs()
- * @see #getWebServicesClient()
- * @generated
- */
- EReference getWebServicesClient_ComponentScopedRefs();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsclient.WebServicesClient#getServiceRefs()
- * @see #getWebServicesClient()
- * @generated
- */
- EReference getWebServicesClient_ServiceRefs();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsclient.ComponentScopedRefs
- * @generated
- */
- EClass getComponentScopedRefs();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsclient.ComponentScopedRefs#getComponentName()
- * @see #getComponentScopedRefs()
- * @generated
- */
- EAttribute getComponentScopedRefs_ComponentName();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.internal.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.internal.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/impl/ComponentScopedRefsImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/impl/ComponentScopedRefsImpl.java
deleted file mode 100644
index 4cdb5fe0f..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/impl/ComponentScopedRefsImpl.java
+++ /dev/null
@@ -1,223 +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.webservice.wsclient.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.internal.webservice.wsclient.impl.ComponentScopedRefsImpl#getComponentName <em>Component Name</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webservice.wsclient.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: ");//$NON-NLS-1$
- 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/impl/HandlerImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/impl/HandlerImpl.java
deleted file mode 100644
index a818e1d38..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/impl/HandlerImpl.java
+++ /dev/null
@@ -1,473 +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.webservice.wsclient.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.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.internal.webservice.wsclient.impl.HandlerImpl#getHandlerName <em>Handler Name</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webservice.wsclient.impl.HandlerImpl#getSoapRoles <em>Soap Roles</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webservice.wsclient.impl.HandlerImpl#getPortNames <em>Port Names</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webservice.wsclient.impl.HandlerImpl#getHandlerClass <em>Handler Class</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webservice.wsclient.impl.HandlerImpl#getInitParams <em>Init Params</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webservice.wsclient.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: ");//$NON-NLS-1$
- result.append(handlerName);
- result.append(", soapRoles: ");//$NON-NLS-1$
- result.append(soapRoles);
- result.append(", portNames: ");//$NON-NLS-1$
- 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/impl/PortComponentRefImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/impl/PortComponentRefImpl.java
deleted file mode 100644
index f7ed15526..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/impl/PortComponentRefImpl.java
+++ /dev/null
@@ -1,226 +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.webservice.wsclient.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.internal.webservice.wsclient.impl.PortComponentRefImpl#getPortComponentLink <em>Port Component Link</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webservice.wsclient.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: ");//$NON-NLS-1$
- 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/impl/ServiceRefImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/impl/ServiceRefImpl.java
deleted file mode 100644
index 7319c5f6f..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/impl/ServiceRefImpl.java
+++ /dev/null
@@ -1,575 +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.webservice.wsclient.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.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.internal.webservice.wsclient.impl.ServiceRefImpl#getServiceInterface <em>Service Interface</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webservice.wsclient.impl.ServiceRefImpl#getServiceRefName <em>Service Ref Name</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webservice.wsclient.impl.ServiceRefImpl#getWsdlFile <em>Wsdl File</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webservice.wsclient.impl.ServiceRefImpl#getJaxrpcMappingFile <em>Jaxrpc Mapping File</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webservice.wsclient.impl.ServiceRefImpl#getPortComponentRefs <em>Port Component Refs</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webservice.wsclient.impl.ServiceRefImpl#getHandlers <em>Handlers</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webservice.wsclient.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: ");//$NON-NLS-1$
- result.append(serviceRefName);
- result.append(", wsdlFile: ");//$NON-NLS-1$
- result.append(wsdlFile);
- result.append(", jaxrpcMappingFile: ");//$NON-NLS-1$
- 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/impl/WebServicesClientImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/impl/WebServicesClientImpl.java
deleted file mode 100644
index 875be9cd7..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/impl/WebServicesClientImpl.java
+++ /dev/null
@@ -1,191 +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.webservice.wsclient.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.internal.webservice.wsclient.impl.WebServicesClientImpl#getComponentScopedRefs <em>Component Scoped Refs</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webservice.wsclient.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/impl/WebServicesClientResourceFactory.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/impl/WebServicesClientResourceFactory.java
deleted file mode 100644
index 01a4de98a..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/impl/WebServicesClientResourceFactory.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
- *******************************************************************************/
-/*
- * 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.impl;
-
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.emf.ecore.resource.Resource;
-import org.eclipse.jst.j2ee.common.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.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 {
- /**
- * 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);
- }
-
- /**
- * 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/impl/WebServicesResourceImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/impl/WebServicesResourceImpl.java
deleted file mode 100644
index e9be27be3..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/impl/WebServicesResourceImpl.java
+++ /dev/null
@@ -1,145 +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 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.impl;
-
-
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.jst.j2ee.common.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/impl/Webservice_clientFactoryImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/impl/Webservice_clientFactoryImpl.java
deleted file mode 100644
index 4e588db12..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/impl/Webservice_clientFactoryImpl.java
+++ /dev/null
@@ -1,127 +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.webservice.wsclient.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 and 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"); //$NON-NLS-1$//$NON-NLS-2$
- }
- }
-
- /**
- * <!-- 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/impl/Webservice_clientPackageImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/impl/Webservice_clientPackageImpl.java
deleted file mode 100644
index 1f8bdffc7..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/impl/Webservice_clientPackageImpl.java
+++ /dev/null
@@ -1,531 +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.webservice.wsclient.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.impl.JavaRefPackageImpl;
-import org.eclipse.jst.j2ee.application.ApplicationPackage;
-import org.eclipse.jst.j2ee.application.impl.ApplicationPackageImpl;
-import org.eclipse.jst.j2ee.client.ClientPackage;
-import org.eclipse.jst.j2ee.client.impl.ClientPackageImpl;
-import org.eclipse.jst.j2ee.common.CommonPackage;
-import org.eclipse.jst.j2ee.common.impl.CommonPackageImpl;
-import org.eclipse.jst.j2ee.ejb.EjbPackage;
-import org.eclipse.jst.j2ee.ejb.impl.EjbPackageImpl;
-import org.eclipse.jst.j2ee.jca.JcaPackage;
-import org.eclipse.jst.j2ee.jca.impl.JcaPackageImpl;
-import org.eclipse.jst.j2ee.jsp.JspPackage;
-import org.eclipse.jst.j2ee.jsp.impl.JspPackageImpl;
-import org.eclipse.jst.j2ee.taglib.TaglibPackage;
-import org.eclipse.jst.j2ee.taglib.impl.TaglibPackageImpl;
-import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage;
-import org.eclipse.jst.j2ee.webapplication.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.impl.WscommonPackageImpl;
-import org.eclipse.jst.j2ee.webservice.wsdd.WsddPackage;
-import org.eclipse.jst.j2ee.webservice.wsdd.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.internal.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 EPackage ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new Webservice_clientPackageImpl());
-
- isInited = true;
-
- // Initialize simple dependencies
- EcorePackageImpl.init();
- JavaRefPackageImpl.init();
-
- // Obtain or create and register interdependencies
- EjbPackageImpl theEjbPackage = (EjbPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(EjbPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(EjbPackage.eNS_URI) : EjbPackage.eINSTANCE);
- ClientPackageImpl theClientPackage = (ClientPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ClientPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(ClientPackage.eNS_URI) : ClientPackage.eINSTANCE);
- CommonPackageImpl theCommonPackage = (CommonPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI) : CommonPackage.eINSTANCE);
- JcaPackageImpl theJcaPackage = (JcaPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(JcaPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(JcaPackage.eNS_URI) : JcaPackage.eINSTANCE);
- WscommonPackageImpl theWscommonPackage = (WscommonPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(WscommonPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(WscommonPackage.eNS_URI) : WscommonPackage.eINSTANCE);
- WsddPackageImpl theWsddPackage = (WsddPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(WsddPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(WsddPackage.eNS_URI) : WsddPackage.eINSTANCE);
- WebapplicationPackageImpl theWebapplicationPackage = (WebapplicationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(WebapplicationPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(WebapplicationPackage.eNS_URI) : WebapplicationPackage.eINSTANCE);
- ApplicationPackageImpl theApplicationPackage = (ApplicationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ApplicationPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(ApplicationPackage.eNS_URI) : ApplicationPackage.eINSTANCE);
- JspPackageImpl theJspPackage = (JspPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(JspPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(JspPackage.eNS_URI) : JspPackage.eINSTANCE);
- TaglibPackageImpl theTaglibPackage = (TaglibPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(TaglibPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(TaglibPackage.eNS_URI) : TaglibPackage.eINSTANCE);
-
- // Step 1: create meta-model objects
- theWebservice_clientPackage.createPackageContents();
- theEjbPackage.createPackageContents();
- theClientPackage.createPackageContents();
- theCommonPackage.createPackageContents();
- theJcaPackage.createPackageContents();
- theWscommonPackage.createPackageContents();
- theWsddPackage.createPackageContents();
- theWebapplicationPackage.createPackageContents();
- theApplicationPackage.createPackageContents();
- theJspPackage.createPackageContents();
- theTaglibPackage.createPackageContents();
-
- // Step 2: complete initialization
- theWebservice_clientPackage.initializePackageContents();
- theEjbPackage.initializePackageContents();
- theClientPackage.initializePackageContents();
- theCommonPackage.initializePackageContents();
- theJcaPackage.initializePackageContents();
- theWscommonPackage.initializePackageContents();
- theWsddPackage.initializePackageContents();
- theWebapplicationPackage.initializePackageContents();
- theApplicationPackage.initializePackageContents();
- theJspPackage.initializePackageContents();
- theTaglibPackage.initializePackageContents();
-
- 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);//$NON-NLS-1$
- initEReference(getServiceRef_ServiceInterface(), theJavaRefPackage.getJavaClass(), null, "serviceInterface", null, 1, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEAttribute(getServiceRef_ServiceRefName(), ecorePackage.getEString(), "serviceRefName", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEAttribute(getServiceRef_WsdlFile(), ecorePackage.getEString(), "wsdlFile", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEAttribute(getServiceRef_JaxrpcMappingFile(), ecorePackage.getEString(), "jaxrpcMappingFile", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getServiceRef_PortComponentRefs(), this.getPortComponentRef(), null, "portComponentRefs", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getServiceRef_Handlers(), this.getHandler(), null, "handlers", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getServiceRef_ServiceQname(), theCommonPackage.getQName(), null, "serviceQname", null, 1, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
-
- initEClass(portComponentRefEClass, PortComponentRef.class, "PortComponentRef", !IS_ABSTRACT, !IS_INTERFACE);//$NON-NLS-1$
- initEAttribute(getPortComponentRef_PortComponentLink(), ecorePackage.getEString(), "portComponentLink", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getPortComponentRef_ServiceEndpointInterface(), theJavaRefPackage.getJavaClass(), null, "serviceEndpointInterface", null, 1, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
-
- initEClass(handlerEClass, Handler.class, "Handler", !IS_ABSTRACT, !IS_INTERFACE);//$NON-NLS-1$
- initEAttribute(getHandler_HandlerName(), ecorePackage.getEString(), "handlerName", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEAttribute(getHandler_SoapRoles(), ecorePackage.getEString(), "soapRoles", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEAttribute(getHandler_PortNames(), ecorePackage.getEString(), "portNames", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getHandler_HandlerClass(), theJavaRefPackage.getJavaClass(), null, "handlerClass", null, 1, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getHandler_InitParams(), theCommonPackage.getParamValue(), null, "initParams", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getHandler_SoapHeaders(), theCommonPackage.getQName(), null, "soapHeaders", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
-
- initEClass(webServicesClientEClass, WebServicesClient.class, "WebServicesClient", !IS_ABSTRACT, !IS_INTERFACE);//$NON-NLS-1$
- initEReference(getWebServicesClient_ComponentScopedRefs(), this.getComponentScopedRefs(), null, "componentScopedRefs", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getWebServicesClient_ServiceRefs(), this.getServiceRef(), null, "serviceRefs", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
-
- initEClass(componentScopedRefsEClass, ComponentScopedRefs.class, "ComponentScopedRefs", !IS_ABSTRACT, !IS_INTERFACE);//$NON-NLS-1$
- initEAttribute(getComponentScopedRefs_ComponentName(), ecorePackage.getEString(), "componentName", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getComponentScopedRefs_ServiceRefs(), this.getServiceRef(), null, "serviceRefs", null, 1, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
-
- // Create resource
- createResource(eNS_URI);
- }
-} //Webservice_clientPackageImpl
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/util/Webservice_clientAdapterFactory.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/util/Webservice_clientAdapterFactory.java
deleted file mode 100644
index 100eebb7d..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/util/Webservice_clientAdapterFactory.java
+++ /dev/null
@@ -1,231 +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.webservice.wsclient.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.internal.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.internal.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.internal.webservice.wsclient.ServiceRef
- * @generated
- */
- public Adapter createServiceRefAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsclient.PortComponentRef
- * @generated
- */
- public Adapter createPortComponentRefAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsclient.Handler
- * @generated
- */
- public Adapter createHandlerAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsclient.WebServicesClient
- * @generated
- */
- public Adapter createWebServicesClientAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsclient.ComponentScopedRefs
- * @generated
- */
- public Adapter createComponentScopedRefsAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.internal.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.internal.common.DescriptionGroup
- * @generated
- */
- public Adapter createDescriptionGroupAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.internal.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.internal.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/util/Webservice_clientSwitch.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/util/Webservice_clientSwitch.java
deleted file mode 100644
index 225ec972f..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsclient/util/Webservice_clientSwitch.java
+++ /dev/null
@@ -1,230 +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.webservice.wsclient.util;
-
-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.internal.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) {
- EClass theEClass = theEObject.eClass();
- if (theEClass.eContainer() == modelPackage) {
- switch (theEClass.getClassifierID()) {
- 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);
- }
- }
- 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/wscommon/DescriptionType.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/DescriptionType.java
deleted file mode 100644
index 040dd0eca..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/DescriptionType.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.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.internal.webservice.wscommon.WscommonPackage#getDescriptionType()
- * @model
- * @generated
- */
-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 0e6afa76a..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/DisplayNameType.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.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.internal.webservice.wscommon.WscommonPackage#getDisplayNameType()
- * @model
- * @generated
- */
-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 12e7b86cb..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, 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.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.internal.webservice.wscommon.InitParam#getParamName <em>Param Name</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webservice.wscommon.InitParam#getParamValue <em>Param Value</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webservice.wscommon.InitParam#getDescription <em>Description</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webservice.wscommon.InitParam#getDescriptionTypes <em>Description Types</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.jst.j2ee.internal.webservice.wscommon.WscommonPackage#getInitParam()
- * @model
- * @generated
- */
-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.internal.webservice.wscommon.WscommonPackage#getInitParam_ParamName()
- * @model
- * @generated
- */
- String getParamName();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wscommon.WscommonPackage#getInitParam_ParamValue()
- * @model
- * @generated
- */
- String getParamValue();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wscommon.WscommonPackage#getInitParam_Description()
- * @model
- * @generated
- */
- String getDescription();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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.internal.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.internal.webservice.wscommon.WscommonPackage#getInitParam_DescriptionTypes()
- * @model type="org.eclipse.jst.j2ee.internal.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 c83a92afc..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, 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.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.internal.webservice.wscommon.PortName#getPortName <em>Port Name</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.jst.j2ee.internal.webservice.wscommon.WscommonPackage#getPortName()
- * @model
- * @generated
- */
-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.internal.webservice.wscommon.WscommonPackage#getPortName_PortName()
- * @model
- * @generated
- */
- String getPortName();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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 95a06397e..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/SOAPHeader.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.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.internal.webservice.wscommon.WscommonPackage#getSOAPHeader()
- * @model
- * @generated
- */
-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 1a34918ea..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, 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.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.internal.webservice.wscommon.SOAPRole#getSoapRole <em>Soap Role</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.jst.j2ee.internal.webservice.wscommon.WscommonPackage#getSOAPRole()
- * @model
- * @generated
- */
-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.internal.webservice.wscommon.WscommonPackage#getSOAPRole_SoapRole()
- * @model
- * @generated
- */
- String getSoapRole();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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 85ef40044..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/WscommonFactory.java
+++ /dev/null
@@ -1,95 +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.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.internal.webservice.wscommon.WscommonPackage
- * @generated
- */
-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.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 -->
- * <!-- 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 076bb4c74..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/WscommonPackage.java
+++ /dev/null
@@ -1,443 +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.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>
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.j2ee.internal.webservice.wscommon.WscommonFactory
- * @generated
- */
-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.internal.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.impl.WscommonPackageImpl.init();
-
- /**
- * The meta object id for the '{@link org.eclipse.jst.j2ee.internal.webservice.wscommon.impl.InitParamImpl <em>Init Param</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.j2ee.internal.webservice.wscommon.impl.InitParamImpl
- * @see org.eclipse.jst.j2ee.internal.webservice.wscommon.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.internal.webservice.wscommon.impl.SOAPHeaderImpl <em>SOAP Header</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.j2ee.internal.webservice.wscommon.impl.SOAPHeaderImpl
- * @see org.eclipse.jst.j2ee.internal.webservice.wscommon.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.internal.webservice.wscommon.impl.SOAPRoleImpl <em>SOAP Role</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.j2ee.internal.webservice.wscommon.impl.SOAPRoleImpl
- * @see org.eclipse.jst.j2ee.internal.webservice.wscommon.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.internal.webservice.wscommon.impl.PortNameImpl <em>Port Name</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.j2ee.internal.webservice.wscommon.impl.PortNameImpl
- * @see org.eclipse.jst.j2ee.internal.webservice.wscommon.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.internal.webservice.wscommon.impl.DescriptionTypeImpl <em>Description Type</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.j2ee.internal.webservice.wscommon.impl.DescriptionTypeImpl
- * @see org.eclipse.jst.j2ee.internal.webservice.wscommon.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.internal.webservice.wscommon.impl.DisplayNameTypeImpl <em>Display Name Type</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.j2ee.internal.webservice.wscommon.impl.DisplayNameTypeImpl
- * @see org.eclipse.jst.j2ee.internal.webservice.wscommon.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.internal.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.internal.webservice.wscommon.InitParam
- * @generated
- */
- EClass getInitParam();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wscommon.InitParam#getParamName()
- * @see #getInitParam()
- * @generated
- */
- EAttribute getInitParam_ParamName();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wscommon.InitParam#getParamValue()
- * @see #getInitParam()
- * @generated
- */
- EAttribute getInitParam_ParamValue();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wscommon.InitParam#getDescription()
- * @see #getInitParam()
- * @generated
- */
- EAttribute getInitParam_Description();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wscommon.InitParam#getDescriptionTypes()
- * @see #getInitParam()
- * @generated
- */
- EReference getInitParam_DescriptionTypes();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wscommon.SOAPHeader
- * @generated
- */
- EClass getSOAPHeader();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wscommon.SOAPRole
- * @generated
- */
- EClass getSOAPRole();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wscommon.SOAPRole#getSoapRole()
- * @see #getSOAPRole()
- * @generated
- */
- EAttribute getSOAPRole_SoapRole();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wscommon.PortName
- * @generated
- */
- EClass getPortName();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wscommon.PortName#getPortName()
- * @see #getPortName()
- * @generated
- */
- EAttribute getPortName_PortName();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wscommon.DescriptionType
- * @generated
- */
- EClass getDescriptionType();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.jst.j2ee.internal.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.internal.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/impl/DescriptionTypeImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/impl/DescriptionTypeImpl.java
deleted file mode 100644
index 653b2967c..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/impl/DescriptionTypeImpl.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.webservice.wscommon.impl;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.jst.j2ee.common.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/impl/DisplayNameTypeImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/impl/DisplayNameTypeImpl.java
deleted file mode 100644
index 0aec0517e..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/impl/DisplayNameTypeImpl.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.webservice.wscommon.impl;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.jst.j2ee.common.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/impl/InitParamImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/impl/InitParamImpl.java
deleted file mode 100644
index f5d09f1bc..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/impl/InitParamImpl.java
+++ /dev/null
@@ -1,332 +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.webservice.wscommon.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.internal.webservice.wscommon.impl.InitParamImpl#getParamName <em>Param Name</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webservice.wscommon.impl.InitParamImpl#getParamValue <em>Param Value</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webservice.wscommon.impl.InitParamImpl#getDescription <em>Description</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webservice.wscommon.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: ");//$NON-NLS-1$
- result.append(paramName);
- result.append(", paramValue: ");//$NON-NLS-1$
- result.append(paramValue);
- result.append(", description: ");//$NON-NLS-1$
- 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/impl/PortNameImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/impl/PortNameImpl.java
deleted file mode 100644
index d3dc769bb..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/impl/PortNameImpl.java
+++ /dev/null
@@ -1,165 +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.webservice.wscommon.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.internal.webservice.wscommon.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: ");//$NON-NLS-1$
- 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/impl/SOAPHeaderImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/impl/SOAPHeaderImpl.java
deleted file mode 100644
index d484a5d9b..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/impl/SOAPHeaderImpl.java
+++ /dev/null
@@ -1,133 +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.webservice.wscommon.impl;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.jst.j2ee.common.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/impl/SOAPRoleImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/impl/SOAPRoleImpl.java
deleted file mode 100644
index 0ec31fb6b..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/impl/SOAPRoleImpl.java
+++ /dev/null
@@ -1,165 +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.webservice.wscommon.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.internal.webservice.wscommon.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: ");//$NON-NLS-1$
- 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/impl/WscommonFactoryImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/impl/WscommonFactoryImpl.java
deleted file mode 100644
index e5f1603f8..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/impl/WscommonFactoryImpl.java
+++ /dev/null
@@ -1,140 +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.webservice.wscommon.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 and 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"); //$NON-NLS-1$ //$NON-NLS-2$
- }
- }
-
- /**
- * <!-- 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/impl/WscommonPackageImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/impl/WscommonPackageImpl.java
deleted file mode 100644
index fd59d3b94..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/impl/WscommonPackageImpl.java
+++ /dev/null
@@ -1,409 +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.webservice.wscommon.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.impl.JavaRefPackageImpl;
-import org.eclipse.jst.j2ee.application.ApplicationPackage;
-import org.eclipse.jst.j2ee.application.impl.ApplicationPackageImpl;
-import org.eclipse.jst.j2ee.client.ClientPackage;
-import org.eclipse.jst.j2ee.client.impl.ClientPackageImpl;
-import org.eclipse.jst.j2ee.common.CommonPackage;
-import org.eclipse.jst.j2ee.common.impl.CommonPackageImpl;
-import org.eclipse.jst.j2ee.ejb.EjbPackage;
-import org.eclipse.jst.j2ee.ejb.impl.EjbPackageImpl;
-import org.eclipse.jst.j2ee.jca.JcaPackage;
-import org.eclipse.jst.j2ee.jca.impl.JcaPackageImpl;
-import org.eclipse.jst.j2ee.jsp.JspPackage;
-import org.eclipse.jst.j2ee.jsp.impl.JspPackageImpl;
-import org.eclipse.jst.j2ee.taglib.TaglibPackage;
-import org.eclipse.jst.j2ee.taglib.impl.TaglibPackageImpl;
-import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage;
-import org.eclipse.jst.j2ee.webapplication.impl.WebapplicationPackageImpl;
-import org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientPackage;
-import org.eclipse.jst.j2ee.webservice.wsclient.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.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.internal.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 EPackage ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new WscommonPackageImpl());
-
- isInited = true;
-
- // Initialize simple dependencies
- EcorePackageImpl.init();
- JavaRefPackageImpl.init();
-
- // Obtain or create and register interdependencies
- EjbPackageImpl theEjbPackage = (EjbPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(EjbPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(EjbPackage.eNS_URI) : EjbPackage.eINSTANCE);
- ClientPackageImpl theClientPackage = (ClientPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ClientPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(ClientPackage.eNS_URI) : ClientPackage.eINSTANCE);
- CommonPackageImpl theCommonPackage = (CommonPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI) : CommonPackage.eINSTANCE);
- JcaPackageImpl theJcaPackage = (JcaPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(JcaPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(JcaPackage.eNS_URI) : JcaPackage.eINSTANCE);
- Webservice_clientPackageImpl theWebservice_clientPackage = (Webservice_clientPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(Webservice_clientPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(Webservice_clientPackage.eNS_URI) : Webservice_clientPackage.eINSTANCE);
- WsddPackageImpl theWsddPackage = (WsddPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(WsddPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(WsddPackage.eNS_URI) : WsddPackage.eINSTANCE);
- WebapplicationPackageImpl theWebapplicationPackage = (WebapplicationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(WebapplicationPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(WebapplicationPackage.eNS_URI) : WebapplicationPackage.eINSTANCE);
- ApplicationPackageImpl theApplicationPackage = (ApplicationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ApplicationPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(ApplicationPackage.eNS_URI) : ApplicationPackage.eINSTANCE);
- JspPackageImpl theJspPackage = (JspPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(JspPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(JspPackage.eNS_URI) : JspPackage.eINSTANCE);
- TaglibPackageImpl theTaglibPackage = (TaglibPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(TaglibPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(TaglibPackage.eNS_URI) : TaglibPackage.eINSTANCE);
-
- // Step 1: create meta-model objects
- theWscommonPackage.createPackageContents();
- theEjbPackage.createPackageContents();
- theClientPackage.createPackageContents();
- theCommonPackage.createPackageContents();
- theJcaPackage.createPackageContents();
- theWebservice_clientPackage.createPackageContents();
- theWsddPackage.createPackageContents();
- theWebapplicationPackage.createPackageContents();
- theApplicationPackage.createPackageContents();
- theJspPackage.createPackageContents();
- theTaglibPackage.createPackageContents();
-
- // Step 2: complete initialization
- theWscommonPackage.initializePackageContents();
- theEjbPackage.initializePackageContents();
- theClientPackage.initializePackageContents();
- theCommonPackage.initializePackageContents();
- theJcaPackage.initializePackageContents();
- theWebservice_clientPackage.initializePackageContents();
- theWsddPackage.initializePackageContents();
- theWebapplicationPackage.initializePackageContents();
- theApplicationPackage.initializePackageContents();
- theJspPackage.initializePackageContents();
- theTaglibPackage.initializePackageContents();
-
- 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);//$NON-NLS-1$
- initEAttribute(getInitParam_ParamName(), ecorePackage.getEString(), "paramName", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEAttribute(getInitParam_ParamValue(), ecorePackage.getEString(), "paramValue", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEAttribute(getInitParam_Description(), ecorePackage.getEString(), "description", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getInitParam_DescriptionTypes(), this.getDescriptionType(), null, "descriptionTypes", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
-
- initEClass(soapHeaderEClass, SOAPHeader.class, "SOAPHeader", !IS_ABSTRACT, !IS_INTERFACE);//$NON-NLS-1$
-
- initEClass(soapRoleEClass, SOAPRole.class, "SOAPRole", !IS_ABSTRACT, !IS_INTERFACE);//$NON-NLS-1$
- initEAttribute(getSOAPRole_SoapRole(), ecorePackage.getEString(), "soapRole", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
-
- initEClass(portNameEClass, PortName.class, "PortName", !IS_ABSTRACT, !IS_INTERFACE);//$NON-NLS-1$
- initEAttribute(getPortName_PortName(), ecorePackage.getEString(), "portName", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
-
- initEClass(descriptionTypeEClass, DescriptionType.class, "DescriptionType", !IS_ABSTRACT, !IS_INTERFACE);//$NON-NLS-1$
-
- initEClass(displayNameTypeEClass, DisplayNameType.class, "DisplayNameType", !IS_ABSTRACT, !IS_INTERFACE);//$NON-NLS-1$
-
- // Create resource
- createResource(eNS_URI);
- }
-} //WscommonPackageImpl
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/util/WscommonAdapterFactory.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/util/WscommonAdapterFactory.java
deleted file mode 100644
index 4e3c7cd82..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/util/WscommonAdapterFactory.java
+++ /dev/null
@@ -1,269 +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.webservice.wscommon.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.internal.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.internal.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.internal.webservice.wscommon.InitParam
- * @generated
- */
- public Adapter createInitParamAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wscommon.SOAPHeader
- * @generated
- */
- public Adapter createSOAPHeaderAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wscommon.SOAPRole
- * @generated
- */
- public Adapter createSOAPRoleAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wscommon.PortName
- * @generated
- */
- public Adapter createPortNameAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wscommon.DescriptionType
- * @generated
- */
- public Adapter createDescriptionTypeAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wscommon.DisplayNameType
- * @generated
- */
- public Adapter createDisplayNameTypeAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.internal.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.internal.common.Description
- * @generated
- */
- public Adapter createDescriptionAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.internal.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.internal.common.DisplayName
- * @generated
- */
- public Adapter createDisplayNameAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.internal.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.internal.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/util/WscommonSwitch.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/util/WscommonSwitch.java
deleted file mode 100644
index 9c76175e6..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wscommon/util/WscommonSwitch.java
+++ /dev/null
@@ -1,268 +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.webservice.wscommon.util;
-
-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.internal.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) {
- EClass theEClass = theEObject.eClass();
- if (theEClass.eContainer() == modelPackage) {
- switch (theEClass.getClassifierID()) {
- 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);
- }
- }
- 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/wsdd/BeanLink.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/BeanLink.java
deleted file mode 100644
index 62354b52d..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/BeanLink.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.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.internal.webservice.wsdd.WsddPackage#getBeanLink()
- * @model
- * @generated
- */
-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 9741c6794..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/EJBLink.java
+++ /dev/null
@@ -1,70 +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.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.internal.webservice.wsdd.EJBLink#getEjbLink <em>Ejb Link</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.jst.j2ee.internal.webservice.wsdd.WsddPackage#getEJBLink()
- * @model
- * @generated
- */
-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.internal.webservice.wsdd.WsddPackage#getEJBLink_EjbLink()
- * @model
- * @generated
- */
- String getEjbLink();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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 2e943f21f..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, 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.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.internal.webservice.wsdd.Handler#getHandlerName <em>Handler Name</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webservice.wsdd.Handler#getHandlerClass <em>Handler Class</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webservice.wsdd.Handler#getInitParams <em>Init Params</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webservice.wsdd.Handler#getSoapHeaders <em>Soap Headers</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webservice.wsdd.Handler#getSoapRoles <em>Soap Roles</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.jst.j2ee.internal.webservice.wsdd.WsddPackage#getHandler()
- * @model
- * @generated
- */
-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.internal.webservice.wsdd.WsddPackage#getHandler_HandlerName()
- * @model
- * @generated
- */
- String getHandlerName();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsdd.WsddPackage#getHandler_HandlerClass()
- * @model
- * @generated
- */
- String getHandlerClass();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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.internal.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.internal.webservice.wsdd.WsddPackage#getHandler_InitParams()
- * @model type="org.eclipse.jst.j2ee.internal.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.internal.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.internal.webservice.wsdd.WsddPackage#getHandler_SoapHeaders()
- * @model type="org.eclipse.jst.j2ee.internal.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.internal.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.internal.webservice.wsdd.WsddPackage#getHandler_SoapRoles()
- * @model type="org.eclipse.jst.j2ee.internal.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 a1f52c55a..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, 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.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.internal.webservice.wsdd.PortComponent#getPortComponentName <em>Port Component Name</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webservice.wsdd.PortComponent#getServiceEndpointInterface <em>Service Endpoint Interface</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webservice.wsdd.PortComponent#getSmallIcon <em>Small Icon</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webservice.wsdd.PortComponent#getLargeIcon <em>Large Icon</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webservice.wsdd.PortComponent#getDescription <em>Description</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webservice.wsdd.PortComponent#getDisplayName <em>Display Name</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webservice.wsdd.PortComponent#getWsdlPort <em>Wsdl Port</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webservice.wsdd.PortComponent#getServiceImplBean <em>Service Impl Bean</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webservice.wsdd.PortComponent#getHandlers <em>Handlers</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webservice.wsdd.PortComponent#getDescriptionType <em>Description Type</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webservice.wsdd.PortComponent#getDisplayNameType <em>Display Name Type</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webservice.wsdd.PortComponent#getIconType <em>Icon Type</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.jst.j2ee.internal.webservice.wsdd.WsddPackage#getPortComponent()
- * @model
- * @generated
- */
-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.internal.webservice.wsdd.WsddPackage#getPortComponent_PortComponentName()
- * @model
- * @generated
- */
- String getPortComponentName();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsdd.WsddPackage#getPortComponent_ServiceEndpointInterface()
- * @model
- * @generated
- */
- String getServiceEndpointInterface();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsdd.WsddPackage#getPortComponent_SmallIcon()
- * @model
- * @generated
- */
- String getSmallIcon();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsdd.WsddPackage#getPortComponent_LargeIcon()
- * @model
- * @generated
- */
- String getLargeIcon();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsdd.WsddPackage#getPortComponent_Description()
- * @model
- * @generated
- */
- String getDescription();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsdd.WsddPackage#getPortComponent_DisplayName()
- * @model
- * @generated
- */
- String getDisplayName();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsdd.WsddPackage#getPortComponent_WsdlPort()
- * @model containment="true" required="true"
- * @generated
- */
- WSDLPort getWsdlPort();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsdd.WsddPackage#getPortComponent_ServiceImplBean()
- * @model containment="true" required="true"
- * @generated
- */
- ServiceImplBean getServiceImplBean();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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.internal.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.internal.webservice.wsdd.WsddPackage#getPortComponent_Handlers()
- * @model type="org.eclipse.jst.j2ee.internal.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.internal.webservice.wsdd.WsddPackage#getPortComponent_DescriptionType()
- * @model containment="true"
- * @generated
- */
- DescriptionType getDescriptionType();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsdd.WsddPackage#getPortComponent_DisplayNameType()
- * @model containment="true"
- * @generated
- */
- DisplayNameType getDisplayNameType();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsdd.WsddPackage#getPortComponent_IconType()
- * @model containment="true"
- * @generated
- */
- IconType getIconType();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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 90e71d5c7..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, 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.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.internal.webservice.wsdd.ServiceImplBean#getEEJBLink <em>EEJB Link</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webservice.wsdd.ServiceImplBean#getEServletLink <em>EServlet Link</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webservice.wsdd.ServiceImplBean#getBeanLink <em>Bean Link</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.jst.j2ee.internal.webservice.wsdd.WsddPackage#getServiceImplBean()
- * @model
- * @generated
- */
-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.internal.webservice.wsdd.WsddPackage#getServiceImplBean_EEJBLink()
- * @model containment="true"
- * @generated
- */
- EJBLink getEEJBLink();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsdd.WsddPackage#getServiceImplBean_EServletLink()
- * @model containment="true"
- * @generated
- */
- ServletLink getEServletLink();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsdd.WsddPackage#getServiceImplBean_BeanLink()
- * @model containment="true"
- * @generated
- */
- BeanLink getBeanLink();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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 1bffe71c2..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/ServletLink.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.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.internal.webservice.wsdd.ServletLink#getServletLink <em>Servlet Link</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.jst.j2ee.internal.webservice.wsdd.WsddPackage#getServletLink()
- * @model
- * @generated
- */
-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.internal.webservice.wsdd.WsddPackage#getServletLink_ServletLink()
- * @model
- * @generated
- */
- String getServletLink();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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 f94d4aa37..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/WSDLPort.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.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.internal.webservice.wsdd.WsddPackage#getWSDLPort()
- * @model
- * @generated
- */
-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 a2f3d2f27..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, 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.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.internal.webservice.wsdd.WebServiceDescription#getJaxrpcMappingFile <em>Jaxrpc Mapping File</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webservice.wsdd.WebServiceDescription#getWebServiceDescriptionName <em>Web Service Description Name</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webservice.wsdd.WebServiceDescription#getWsdlFile <em>Wsdl File</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webservice.wsdd.WebServiceDescription#getSmallIcon <em>Small Icon</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webservice.wsdd.WebServiceDescription#getLargeIcon <em>Large Icon</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webservice.wsdd.WebServiceDescription#getDescription <em>Description</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webservice.wsdd.WebServiceDescription#getDisplayName <em>Display Name</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webservice.wsdd.WebServiceDescription#getPortComponents <em>Port Components</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webservice.wsdd.WebServiceDescription#getDescriptionType <em>Description Type</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webservice.wsdd.WebServiceDescription#getDisplayNameType <em>Display Name Type</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webservice.wsdd.WebServiceDescription#getIconType <em>Icon Type</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.jst.j2ee.internal.webservice.wsdd.WsddPackage#getWebServiceDescription()
- * @model
- * @generated
- */
-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.internal.webservice.wsdd.WsddPackage#getWebServiceDescription_JaxrpcMappingFile()
- * @model
- * @generated
- */
- String getJaxrpcMappingFile();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsdd.WsddPackage#getWebServiceDescription_WebServiceDescriptionName()
- * @model
- * @generated
- */
- String getWebServiceDescriptionName();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsdd.WsddPackage#getWebServiceDescription_WsdlFile()
- * @model
- * @generated
- */
- String getWsdlFile();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsdd.WsddPackage#getWebServiceDescription_SmallIcon()
- * @model
- * @generated
- */
- String getSmallIcon();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsdd.WsddPackage#getWebServiceDescription_LargeIcon()
- * @model
- * @generated
- */
- String getLargeIcon();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsdd.WsddPackage#getWebServiceDescription_Description()
- * @model
- * @generated
- */
- String getDescription();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsdd.WsddPackage#getWebServiceDescription_DisplayName()
- * @model
- * @generated
- */
- String getDisplayName();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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.internal.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.internal.webservice.wsdd.WsddPackage#getWebServiceDescription_PortComponents()
- * @model type="org.eclipse.jst.j2ee.internal.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.internal.webservice.wsdd.WsddPackage#getWebServiceDescription_DescriptionType()
- * @model containment="true"
- * @generated
- */
- DescriptionType getDescriptionType();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsdd.WsddPackage#getWebServiceDescription_DisplayNameType()
- * @model containment="true"
- * @generated
- */
- DisplayNameType getDisplayNameType();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsdd.WsddPackage#getWebServiceDescription_IconType()
- * @model containment="true"
- * @generated
- */
- IconType getIconType();
-
- /**
- * Sets the value of the '{@link org.eclipse.jst.j2ee.internal.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 4f3e57d86..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, 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.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.internal.webservice.wsdd.WebServices#getWebServiceDescriptions <em>Web Service Descriptions</em>}</li>
- * </ul>
- * </p>
- *
- * @see org.eclipse.jst.j2ee.internal.webservice.wsdd.WsddPackage#getWebServices()
- * @model
- * @generated
- */
-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.internal.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.internal.webservice.wsdd.WsddPackage#getWebServices_WebServiceDescriptions()
- * @model type="org.eclipse.jst.j2ee.internal.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 8de697037..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/WsddFactory.java
+++ /dev/null
@@ -1,122 +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.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.internal.webservice.wsdd.WsddPackage
- * @generated
- */
-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.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();
-
- /**
- * Returns the package supported by this factory.
- * <!-- begin-user-doc -->
- * <!-- 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 b6dd52d88..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/WsddPackage.java
+++ /dev/null
@@ -1,1180 +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.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>
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.j2ee.internal.webservice.wsdd.WsddFactory
- * @generated
- */
-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.internal.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.impl.WsddPackageImpl.init();
-
- /**
- * The meta object id for the '{@link org.eclipse.jst.j2ee.internal.webservice.wsdd.impl.WebServicesImpl <em>Web Services</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.j2ee.internal.webservice.wsdd.impl.WebServicesImpl
- * @see org.eclipse.jst.j2ee.internal.webservice.wsdd.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.internal.webservice.wsdd.impl.WebServiceDescriptionImpl <em>Web Service Description</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.j2ee.internal.webservice.wsdd.impl.WebServiceDescriptionImpl
- * @see org.eclipse.jst.j2ee.internal.webservice.wsdd.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.internal.webservice.wsdd.impl.PortComponentImpl <em>Port Component</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.j2ee.internal.webservice.wsdd.impl.PortComponentImpl
- * @see org.eclipse.jst.j2ee.internal.webservice.wsdd.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.internal.webservice.wsdd.impl.WSDLPortImpl <em>WSDL Port</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.j2ee.internal.webservice.wsdd.impl.WSDLPortImpl
- * @see org.eclipse.jst.j2ee.internal.webservice.wsdd.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.internal.webservice.wsdd.impl.ServiceImplBeanImpl <em>Service Impl Bean</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.j2ee.internal.webservice.wsdd.impl.ServiceImplBeanImpl
- * @see org.eclipse.jst.j2ee.internal.webservice.wsdd.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.internal.webservice.wsdd.impl.BeanLinkImpl <em>Bean Link</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.j2ee.internal.webservice.wsdd.impl.BeanLinkImpl
- * @see org.eclipse.jst.j2ee.internal.webservice.wsdd.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.internal.webservice.wsdd.impl.ServletLinkImpl <em>Servlet Link</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.j2ee.internal.webservice.wsdd.impl.ServletLinkImpl
- * @see org.eclipse.jst.j2ee.internal.webservice.wsdd.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.internal.webservice.wsdd.impl.EJBLinkImpl <em>EJB Link</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.j2ee.internal.webservice.wsdd.impl.EJBLinkImpl
- * @see org.eclipse.jst.j2ee.internal.webservice.wsdd.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.internal.webservice.wsdd.impl.HandlerImpl <em>Handler</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.jst.j2ee.internal.webservice.wsdd.impl.HandlerImpl
- * @see org.eclipse.jst.j2ee.internal.webservice.wsdd.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.internal.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.internal.webservice.wsdd.WebServices
- * @generated
- */
- EClass getWebServices();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsdd.WebServices#getWebServiceDescriptions()
- * @see #getWebServices()
- * @generated
- */
- EReference getWebServices_WebServiceDescriptions();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsdd.WebServiceDescription
- * @generated
- */
- EClass getWebServiceDescription();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsdd.WebServiceDescription#getJaxrpcMappingFile()
- * @see #getWebServiceDescription()
- * @generated
- */
- EAttribute getWebServiceDescription_JaxrpcMappingFile();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsdd.WebServiceDescription#getWebServiceDescriptionName()
- * @see #getWebServiceDescription()
- * @generated
- */
- EAttribute getWebServiceDescription_WebServiceDescriptionName();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsdd.WebServiceDescription#getWsdlFile()
- * @see #getWebServiceDescription()
- * @generated
- */
- EAttribute getWebServiceDescription_WsdlFile();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsdd.WebServiceDescription#getSmallIcon()
- * @see #getWebServiceDescription()
- * @generated
- */
- EAttribute getWebServiceDescription_SmallIcon();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsdd.WebServiceDescription#getLargeIcon()
- * @see #getWebServiceDescription()
- * @generated
- */
- EAttribute getWebServiceDescription_LargeIcon();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsdd.WebServiceDescription#getDescription()
- * @see #getWebServiceDescription()
- * @generated
- */
- EAttribute getWebServiceDescription_Description();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsdd.WebServiceDescription#getDisplayName()
- * @see #getWebServiceDescription()
- * @generated
- */
- EAttribute getWebServiceDescription_DisplayName();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsdd.WebServiceDescription#getPortComponents()
- * @see #getWebServiceDescription()
- * @generated
- */
- EReference getWebServiceDescription_PortComponents();
-
- /**
- * Returns the meta object for the containment reference '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsdd.WebServiceDescription#getDescriptionType()
- * @see #getWebServiceDescription()
- * @generated
- */
- EReference getWebServiceDescription_DescriptionType();
-
- /**
- * Returns the meta object for the containment reference '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsdd.WebServiceDescription#getDisplayNameType()
- * @see #getWebServiceDescription()
- * @generated
- */
- EReference getWebServiceDescription_DisplayNameType();
-
- /**
- * Returns the meta object for the containment reference '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsdd.WebServiceDescription#getIconType()
- * @see #getWebServiceDescription()
- * @generated
- */
- EReference getWebServiceDescription_IconType();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsdd.PortComponent
- * @generated
- */
- EClass getPortComponent();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsdd.PortComponent#getPortComponentName()
- * @see #getPortComponent()
- * @generated
- */
- EAttribute getPortComponent_PortComponentName();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsdd.PortComponent#getServiceEndpointInterface()
- * @see #getPortComponent()
- * @generated
- */
- EAttribute getPortComponent_ServiceEndpointInterface();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsdd.PortComponent#getSmallIcon()
- * @see #getPortComponent()
- * @generated
- */
- EAttribute getPortComponent_SmallIcon();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsdd.PortComponent#getLargeIcon()
- * @see #getPortComponent()
- * @generated
- */
- EAttribute getPortComponent_LargeIcon();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsdd.PortComponent#getDescription()
- * @see #getPortComponent()
- * @generated
- */
- EAttribute getPortComponent_Description();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsdd.PortComponent#getDisplayName()
- * @see #getPortComponent()
- * @generated
- */
- EAttribute getPortComponent_DisplayName();
-
- /**
- * Returns the meta object for the containment reference '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsdd.PortComponent#getWsdlPort()
- * @see #getPortComponent()
- * @generated
- */
- EReference getPortComponent_WsdlPort();
-
- /**
- * Returns the meta object for the containment reference '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsdd.PortComponent#getServiceImplBean()
- * @see #getPortComponent()
- * @generated
- */
- EReference getPortComponent_ServiceImplBean();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsdd.PortComponent#getHandlers()
- * @see #getPortComponent()
- * @generated
- */
- EReference getPortComponent_Handlers();
-
- /**
- * Returns the meta object for the containment reference '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsdd.PortComponent#getDescriptionType()
- * @see #getPortComponent()
- * @generated
- */
- EReference getPortComponent_DescriptionType();
-
- /**
- * Returns the meta object for the containment reference '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsdd.PortComponent#getDisplayNameType()
- * @see #getPortComponent()
- * @generated
- */
- EReference getPortComponent_DisplayNameType();
-
- /**
- * Returns the meta object for the containment reference '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsdd.PortComponent#getIconType()
- * @see #getPortComponent()
- * @generated
- */
- EReference getPortComponent_IconType();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsdd.WSDLPort
- * @generated
- */
- EClass getWSDLPort();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsdd.ServiceImplBean
- * @generated
- */
- EClass getServiceImplBean();
-
- /**
- * Returns the meta object for the containment reference '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsdd.ServiceImplBean#getEEJBLink()
- * @see #getServiceImplBean()
- * @generated
- */
- EReference getServiceImplBean_EEJBLink();
-
- /**
- * Returns the meta object for the containment reference '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsdd.ServiceImplBean#getEServletLink()
- * @see #getServiceImplBean()
- * @generated
- */
- EReference getServiceImplBean_EServletLink();
-
- /**
- * Returns the meta object for the containment reference '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsdd.ServiceImplBean#getBeanLink()
- * @see #getServiceImplBean()
- * @generated
- */
- EReference getServiceImplBean_BeanLink();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsdd.ServletLink
- * @generated
- */
- EClass getServletLink();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsdd.ServletLink#getServletLink()
- * @see #getServletLink()
- * @generated
- */
- EAttribute getServletLink_ServletLink();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsdd.EJBLink
- * @generated
- */
- EClass getEJBLink();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsdd.EJBLink#getEjbLink()
- * @see #getEJBLink()
- * @generated
- */
- EAttribute getEJBLink_EjbLink();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsdd.Handler
- * @generated
- */
- EClass getHandler();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsdd.Handler#getHandlerName()
- * @see #getHandler()
- * @generated
- */
- EAttribute getHandler_HandlerName();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsdd.Handler#getHandlerClass()
- * @see #getHandler()
- * @generated
- */
- EAttribute getHandler_HandlerClass();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsdd.Handler#getInitParams()
- * @see #getHandler()
- * @generated
- */
- EReference getHandler_InitParams();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsdd.Handler#getSoapHeaders()
- * @see #getHandler()
- * @generated
- */
- EReference getHandler_SoapHeaders();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsdd.Handler#getSoapRoles()
- * @see #getHandler()
- * @generated
- */
- EReference getHandler_SoapRoles();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.jst.j2ee.internal.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.internal.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 b573a9fea..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/WsddResource.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.webservice.wsdd;
-
-import org.eclipse.jst.j2ee.common.XMLResource;
-
-public interface WsddResource extends XMLResource
-{
- public static final int WEB_SERVICE_TYPE = 6;
-
- WebServices getWebServices();
- public boolean isWebService1_0();
- public boolean isWebService1_1();
-
-}
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/WsddResourceFactory.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/WsddResourceFactory.java
deleted file mode 100644
index f57d8c743..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/WsddResourceFactory.java
+++ /dev/null
@@ -1,67 +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.webservice.wsdd;
-
-
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.jst.j2ee.common.impl.J2EEResourceFactoryRegistry;
-import org.eclipse.jst.j2ee.internal.xml.J2EEXmlDtDEntityResolver;
-import org.eclipse.jst.j2ee.webservice.WebServiceConstants;
-import org.eclipse.jst.j2ee.webservice.wsdd.impl.WsddResourceImpl;
-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(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));
- }
-
- /**
- * 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/wsdd/impl/BeanLinkImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/impl/BeanLinkImpl.java
deleted file mode 100644
index fc0695896..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/impl/BeanLinkImpl.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.webservice.wsdd.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/impl/EJBLinkImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/impl/EJBLinkImpl.java
deleted file mode 100644
index 08c461f45..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/impl/EJBLinkImpl.java
+++ /dev/null
@@ -1,164 +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.webservice.wsdd.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.internal.webservice.wsdd.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: ");//$NON-NLS-1$
- 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/impl/HandlerImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/impl/HandlerImpl.java
deleted file mode 100644
index 11a9457ed..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/impl/HandlerImpl.java
+++ /dev/null
@@ -1,431 +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.webservice.wsdd.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.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.internal.webservice.wsdd.impl.HandlerImpl#getHandlerName <em>Handler Name</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webservice.wsdd.impl.HandlerImpl#getHandlerClass <em>Handler Class</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webservice.wsdd.impl.HandlerImpl#getInitParams <em>Init Params</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webservice.wsdd.impl.HandlerImpl#getSoapHeaders <em>Soap Headers</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webservice.wsdd.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: ");//$NON-NLS-1$
- result.append(handlerName);
- result.append(", handlerClass: ");//$NON-NLS-1$
- 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/impl/PortComponentImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/impl/PortComponentImpl.java
deleted file mode 100644
index 1759fa5b2..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/impl/PortComponentImpl.java
+++ /dev/null
@@ -1,829 +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.webservice.wsdd.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.internal.webservice.wsdd.impl.PortComponentImpl#getPortComponentName <em>Port Component Name</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webservice.wsdd.impl.PortComponentImpl#getServiceEndpointInterface <em>Service Endpoint Interface</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webservice.wsdd.impl.PortComponentImpl#getSmallIcon <em>Small Icon</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webservice.wsdd.impl.PortComponentImpl#getLargeIcon <em>Large Icon</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webservice.wsdd.impl.PortComponentImpl#getDescription <em>Description</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webservice.wsdd.impl.PortComponentImpl#getDisplayName <em>Display Name</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webservice.wsdd.impl.PortComponentImpl#getWsdlPort <em>Wsdl Port</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webservice.wsdd.impl.PortComponentImpl#getServiceImplBean <em>Service Impl Bean</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webservice.wsdd.impl.PortComponentImpl#getHandlers <em>Handlers</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webservice.wsdd.impl.PortComponentImpl#getDescriptionType <em>Description Type</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webservice.wsdd.impl.PortComponentImpl#getDisplayNameType <em>Display Name Type</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webservice.wsdd.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: ");//$NON-NLS-1$
- result.append(portComponentName);
- result.append(", serviceEndpointInterface: ");//$NON-NLS-1$
- result.append(serviceEndpointInterface);
- result.append(", smallIcon: ");//$NON-NLS-1$
- result.append(smallIcon);
- result.append(", largeIcon: ");//$NON-NLS-1$
- result.append(largeIcon);
- result.append(", description: ");//$NON-NLS-1$
- result.append(description);
- result.append(", displayName: ");//$NON-NLS-1$
- 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/impl/ServiceImplBeanImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/impl/ServiceImplBeanImpl.java
deleted file mode 100644
index b8c68b5db..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/impl/ServiceImplBeanImpl.java
+++ /dev/null
@@ -1,316 +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.webservice.wsdd.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.internal.webservice.wsdd.impl.ServiceImplBeanImpl#getEEJBLink <em>EEJB Link</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webservice.wsdd.impl.ServiceImplBeanImpl#getEServletLink <em>EServlet Link</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webservice.wsdd.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/impl/ServletLinkImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/impl/ServletLinkImpl.java
deleted file mode 100644
index 4c9b9a0ad..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/impl/ServletLinkImpl.java
+++ /dev/null
@@ -1,164 +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.webservice.wsdd.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.internal.webservice.wsdd.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: ");//$NON-NLS-1$
- 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/impl/WSDLPortImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/impl/WSDLPortImpl.java
deleted file mode 100644
index b9b767b76..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/impl/WSDLPortImpl.java
+++ /dev/null
@@ -1,133 +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.webservice.wsdd.impl;
-
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EStructuralFeature;
-import org.eclipse.jst.j2ee.common.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/impl/WebServiceDescriptionImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/impl/WebServiceDescriptionImpl.java
deleted file mode 100644
index d7a025d96..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/impl/WebServiceDescriptionImpl.java
+++ /dev/null
@@ -1,969 +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.webservice.wsdd.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.common.J2EEVersionResource;
-import org.eclipse.jst.j2ee.internal.J2EEVersionConstants;
-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.internal.webservice.wsdd.impl.WebServiceDescriptionImpl#getJaxrpcMappingFile <em>Jaxrpc Mapping File</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webservice.wsdd.impl.WebServiceDescriptionImpl#getWebServiceDescriptionName <em>Web Service Description Name</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webservice.wsdd.impl.WebServiceDescriptionImpl#getWsdlFile <em>Wsdl File</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webservice.wsdd.impl.WebServiceDescriptionImpl#getSmallIcon <em>Small Icon</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webservice.wsdd.impl.WebServiceDescriptionImpl#getLargeIcon <em>Large Icon</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webservice.wsdd.impl.WebServiceDescriptionImpl#getDescription <em>Description</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webservice.wsdd.impl.WebServiceDescriptionImpl#getDisplayName <em>Display Name</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webservice.wsdd.impl.WebServiceDescriptionImpl#getPortComponents <em>Port Components</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webservice.wsdd.impl.WebServiceDescriptionImpl#getDescriptionType <em>Description Type</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webservice.wsdd.impl.WebServiceDescriptionImpl#getDisplayNameType <em>Display Name Type</em>}</li>
- * <li>{@link org.eclipse.jst.j2ee.internal.webservice.wsdd.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: ");//$NON-NLS-1$
- result.append(jaxrpcMappingFile);
- result.append(", webServiceDescriptionName: ");//$NON-NLS-1$
- result.append(webServiceDescriptionName);
- result.append(", wsdlFile: ");//$NON-NLS-1$
- result.append(wsdlFile);
- result.append(", smallIcon: ");//$NON-NLS-1$
- result.append(smallIcon);
- result.append(", largeIcon: ");//$NON-NLS-1$
- result.append(largeIcon);
- result.append(", description: ");//$NON-NLS-1$
- result.append(description);
- result.append(", displayName: ");//$NON-NLS-1$
- 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/impl/WebServicesImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/impl/WebServicesImpl.java
deleted file mode 100644
index d2600d91e..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/impl/WebServicesImpl.java
+++ /dev/null
@@ -1,241 +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.webservice.wsdd.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.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.internal.webservice.wsdd.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/impl/WsddFactoryImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/impl/WsddFactoryImpl.java
deleted file mode 100644
index cede755cd..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/impl/WsddFactoryImpl.java
+++ /dev/null
@@ -1,176 +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.webservice.wsdd.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 and 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");//$NON-NLS-1$ //$NON-NLS-2$
- }
- }
-
- /**
- * <!-- 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/impl/WsddPackageImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/impl/WsddPackageImpl.java
deleted file mode 100644
index ff0c5f63d..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/impl/WsddPackageImpl.java
+++ /dev/null
@@ -1,783 +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.webservice.wsdd.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.impl.JavaRefPackageImpl;
-import org.eclipse.jst.j2ee.application.ApplicationPackage;
-import org.eclipse.jst.j2ee.application.impl.ApplicationPackageImpl;
-import org.eclipse.jst.j2ee.client.ClientPackage;
-import org.eclipse.jst.j2ee.client.impl.ClientPackageImpl;
-import org.eclipse.jst.j2ee.common.CommonPackage;
-import org.eclipse.jst.j2ee.common.impl.CommonPackageImpl;
-import org.eclipse.jst.j2ee.ejb.EjbPackage;
-import org.eclipse.jst.j2ee.ejb.impl.EjbPackageImpl;
-import org.eclipse.jst.j2ee.jca.JcaPackage;
-import org.eclipse.jst.j2ee.jca.impl.JcaPackageImpl;
-import org.eclipse.jst.j2ee.jsp.JspPackage;
-import org.eclipse.jst.j2ee.jsp.impl.JspPackageImpl;
-import org.eclipse.jst.j2ee.taglib.TaglibPackage;
-import org.eclipse.jst.j2ee.taglib.impl.TaglibPackageImpl;
-import org.eclipse.jst.j2ee.webapplication.WebapplicationPackage;
-import org.eclipse.jst.j2ee.webapplication.impl.WebapplicationPackageImpl;
-import org.eclipse.jst.j2ee.webservice.wsclient.Webservice_clientPackage;
-import org.eclipse.jst.j2ee.webservice.wsclient.impl.Webservice_clientPackageImpl;
-import org.eclipse.jst.j2ee.webservice.wscommon.WscommonPackage;
-import org.eclipse.jst.j2ee.webservice.wscommon.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.internal.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 EPackage ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new WsddPackageImpl());
-
- isInited = true;
-
- // Initialize simple dependencies
- EcorePackageImpl.init();
- JavaRefPackageImpl.init();
-
- // Obtain or create and register interdependencies
- EjbPackageImpl theEjbPackage = (EjbPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(EjbPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(EjbPackage.eNS_URI) : EjbPackage.eINSTANCE);
- ClientPackageImpl theClientPackage = (ClientPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ClientPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(ClientPackage.eNS_URI) : ClientPackage.eINSTANCE);
- CommonPackageImpl theCommonPackage = (CommonPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI) : CommonPackage.eINSTANCE);
- JcaPackageImpl theJcaPackage = (JcaPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(JcaPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(JcaPackage.eNS_URI) : JcaPackage.eINSTANCE);
- Webservice_clientPackageImpl theWebservice_clientPackage = (Webservice_clientPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(Webservice_clientPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(Webservice_clientPackage.eNS_URI) : Webservice_clientPackage.eINSTANCE);
- WscommonPackageImpl theWscommonPackage = (WscommonPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(WscommonPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(WscommonPackage.eNS_URI) : WscommonPackage.eINSTANCE);
- WebapplicationPackageImpl theWebapplicationPackage = (WebapplicationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(WebapplicationPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(WebapplicationPackage.eNS_URI) : WebapplicationPackage.eINSTANCE);
- ApplicationPackageImpl theApplicationPackage = (ApplicationPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ApplicationPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(ApplicationPackage.eNS_URI) : ApplicationPackage.eINSTANCE);
- JspPackageImpl theJspPackage = (JspPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(JspPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(JspPackage.eNS_URI) : JspPackage.eINSTANCE);
- TaglibPackageImpl theTaglibPackage = (TaglibPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(TaglibPackage.eNS_URI) instanceof EPackage ? EPackage.Registry.INSTANCE.getEPackage(TaglibPackage.eNS_URI) : TaglibPackage.eINSTANCE);
-
- // Step 1: create meta-model objects
- theWsddPackage.createPackageContents();
- theEjbPackage.createPackageContents();
- theClientPackage.createPackageContents();
- theCommonPackage.createPackageContents();
- theJcaPackage.createPackageContents();
- theWebservice_clientPackage.createPackageContents();
- theWscommonPackage.createPackageContents();
- theWebapplicationPackage.createPackageContents();
- theApplicationPackage.createPackageContents();
- theJspPackage.createPackageContents();
- theTaglibPackage.createPackageContents();
-
- // Step 2: complete initialization
- theWsddPackage.initializePackageContents();
- theEjbPackage.initializePackageContents();
- theClientPackage.initializePackageContents();
- theCommonPackage.initializePackageContents();
- theJcaPackage.initializePackageContents();
- theWebservice_clientPackage.initializePackageContents();
- theWscommonPackage.initializePackageContents();
- theWebapplicationPackage.initializePackageContents();
- theApplicationPackage.initializePackageContents();
- theJspPackage.initializePackageContents();
- theTaglibPackage.initializePackageContents();
-
- 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);//$NON-NLS-1$
- initEReference(getWebServices_WebServiceDescriptions(), this.getWebServiceDescription(), null, "webServiceDescriptions", null, 1, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
-
- initEClass(webServiceDescriptionEClass, WebServiceDescription.class, "WebServiceDescription", !IS_ABSTRACT, !IS_INTERFACE);//$NON-NLS-1$
- initEAttribute(getWebServiceDescription_JaxrpcMappingFile(), ecorePackage.getEString(), "jaxrpcMappingFile", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEAttribute(getWebServiceDescription_WebServiceDescriptionName(), ecorePackage.getEString(), "webServiceDescriptionName", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEAttribute(getWebServiceDescription_WsdlFile(), ecorePackage.getEString(), "wsdlFile", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEAttribute(getWebServiceDescription_SmallIcon(), ecorePackage.getEString(), "smallIcon", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEAttribute(getWebServiceDescription_LargeIcon(), ecorePackage.getEString(), "largeIcon", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEAttribute(getWebServiceDescription_Description(), ecorePackage.getEString(), "description", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEAttribute(getWebServiceDescription_DisplayName(), ecorePackage.getEString(), "displayName", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getWebServiceDescription_PortComponents(), this.getPortComponent(), null, "portComponents", null, 1, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getWebServiceDescription_DescriptionType(), theWscommonPackage.getDescriptionType(), null, "descriptionType", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getWebServiceDescription_DisplayNameType(), theWscommonPackage.getDisplayNameType(), null, "displayNameType", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getWebServiceDescription_IconType(), theCommonPackage.getIconType(), null, "iconType", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
-
- initEClass(portComponentEClass, PortComponent.class, "PortComponent", !IS_ABSTRACT, !IS_INTERFACE);//$NON-NLS-1$
- initEAttribute(getPortComponent_PortComponentName(), ecorePackage.getEString(), "portComponentName", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEAttribute(getPortComponent_ServiceEndpointInterface(), ecorePackage.getEString(), "serviceEndpointInterface", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEAttribute(getPortComponent_SmallIcon(), ecorePackage.getEString(), "smallIcon", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEAttribute(getPortComponent_LargeIcon(), ecorePackage.getEString(), "largeIcon", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEAttribute(getPortComponent_Description(), ecorePackage.getEString(), "description", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEAttribute(getPortComponent_DisplayName(), ecorePackage.getEString(), "displayName", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getPortComponent_WsdlPort(), this.getWSDLPort(), null, "wsdlPort", null, 1, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getPortComponent_ServiceImplBean(), this.getServiceImplBean(), null, "serviceImplBean", null, 1, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getPortComponent_Handlers(), this.getHandler(), null, "handlers", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getPortComponent_DescriptionType(), theWscommonPackage.getDescriptionType(), null, "descriptionType", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getPortComponent_DisplayNameType(), theWscommonPackage.getDisplayNameType(), null, "displayNameType", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getPortComponent_IconType(), theCommonPackage.getIconType(), null, "iconType", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
-
- initEClass(wsdlPortEClass, WSDLPort.class, "WSDLPort", !IS_ABSTRACT, !IS_INTERFACE);//$NON-NLS-1$
-
- initEClass(serviceImplBeanEClass, ServiceImplBean.class, "ServiceImplBean", !IS_ABSTRACT, !IS_INTERFACE);//$NON-NLS-1$
- initEReference(getServiceImplBean_EEJBLink(), this.getEJBLink(), null, "eEJBLink", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getServiceImplBean_EServletLink(), this.getServletLink(), null, "eServletLink", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getServiceImplBean_BeanLink(), this.getBeanLink(), null, "beanLink", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
-
- initEClass(servletLinkEClass, ServletLink.class, "ServletLink", !IS_ABSTRACT, !IS_INTERFACE);//$NON-NLS-1$
- initEAttribute(getServletLink_ServletLink(), ecorePackage.getEString(), "servletLink", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
-
- initEClass(ejbLinkEClass, EJBLink.class, "EJBLink", !IS_ABSTRACT, !IS_INTERFACE);//$NON-NLS-1$
- initEAttribute(getEJBLink_EjbLink(), ecorePackage.getEString(), "ejbLink", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
-
- initEClass(handlerEClass, Handler.class, "Handler", !IS_ABSTRACT, !IS_INTERFACE);//$NON-NLS-1$
- initEAttribute(getHandler_HandlerName(), ecorePackage.getEString(), "handlerName", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEAttribute(getHandler_HandlerClass(), ecorePackage.getEString(), "handlerClass", null, 0, 1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getHandler_InitParams(), theWscommonPackage.getInitParam(), null, "initParams", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getHandler_SoapHeaders(), theWscommonPackage.getSOAPHeader(), null, "soapHeaders", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
- initEReference(getHandler_SoapRoles(), theWscommonPackage.getSOAPRole(), null, "soapRoles", null, 0, -1, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED);//$NON-NLS-1$
-
- initEClass(beanLinkEClass, BeanLink.class, "BeanLink", !IS_ABSTRACT, !IS_INTERFACE);//$NON-NLS-1$
-
- // Create resource
- createResource(eNS_URI);
- }
-} //WsddPackageImpl
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/impl/WsddResourceImpl.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/impl/WsddResourceImpl.java
deleted file mode 100644
index d5e623f40..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/impl/WsddResourceImpl.java
+++ /dev/null
@@ -1,181 +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.webservice.wsdd.impl;
-
-
-import org.eclipse.emf.common.util.URI;
-import org.eclipse.jst.j2ee.common.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.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/util/WsddAdapterFactory.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/util/WsddAdapterFactory.java
deleted file mode 100644
index bc6227592..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/util/WsddAdapterFactory.java
+++ /dev/null
@@ -1,323 +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.webservice.wsdd.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.internal.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.internal.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.internal.webservice.wsdd.WebServices
- * @generated
- */
- public Adapter createWebServicesAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsdd.WebServiceDescription
- * @generated
- */
- public Adapter createWebServiceDescriptionAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsdd.PortComponent
- * @generated
- */
- public Adapter createPortComponentAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsdd.WSDLPort
- * @generated
- */
- public Adapter createWSDLPortAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsdd.ServiceImplBean
- * @generated
- */
- public Adapter createServiceImplBeanAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsdd.ServletLink
- * @generated
- */
- public Adapter createServletLinkAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsdd.EJBLink
- * @generated
- */
- public Adapter createEJBLinkAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsdd.Handler
- * @generated
- */
- public Adapter createHandlerAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.internal.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.internal.webservice.wsdd.BeanLink
- * @generated
- */
- public Adapter createBeanLinkAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.internal.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.internal.common.DescriptionGroup
- * @generated
- */
- public Adapter createDescriptionGroupAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.internal.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.internal.common.CompatibilityDescriptionGroup
- * @generated
- */
- public Adapter createCompatibilityDescriptionGroupAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.jst.j2ee.internal.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.internal.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/util/WsddSwitch.java b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/util/WsddSwitch.java
deleted file mode 100644
index e8d021f82..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/org/eclipse/jst/j2ee/webservice/wsdd/util/WsddSwitch.java
+++ /dev/null
@@ -1,338 +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.webservice.wsdd.util;
-
-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.internal.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) {
- EClass theEClass = theEObject.eClass();
- if (theEClass.eContainer() == modelPackage) {
- switch (theEClass.getClassifierID()) {
- 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);
- }
- }
- 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/xmlparse.properties b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/xmlparse.properties
deleted file mode 100644
index e59a5839b..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/xmlparse.properties
+++ /dev/null
@@ -1,18 +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
-###############################################################################
-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/mofj2ee/xmlparse_de.properties b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/xmlparse_de.properties
deleted file mode 100644
index bb1ac13fd..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/xmlparse_de.properties
+++ /dev/null
@@ -1,18 +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
-###############################################################################
-method_invoke_failed_EXC_=Aufruf der Methode mit dem Namen {0} ist fehlgeschlagen.
-failed_to_load_EXC_=Laden von {0} ist fehlgeschlagen.
-method_not_found_EXC_=Methode mit dem Namen {0} konnte nicht gefunden werden.
-failed_instantiating_EXC_=Instantialisierung von {0} ist fehlgeschlagen
-parse_exception_occured_EXC_=Bei der Syntaxanalyse von XML ist eine Ausnahmebedingung aufgetreten: Zeile #: {0} :Spalte #: {1}
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/xmlparse_es.properties b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/xmlparse_es.properties
deleted file mode 100644
index 664779ad7..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/xmlparse_es.properties
+++ /dev/null
@@ -1,18 +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
-###############################################################################
-method_invoke_failed_EXC_=IWAE0095E No se ha podido invocar el m\u00e9todo denominado: {0}
-failed_to_load_EXC_=IWAE0096E No se ha podido cargar: {0}
-method_not_found_EXC_=IWAE0097E No se ha podido encontrar el siguiente m\u00e9todo denominado: {0}
-failed_instantiating_EXC_=IWAE0098E No se ha podido crear una instancia de: {0}
-parse_exception_occured_EXC_=IWAE0099E Se ha producido una excepci\u00f3n al analizar xml: N\u00ba de l\u00ednea: {0} :N\u00ba de columna: {1}
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/xmlparse_fr.properties b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/xmlparse_fr.properties
deleted file mode 100644
index 1a1d591d1..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/xmlparse_fr.properties
+++ /dev/null
@@ -1,18 +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
-###############################################################################
-method_invoke_failed_EXC_=IWAE0095E Echec de l''appel de la m\u00e9thode nomm\u00e9e {0}
-failed_to_load_EXC_=IWAE0096E Echec du chargement de {0}
-method_not_found_EXC_=IWAE0097E Impossible de trouver la m\u00e9thode nomm\u00e9e {0}
-failed_instantiating_EXC_=IWAE0098E Echec de l''instanciation de {0}
-parse_exception_occured_EXC_=IWAE0099E Une exception d''E-S s''est produite lors de l''analyse du fichier xml : ligne # : {0}, Colonne # : {1}
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/xmlparse_it.properties b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/xmlparse_it.properties
deleted file mode 100644
index 2aec18481..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/xmlparse_it.properties
+++ /dev/null
@@ -1,18 +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
-###############################################################################
-method_invoke_failed_EXC_=IWAE0095E Impossibile richiamare il metodo: {0}
-failed_to_load_EXC_=IWAE0096E Impossibile caricare: {0}
-method_not_found_EXC_=IWAE0097E Impossibile trovare il seguente metodo: {0}
-failed_instantiating_EXC_=IWAE0098E Impossibile creare un''istanza: {0}
-parse_exception_occured_EXC_=IWAE0099E Eccezione durante l''analisi xml: riga: {0} : colonna: {1}
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/xmlparse_ja.properties b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/xmlparse_ja.properties
deleted file mode 100644
index 62d1c1fb8..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/xmlparse_ja.properties
+++ /dev/null
@@ -1,18 +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
-###############################################################################
-method_invoke_failed_EXC_=IWAE0095E {0} \u3068\u3044\u3046\u540d\u524d\u306e\u30e1\u30bd\u30c3\u30c9\u306e\u547c\u3073\u51fa\u3057\u306b\u5931\u6557\u3057\u307e\u3057\u305f
-failed_to_load_EXC_=IWAE0096E {0} \u306e\u30ed\u30fc\u30c9\u306b\u5931\u6557\u3057\u307e\u3057\u305f
-method_not_found_EXC_=IWAE0097E {0} \u3068\u3044\u3046\u540d\u524d\u306e\u30e1\u30bd\u30c3\u30c9\u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093\u3067\u3057\u305f
-failed_instantiating_EXC_=IWAE0098E {0} \u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u5316\u306b\u5931\u6557\u3057\u307e\u3057\u305f
-parse_exception_occured_EXC_=IWAE0099E xml: \u884c #: {0} :\u5217 #: {1} \u3092\u69cb\u6587\u89e3\u6790\u4e2d\u306b\u4f8b\u5916\u304c\u767a\u751f\u3057\u307e\u3057\u305f
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/xmlparse_ko.properties b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/xmlparse_ko.properties
deleted file mode 100644
index 3d4976d24..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/xmlparse_ko.properties
+++ /dev/null
@@ -1,18 +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
-###############################################################################
-method_invoke_failed_EXC_=IWAE0095E \ub2e4\uc74c \uc774\ub984\uc758 \uba54\uc18c\ub4dc\ub97c \ud638\ucd9c\ud558\uc9c0 \ubabb\ud568: {0}
-failed_to_load_EXC_=IWAE0096E \ub85c\ub4dc \uc2e4\ud328: {0}
-method_not_found_EXC_=IWAE0097E \ub2e4\uc74c \uc774\ub984\uc758 \uba54\uc18c\ub4dc\ub97c \ucc3e\uc744 \uc218 \uc5c6\uc5c8\uc74c: {0}
-failed_instantiating_EXC_=IWAE0098E \uc778\uc2a4\ud134\uc2a4 \uc791\uc131 \uc2e4\ud328: {0}
-parse_exception_occured_EXC_=IWAE0099E xml\uc758 \uad6c\ubb38\uc744 \ubd84\uc11d\ud558\ub294 \ub3d9\uc548 \uc608\uc678 \ubc1c\uc0dd: \ud589 #: {0} :\uc5f4 #: {1}
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/xmlparse_pt_BR.properties b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/xmlparse_pt_BR.properties
deleted file mode 100644
index 5fa2eff42..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/xmlparse_pt_BR.properties
+++ /dev/null
@@ -1,18 +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
-###############################################################################
-method_invoke_failed_EXC_=IWAE0095E Falha ao chamar o m\u00e9todo denominado: {0}
-failed_to_load_EXC_=IWAE0096E Falha ao carregar: {0}
-method_not_found_EXC_=IWAE0097E N\u00e3o foi poss\u00edvel localizar o seguinte m\u00e9todo denominado: {0}
-failed_instantiating_EXC_=IWAE0098E Falha ao instanciar: {0}
-parse_exception_occured_EXC_=IWAE0099E Ocorreu uma Exce\u00e7\u00e3o ao analisar: Linha n\u00b0: {0} : Coluna n\u00b0: {1}
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/xmlparse_zh.properties b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/xmlparse_zh.properties
deleted file mode 100644
index dd44a1924..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/xmlparse_zh.properties
+++ /dev/null
@@ -1,18 +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
-###############################################################################
-method_invoke_failed_EXC_=IWAE0095E \u65e0\u6cd5\u8c03\u7528\u540d\u4e3a {0} \u7684\u65b9\u6cd5
-failed_to_load_EXC_=IWAE0096E \u65e0\u6cd5\u88c5\u5165 {0}
-method_not_found_EXC_=IWAE0097E \u627e\u4e0d\u5230\u540d\u4e3a {0} \u7684\u4ee5\u4e0b\u65b9\u6cd5
-failed_instantiating_EXC_=IWAE0098E \u65e0\u6cd5\u5b9e\u4f8b\u5316 {0}
-parse_exception_occured_EXC_=IWAE0099E \u89e3\u6790 xml \u65f6\u53d1\u751f\u4e86\u5f02\u5e38\uff1a\u884c\u53f7\uff1a{0}\uff0c\u5217\u53f7\uff1a{1}
-
-
-
diff --git a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/xmlparse_zh_TW.properties b/plugins/org.eclipse.jst.j2ee.core/mofj2ee/xmlparse_zh_TW.properties
deleted file mode 100644
index d7ea23b53..000000000
--- a/plugins/org.eclipse.jst.j2ee.core/mofj2ee/xmlparse_zh_TW.properties
+++ /dev/null
@@ -1,18 +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
-###############################################################################
-method_invoke_failed_EXC_=IWAE0095E \u7121\u6cd5\u547c\u53eb\u540d\u70ba {0} \u7684\u65b9\u6cd5\uff1a
-failed_to_load_EXC_=IWAE0096E \u7121\u6cd5\u8f09\u5165\uff1a{0}
-method_not_found_EXC_=IWAE0097E \u627e\u4e0d\u5230\u4e0b\u5217\u540d\u70ba {0} \u7684\u65b9\u6cd5\uff1a
-failed_instantiating_EXC_=IWAE0098E \u5be6\u4f8b\u5316\u5931\u6557\uff1a{0}
-parse_exception_occured_EXC_=IWAE0099E \u5256\u6790 xml \u6642\u767c\u751f\u7570\u5e38\u72c0\u6cc1\uff1a\u884c\u865f\uff1a{0} \u6b04\u865f\uff1a{1}
-
-
-

Back to the top