From 285778800a2ff1cbc0f1cf3e998a522bab622db2 Mon Sep 17 00:00:00 2001 From: Paul Fullbright Date: Mon, 20 Aug 2012 12:30:03 -0400 Subject: Initial oxm resource model --- .../jaxb/core/internal/AbstractJaxbProject.java | 4 +- .../META-INF/MANIFEST.MF | 8 +- .../build.properties | 2 + .../model/oxm.ecore | 333 + .../model/oxm.genmodel | 288 + .../plugin.properties | 2 + .../plugin.xml | 35 + .../resource/oxm/OxmXmlResourceProvider.java | 55 + .../core/resource/oxm/EAbstractXmlNullPolicy.java | 391 + .../core/resource/oxm/EAbstractXmlTransformer.java | 260 + .../resource/oxm/EAccessibleJavaAttribute.java | 52 + .../core/resource/oxm/EAdaptableJavaAttribute.java | 52 + .../core/resource/oxm/EContainerJavaAttribute.java | 52 + .../core/resource/oxm/EJavaAttribute.java | 418 + .../eclipselink/core/resource/oxm/EJavaType.java | 1396 +++ .../core/resource/oxm/EPropertyHolder.java | 44 + .../core/resource/oxm/EReadWriteJavaAttribute.java | 79 + .../core/resource/oxm/ETypedJavaAttribute.java | 52 + .../core/resource/oxm/EXmlAccessMethods.java | 260 + .../core/resource/oxm/EXmlAccessOrder.java | 223 + .../core/resource/oxm/EXmlAccessType.java | 277 + .../core/resource/oxm/EXmlAnyAttribute.java | 647 ++ .../core/resource/oxm/EXmlAnyElement.java | 1024 +++ .../core/resource/oxm/EXmlAttribute.java | 1651 ++++ .../core/resource/oxm/EXmlBindings.java | 969 ++ .../core/resource/oxm/EXmlClassExtractor.java | 192 + .../eclipselink/core/resource/oxm/EXmlElement.java | 1996 +++++ .../core/resource/oxm/EXmlElementDecl.java | 651 ++ .../core/resource/oxm/EXmlElementRef.java | 1039 +++ .../core/resource/oxm/EXmlElementRefs.java | 791 ++ .../core/resource/oxm/EXmlElementWrapper.java | 396 + .../core/resource/oxm/EXmlElements.java | 887 ++ .../eclipselink/core/resource/oxm/EXmlEnum.java | 331 + .../core/resource/oxm/EXmlEnumValue.java | 192 + .../core/resource/oxm/EXmlInverseReference.java | 580 ++ .../core/resource/oxm/EXmlIsSetNullPolicy.java | 283 + .../core/resource/oxm/EXmlIsSetParameter.java | 260 + .../core/resource/oxm/EXmlJavaTypeAdapter.java | 349 + .../core/resource/oxm/EXmlJoinNode.java | 260 + .../core/resource/oxm/EXmlJoinNodes.java | 402 + .../eclipselink/core/resource/oxm/EXmlMap.java | 260 + .../oxm/EXmlMarshalNullRepresentation.java | 250 + .../jaxb/eclipselink/core/resource/oxm/EXmlNs.java | 260 + .../eclipselink/core/resource/oxm/EXmlNsForm.java | 250 + .../core/resource/oxm/EXmlNullPolicy.java | 216 + .../core/resource/oxm/EXmlProperty.java | 328 + .../core/resource/oxm/EXmlReadTransformer.java | 40 + .../core/resource/oxm/EXmlRegistry.java | 260 + .../core/resource/oxm/EXmlRootElement.java | 255 + .../eclipselink/core/resource/oxm/EXmlSchema.java | 460 + .../core/resource/oxm/EXmlSchemaType.java | 321 + .../core/resource/oxm/EXmlTransformation.java | 546 ++ .../core/resource/oxm/EXmlTransient.java | 217 + .../eclipselink/core/resource/oxm/EXmlType.java | 466 + .../eclipselink/core/resource/oxm/EXmlValue.java | 907 ++ .../resource/oxm/EXmlVirtualAccessMethods.java | 331 + .../oxm/EXmlVirtualAccessMethodsSchema.java | 223 + .../core/resource/oxm/EXmlWriteTransformer.java | 188 + .../eclipselink/core/resource/oxm/EclipseLink.java | 49 + .../eclipselink/core/resource/oxm/OxmFactory.java | 782 ++ .../eclipselink/core/resource/oxm/OxmPackage.java | 9301 ++++++++++++++++++++ .../core/resource/oxm/OxmXmlResourceFactory.java | 46 + .../core/resource/oxm/util/OxmValidator.java | 805 ++ .../META-INF/MANIFEST.MF | 4 +- .../resource/ELJaxbCoreResourceModelTests.java | 2 + .../internal/resource/oxm/OxmResourceTests.java | 70 + 66 files changed, 34016 insertions(+), 4 deletions(-) create mode 100644 jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/model/oxm.ecore create mode 100644 jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/model/oxm.genmodel create mode 100644 jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/internal/resource/oxm/OxmXmlResourceProvider.java create mode 100644 jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EAbstractXmlNullPolicy.java create mode 100644 jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EAbstractXmlTransformer.java create mode 100644 jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EAccessibleJavaAttribute.java create mode 100644 jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EAdaptableJavaAttribute.java create mode 100644 jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EContainerJavaAttribute.java create mode 100644 jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EJavaAttribute.java create mode 100644 jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EJavaType.java create mode 100644 jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EPropertyHolder.java create mode 100644 jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EReadWriteJavaAttribute.java create mode 100644 jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/ETypedJavaAttribute.java create mode 100644 jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlAccessMethods.java create mode 100644 jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlAccessOrder.java create mode 100644 jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlAccessType.java create mode 100644 jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlAnyAttribute.java create mode 100644 jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlAnyElement.java create mode 100644 jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlAttribute.java create mode 100644 jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlBindings.java create mode 100644 jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlClassExtractor.java create mode 100644 jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlElement.java create mode 100644 jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlElementDecl.java create mode 100644 jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlElementRef.java create mode 100644 jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlElementRefs.java create mode 100644 jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlElementWrapper.java create mode 100644 jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlElements.java create mode 100644 jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlEnum.java create mode 100644 jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlEnumValue.java create mode 100644 jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlInverseReference.java create mode 100644 jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlIsSetNullPolicy.java create mode 100644 jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlIsSetParameter.java create mode 100644 jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlJavaTypeAdapter.java create mode 100644 jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlJoinNode.java create mode 100644 jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlJoinNodes.java create mode 100644 jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlMap.java create mode 100644 jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlMarshalNullRepresentation.java create mode 100644 jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlNs.java create mode 100644 jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlNsForm.java create mode 100644 jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlNullPolicy.java create mode 100644 jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlProperty.java create mode 100644 jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlReadTransformer.java create mode 100644 jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlRegistry.java create mode 100644 jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlRootElement.java create mode 100644 jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlSchema.java create mode 100644 jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlSchemaType.java create mode 100644 jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlTransformation.java create mode 100644 jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlTransient.java create mode 100644 jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlType.java create mode 100644 jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlValue.java create mode 100644 jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlVirtualAccessMethods.java create mode 100644 jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlVirtualAccessMethodsSchema.java create mode 100644 jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlWriteTransformer.java create mode 100644 jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EclipseLink.java create mode 100644 jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/OxmFactory.java create mode 100644 jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/OxmPackage.java create mode 100644 jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/OxmXmlResourceFactory.java create mode 100644 jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/util/OxmValidator.java create mode 100644 jaxb/tests/org.eclipse.jpt.jaxb.eclipselink.core.tests/src/org/eclipse/jpt/jaxb/eclipselink/core/tests/internal/resource/oxm/OxmResourceTests.java (limited to 'jaxb') diff --git a/jaxb/plugins/org.eclipse.jpt.jaxb.core/src/org/eclipse/jpt/jaxb/core/internal/AbstractJaxbProject.java b/jaxb/plugins/org.eclipse.jpt.jaxb.core/src/org/eclipse/jpt/jaxb/core/internal/AbstractJaxbProject.java index 788cf013e5..ca139a05bb 100644 --- a/jaxb/plugins/org.eclipse.jpt.jaxb.core/src/org/eclipse/jpt/jaxb/core/internal/AbstractJaxbProject.java +++ b/jaxb/plugins/org.eclipse.jpt.jaxb.core/src/org/eclipse/jpt/jaxb/core/internal/AbstractJaxbProject.java @@ -1235,13 +1235,13 @@ public abstract class AbstractJaxbProject } public void resourceModelReverted(JptResourceModel jpaResourceModel) { -// IFile file = WorkbenchResourceHelper.getFile((JpaXmlResource)jpaResourceModel); +// IFile file = WorkbenchResourceHelper.getFile((JptXmlResource)jpaResourceModel); // AbstractJaxbProject.this.removeJaxbFile(file); // AbstractJaxbProject.this.addJaxbFile(file); } public void resourceModelUnloaded(JptResourceModel jpaResourceModel) { -// IFile file = WorkbenchResourceHelper.getFile((JpaXmlResource)jpaResourceModel); +// IFile file = WorkbenchResourceHelper.getFile((JptXmlResource)jpaResourceModel); // AbstractJaxbProject.this.removeJaxbFile(file); } } diff --git a/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/META-INF/MANIFEST.MF b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/META-INF/MANIFEST.MF index 2abe8f3efe..f594d66c60 100644 --- a/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/META-INF/MANIFEST.MF +++ b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/META-INF/MANIFEST.MF @@ -13,12 +13,16 @@ Require-Bundle: org.eclipse.core.expressions;bundle-version="[3.4.300,4.0.0)", org.eclipse.core.resources;bundle-version="[3.7.100,4.0.0)", org.eclipse.core.runtime;bundle-version="[3.7.0,4.0.0)", org.eclipse.jdt.core;bundle-version="[3.7.0,4.0.0)", + org.eclipse.jem.util;bundle-version="[2.1.100,3.0.0)", org.eclipse.jpt.common.core;bundle-version="[1.0.0,2.0.0)", org.eclipse.jpt.common.eclipselink.core;bundle-version="[1.0.0,2.0.0)", org.eclipse.jpt.common.utility;bundle-version="[2.0.0,3.0.0)", org.eclipse.jpt.jaxb.core;bundle-version="[1.0.0,2.0.0)", org.eclipse.jst.common.project.facet.core;bundle-version="[1.4.200,2.0.0)", org.eclipse.jst.j2ee;bundle-version="[1.1.500,2.0.0)", + org.eclipse.text;bundle-version="[3.5.200,4.0.0)", + org.eclipse.wst.common.emf;bundle-version="[1.2.100,2.0.0)", + org.eclipse.wst.common.emfworkbench.integration;bundle-version="[1.2.101,2.0.0)", org.eclipse.wst.common.project.facet.core;bundle-version="[1.4.200,2.0.0)", org.eclipse.wst.validation;bundle-version="[1.2.300,2.0.0)", org.eclipse.xsd;bundle-version="[2.8.0,3.0.0)" @@ -32,9 +36,11 @@ Export-Package: org.eclipse.jpt.jaxb.eclipselink.core, org.eclipse.jpt.jaxb.eclipselink.core.internal.resource.java;x-internal:=true, org.eclipse.jpt.jaxb.eclipselink.core.internal.resource.java.binary;x-internal:=true, org.eclipse.jpt.jaxb.eclipselink.core.internal.resource.java.source;x-internal:=true, + org.eclipse.jpt.jaxb.eclipselink.core.internal.resource.oxm, org.eclipse.jpt.jaxb.eclipselink.core.internal.v2_1;x-internal:=true, org.eclipse.jpt.jaxb.eclipselink.core.internal.v2_2;x-internal:=true, org.eclipse.jpt.jaxb.eclipselink.core.internal.v2_3;x-internal:=true, org.eclipse.jpt.jaxb.eclipselink.core.internal.v2_4;x-internal:=true, org.eclipse.jpt.jaxb.eclipselink.core.internal.validation;x-internal:=true, - org.eclipse.jpt.jaxb.eclipselink.core.resource.java + org.eclipse.jpt.jaxb.eclipselink.core.resource.java, + org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm diff --git a/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/build.properties b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/build.properties index b7fe1216e1..22d1946538 100644 --- a/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/build.properties +++ b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/build.properties @@ -16,3 +16,5 @@ bin.includes = .,\ plugin.xml,\ plugin.properties jars.compile.order = . +src.includes = model/ +src.includes = model/ diff --git a/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/model/oxm.ecore b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/model/oxm.ecore new file mode 100644 index 0000000000..d59d1ce6ed --- /dev/null +++ b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/model/oxm.ecore @@ -0,0 +1,333 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/model/oxm.genmodel b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/model/oxm.genmodel new file mode 100644 index 0000000000..f6e8052bdc --- /dev/null +++ b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/model/oxm.genmodel @@ -0,0 +1,288 @@ + + + oxm.ecore + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/plugin.properties b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/plugin.properties index 52ad60c72e..524782836d 100644 --- a/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/plugin.properties +++ b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/plugin.properties @@ -22,6 +22,8 @@ pluginName = Dali Java Persistence Tools - EclipseLink JAXB Support - Core providerName = Eclipse Web Tools Platform +OXM_XML_CONTENT = EclipseLink oxm.xml mapping file + ECLIPSELINK_PLATFORM_GROUP_LABEL = EclipseLink ECLIPSELINK_2_1_PLATFORM_LABEL = EclipseLink 2.1.x ECLIPSELINK_2_2_PLATFORM_LABEL = EclipseLink 2.2.x diff --git a/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/plugin.xml b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/plugin.xml index 28efc2f92f..b8dbc1fb4e 100644 --- a/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/plugin.xml +++ b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/plugin.xml @@ -12,6 +12,25 @@ + + + + + + + + + + + + @@ -91,4 +110,20 @@ + + + + + + + + + + + + diff --git a/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/internal/resource/oxm/OxmXmlResourceProvider.java b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/internal/resource/oxm/OxmXmlResourceProvider.java new file mode 100644 index 0000000000..d27dd34460 --- /dev/null +++ b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/internal/resource/oxm/OxmXmlResourceProvider.java @@ -0,0 +1,55 @@ +/******************************************************************************* + * Copyright (c) 2012 Oracle. All rights reserved. + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v1.0, which accompanies this distribution + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Oracle - initial API and implementation + *******************************************************************************/ +package org.eclipse.jpt.jaxb.eclipselink.core.internal.resource.oxm; + +import org.eclipse.core.resources.IFile; +import org.eclipse.core.resources.IProject; +import org.eclipse.core.runtime.IPath; +import org.eclipse.jpt.common.core.internal.resource.xml.AbstractJptXmlResourceProvider; +import org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlBindings; +import org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EclipseLink; +import org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmFactory; + +public class OxmXmlResourceProvider + extends AbstractJptXmlResourceProvider { + + /** + * (Convenience method) Returns an OXM resource model provider for + * the given file. + */ + public static OxmXmlResourceProvider getXmlResourceProvider(IFile file) { + return getXmlResourceProvider_(file.getProject(), file.getFullPath()); + } + + /** + * (Convenience method) Returns an OXM resource model provider for + * the given project in the specified runtime location + */ + public static OxmXmlResourceProvider getXmlResourceProvider(IProject project, IPath runtimePath) { + return getXmlResourceProvider_(project, runtimePath); + } + + + private static OxmXmlResourceProvider getXmlResourceProvider_(IProject project, IPath fullPath) { + return new OxmXmlResourceProvider(project, fullPath); + } + + + public OxmXmlResourceProvider(IProject project, IPath filePath) { + super(project, filePath, EXmlBindings.CONTENT_TYPE); + } + + @Override + protected void populateRoot(Object config) { + EXmlBindings xmlBindings = OxmFactory.eINSTANCE.createEXmlBindings(); + xmlBindings.setVersion(EclipseLink.SCHEMA_VERSION_2_4); // TODO - for now + getResourceContents().add(xmlBindings); + } +} diff --git a/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EAbstractXmlNullPolicy.java b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EAbstractXmlNullPolicy.java new file mode 100644 index 0000000000..56fd173ef3 --- /dev/null +++ b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EAbstractXmlNullPolicy.java @@ -0,0 +1,391 @@ +/** + */ +package org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm; + +import java.util.HashMap; +import java.util.Map; +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EObject; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.jpt.common.core.internal.utility.translators.SimpleTranslator; +import org.eclipse.jpt.common.core.resource.xml.EBaseObject; +import org.eclipse.jpt.common.core.resource.xml.EBaseObjectImpl; +import org.eclipse.wst.common.internal.emf.resource.MultiObjectTranslator; +import org.eclipse.wst.common.internal.emf.resource.Translator; + +/** + * + * A representation of the model object 'EAbstract Xml Null Policy'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EAbstractXmlNullPolicy#isXsiNilRepresentsNull Xsi Nil Represents Null}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EAbstractXmlNullPolicy#isEmptyNodeRepresentsNull Empty Node Represents Null}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EAbstractXmlNullPolicy#getNullRepresentationForXml Null Representation For Xml}
  • + *
+ *

+ * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEAbstractXmlNullPolicy() + * @model kind="class" abstract="true" + * @extends EBaseObject + * @generated + */ +public abstract class EAbstractXmlNullPolicy extends EBaseObjectImpl implements EBaseObject +{ + /** + * The default value of the '{@link #isXsiNilRepresentsNull() Xsi Nil Represents Null}' attribute. + * + * + * @see #isXsiNilRepresentsNull() + * @generated + * @ordered + */ + protected static final boolean XSI_NIL_REPRESENTS_NULL_EDEFAULT = false; + + /** + * The cached value of the '{@link #isXsiNilRepresentsNull() Xsi Nil Represents Null}' attribute. + * + * + * @see #isXsiNilRepresentsNull() + * @generated + * @ordered + */ + protected boolean xsiNilRepresentsNull = XSI_NIL_REPRESENTS_NULL_EDEFAULT; + + /** + * The default value of the '{@link #isEmptyNodeRepresentsNull() Empty Node Represents Null}' attribute. + * + * + * @see #isEmptyNodeRepresentsNull() + * @generated + * @ordered + */ + protected static final boolean EMPTY_NODE_REPRESENTS_NULL_EDEFAULT = false; + + /** + * The cached value of the '{@link #isEmptyNodeRepresentsNull() Empty Node Represents Null}' attribute. + * + * + * @see #isEmptyNodeRepresentsNull() + * @generated + * @ordered + */ + protected boolean emptyNodeRepresentsNull = EMPTY_NODE_REPRESENTS_NULL_EDEFAULT; + + /** + * The default value of the '{@link #getNullRepresentationForXml() Null Representation For Xml}' attribute. + * + * + * @see #getNullRepresentationForXml() + * @generated + * @ordered + */ + protected static final EXmlMarshalNullRepresentation NULL_REPRESENTATION_FOR_XML_EDEFAULT = EXmlMarshalNullRepresentation.XSI_NIL; + + /** + * The cached value of the '{@link #getNullRepresentationForXml() Null Representation For Xml}' attribute. + * + * + * @see #getNullRepresentationForXml() + * @generated + * @ordered + */ + protected EXmlMarshalNullRepresentation nullRepresentationForXml = NULL_REPRESENTATION_FOR_XML_EDEFAULT; + + /** + * + * + * @generated + */ + protected EAbstractXmlNullPolicy() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return OxmPackage.Literals.EABSTRACT_XML_NULL_POLICY; + } + + /** + * Returns the value of the 'Xsi Nil Represents Null' attribute. + * + *

+ * If the meaning of the 'Xsi Nil Represents Null' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xsi Nil Represents Null' attribute. + * @see #setXsiNilRepresentsNull(boolean) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEAbstractXmlNullPolicy_XsiNilRepresentsNull() + * @model + * @generated + */ + public boolean isXsiNilRepresentsNull() + { + return xsiNilRepresentsNull; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EAbstractXmlNullPolicy#isXsiNilRepresentsNull Xsi Nil Represents Null}' attribute. + * + * + * @param value the new value of the 'Xsi Nil Represents Null' attribute. + * @see #isXsiNilRepresentsNull() + * @generated + */ + public void setXsiNilRepresentsNull(boolean newXsiNilRepresentsNull) + { + boolean oldXsiNilRepresentsNull = xsiNilRepresentsNull; + xsiNilRepresentsNull = newXsiNilRepresentsNull; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EABSTRACT_XML_NULL_POLICY__XSI_NIL_REPRESENTS_NULL, oldXsiNilRepresentsNull, xsiNilRepresentsNull)); + } + + /** + * Returns the value of the 'Empty Node Represents Null' attribute. + * + *

+ * If the meaning of the 'Empty Node Represents Null' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Empty Node Represents Null' attribute. + * @see #setEmptyNodeRepresentsNull(boolean) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEAbstractXmlNullPolicy_EmptyNodeRepresentsNull() + * @model + * @generated + */ + public boolean isEmptyNodeRepresentsNull() + { + return emptyNodeRepresentsNull; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EAbstractXmlNullPolicy#isEmptyNodeRepresentsNull Empty Node Represents Null}' attribute. + * + * + * @param value the new value of the 'Empty Node Represents Null' attribute. + * @see #isEmptyNodeRepresentsNull() + * @generated + */ + public void setEmptyNodeRepresentsNull(boolean newEmptyNodeRepresentsNull) + { + boolean oldEmptyNodeRepresentsNull = emptyNodeRepresentsNull; + emptyNodeRepresentsNull = newEmptyNodeRepresentsNull; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EABSTRACT_XML_NULL_POLICY__EMPTY_NODE_REPRESENTS_NULL, oldEmptyNodeRepresentsNull, emptyNodeRepresentsNull)); + } + + /** + * Returns the value of the 'Null Representation For Xml' attribute. + * The literals are from the enumeration {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlMarshalNullRepresentation}. + * + *

+ * If the meaning of the 'Null Representation For Xml' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Null Representation For Xml' attribute. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlMarshalNullRepresentation + * @see #setNullRepresentationForXml(EXmlMarshalNullRepresentation) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEAbstractXmlNullPolicy_NullRepresentationForXml() + * @model + * @generated + */ + public EXmlMarshalNullRepresentation getNullRepresentationForXml() + { + return nullRepresentationForXml; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EAbstractXmlNullPolicy#getNullRepresentationForXml Null Representation For Xml}' attribute. + * + * + * @param value the new value of the 'Null Representation For Xml' attribute. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlMarshalNullRepresentation + * @see #getNullRepresentationForXml() + * @generated + */ + public void setNullRepresentationForXml(EXmlMarshalNullRepresentation newNullRepresentationForXml) + { + EXmlMarshalNullRepresentation oldNullRepresentationForXml = nullRepresentationForXml; + nullRepresentationForXml = newNullRepresentationForXml == null ? NULL_REPRESENTATION_FOR_XML_EDEFAULT : newNullRepresentationForXml; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EABSTRACT_XML_NULL_POLICY__NULL_REPRESENTATION_FOR_XML, oldNullRepresentationForXml, nullRepresentationForXml)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case OxmPackage.EABSTRACT_XML_NULL_POLICY__XSI_NIL_REPRESENTS_NULL: + return isXsiNilRepresentsNull(); + case OxmPackage.EABSTRACT_XML_NULL_POLICY__EMPTY_NODE_REPRESENTS_NULL: + return isEmptyNodeRepresentsNull(); + case OxmPackage.EABSTRACT_XML_NULL_POLICY__NULL_REPRESENTATION_FOR_XML: + return getNullRepresentationForXml(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case OxmPackage.EABSTRACT_XML_NULL_POLICY__XSI_NIL_REPRESENTS_NULL: + setXsiNilRepresentsNull((Boolean)newValue); + return; + case OxmPackage.EABSTRACT_XML_NULL_POLICY__EMPTY_NODE_REPRESENTS_NULL: + setEmptyNodeRepresentsNull((Boolean)newValue); + return; + case OxmPackage.EABSTRACT_XML_NULL_POLICY__NULL_REPRESENTATION_FOR_XML: + setNullRepresentationForXml((EXmlMarshalNullRepresentation)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case OxmPackage.EABSTRACT_XML_NULL_POLICY__XSI_NIL_REPRESENTS_NULL: + setXsiNilRepresentsNull(XSI_NIL_REPRESENTS_NULL_EDEFAULT); + return; + case OxmPackage.EABSTRACT_XML_NULL_POLICY__EMPTY_NODE_REPRESENTS_NULL: + setEmptyNodeRepresentsNull(EMPTY_NODE_REPRESENTS_NULL_EDEFAULT); + return; + case OxmPackage.EABSTRACT_XML_NULL_POLICY__NULL_REPRESENTATION_FOR_XML: + setNullRepresentationForXml(NULL_REPRESENTATION_FOR_XML_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case OxmPackage.EABSTRACT_XML_NULL_POLICY__XSI_NIL_REPRESENTS_NULL: + return xsiNilRepresentsNull != XSI_NIL_REPRESENTS_NULL_EDEFAULT; + case OxmPackage.EABSTRACT_XML_NULL_POLICY__EMPTY_NODE_REPRESENTS_NULL: + return emptyNodeRepresentsNull != EMPTY_NODE_REPRESENTS_NULL_EDEFAULT; + case OxmPackage.EABSTRACT_XML_NULL_POLICY__NULL_REPRESENTATION_FOR_XML: + return nullRepresentationForXml != NULL_REPRESENTATION_FOR_XML_EDEFAULT; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (xsiNilRepresentsNull: "); + result.append(xsiNilRepresentsNull); + result.append(", emptyNodeRepresentsNull: "); + result.append(emptyNodeRepresentsNull); + result.append(", nullRepresentationForXml: "); + result.append(nullRepresentationForXml); + result.append(')'); + return result.toString(); + } + + + // ***** translators ***** + + static class AbstractXmlNullPolicyTranslator + extends MultiObjectTranslator { + + protected static String DOM_PATH = + EclipseLink.XML_IS_SET_NULL_POLICY + "," + + EclipseLink.XML_NULL_POLICY; + + protected static Map DELEGATES = new HashMap(); + + + protected AbstractXmlNullPolicyTranslator() { + super(DOM_PATH, OxmPackage.eINSTANCE.getEXmlAttribute_XmlAbstractNullPolicy()); + } + + + protected static Map delegates() { + if (DELEGATES.isEmpty()) { + String path = EclipseLink.XML_IS_SET_NULL_POLICY; + DELEGATES.put(path, new EXmlIsSetNullPolicy.XmlIsSetNullPolicyTranslator()); + + path = EclipseLink.XML_NULL_POLICY; + DELEGATES.put(path, new EXmlNullPolicy.XmlNullPolicyTranslator()); + } + return DELEGATES; + } + + @Override + public Translator getDelegateFor(EObject o) { + switch (o.eClass().getClassifierID()) { + case OxmPackage.EXML_IS_SET_NULL_POLICY : + return delegates().get(EclipseLink.XML_IS_SET_NULL_POLICY); + case OxmPackage.EXML_NULL_POLICY : + return delegates().get(EclipseLink.XML_NULL_POLICY); + } + throw new IllegalStateException("Null policy expected"); //$NON-NLS-1$ + } + + @Override + public Translator getDelegateFor(String domName, String readAheadName) { + return delegates().get(domName); + } + } + + + abstract static class AbstractAbstractXmlNullPolicyTranslator + extends SimpleTranslator { + + protected AbstractAbstractXmlNullPolicyTranslator(String domPathAndName, Translator[] translatorChildren) { + super(domPathAndName, OxmPackage.eINSTANCE.getEXmlAttribute_XmlAbstractNullPolicy(), translatorChildren); + } + } +} diff --git a/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EAbstractXmlTransformer.java b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EAbstractXmlTransformer.java new file mode 100644 index 0000000000..d8a2028cc1 --- /dev/null +++ b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EAbstractXmlTransformer.java @@ -0,0 +1,260 @@ +/** + */ +package org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.jpt.common.core.resource.xml.EBaseObject; +import org.eclipse.jpt.common.core.resource.xml.EBaseObjectImpl; + +/** + * + * A representation of the model object 'EAbstract Xml Transformer'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EAbstractXmlTransformer#getMethod Method}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EAbstractXmlTransformer#getTransformerClass Transformer Class}
  • + *
+ *

+ * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEAbstractXmlTransformer() + * @model kind="class" abstract="true" + * @extends EBaseObject + * @generated + */ +public abstract class EAbstractXmlTransformer extends EBaseObjectImpl implements EBaseObject +{ + /** + * The default value of the '{@link #getMethod() Method}' attribute. + * + * + * @see #getMethod() + * @generated + * @ordered + */ + protected static final String METHOD_EDEFAULT = null; + + /** + * The cached value of the '{@link #getMethod() Method}' attribute. + * + * + * @see #getMethod() + * @generated + * @ordered + */ + protected String method = METHOD_EDEFAULT; + + /** + * The default value of the '{@link #getTransformerClass() Transformer Class}' attribute. + * + * + * @see #getTransformerClass() + * @generated + * @ordered + */ + protected static final String TRANSFORMER_CLASS_EDEFAULT = null; + + /** + * The cached value of the '{@link #getTransformerClass() Transformer Class}' attribute. + * + * + * @see #getTransformerClass() + * @generated + * @ordered + */ + protected String transformerClass = TRANSFORMER_CLASS_EDEFAULT; + + /** + * + * + * @generated + */ + protected EAbstractXmlTransformer() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return OxmPackage.Literals.EABSTRACT_XML_TRANSFORMER; + } + + /** + * Returns the value of the 'Method' attribute. + * + *

+ * If the meaning of the 'Method' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Method' attribute. + * @see #setMethod(String) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEAbstractXmlTransformer_Method() + * @model + * @generated + */ + public String getMethod() + { + return method; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EAbstractXmlTransformer#getMethod Method}' attribute. + * + * + * @param value the new value of the 'Method' attribute. + * @see #getMethod() + * @generated + */ + public void setMethod(String newMethod) + { + String oldMethod = method; + method = newMethod; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EABSTRACT_XML_TRANSFORMER__METHOD, oldMethod, method)); + } + + /** + * Returns the value of the 'Transformer Class' attribute. + * + *

+ * If the meaning of the 'Transformer Class' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Transformer Class' attribute. + * @see #setTransformerClass(String) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEAbstractXmlTransformer_TransformerClass() + * @model + * @generated + */ + public String getTransformerClass() + { + return transformerClass; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EAbstractXmlTransformer#getTransformerClass Transformer Class}' attribute. + * + * + * @param value the new value of the 'Transformer Class' attribute. + * @see #getTransformerClass() + * @generated + */ + public void setTransformerClass(String newTransformerClass) + { + String oldTransformerClass = transformerClass; + transformerClass = newTransformerClass; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EABSTRACT_XML_TRANSFORMER__TRANSFORMER_CLASS, oldTransformerClass, transformerClass)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case OxmPackage.EABSTRACT_XML_TRANSFORMER__METHOD: + return getMethod(); + case OxmPackage.EABSTRACT_XML_TRANSFORMER__TRANSFORMER_CLASS: + return getTransformerClass(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case OxmPackage.EABSTRACT_XML_TRANSFORMER__METHOD: + setMethod((String)newValue); + return; + case OxmPackage.EABSTRACT_XML_TRANSFORMER__TRANSFORMER_CLASS: + setTransformerClass((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case OxmPackage.EABSTRACT_XML_TRANSFORMER__METHOD: + setMethod(METHOD_EDEFAULT); + return; + case OxmPackage.EABSTRACT_XML_TRANSFORMER__TRANSFORMER_CLASS: + setTransformerClass(TRANSFORMER_CLASS_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case OxmPackage.EABSTRACT_XML_TRANSFORMER__METHOD: + return METHOD_EDEFAULT == null ? method != null : !METHOD_EDEFAULT.equals(method); + case OxmPackage.EABSTRACT_XML_TRANSFORMER__TRANSFORMER_CLASS: + return TRANSFORMER_CLASS_EDEFAULT == null ? transformerClass != null : !TRANSFORMER_CLASS_EDEFAULT.equals(transformerClass); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (method: "); + result.append(method); + result.append(", transformerClass: "); + result.append(transformerClass); + result.append(')'); + return result.toString(); + } + +} // EAbstractXmlTransformer diff --git a/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EAccessibleJavaAttribute.java b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EAccessibleJavaAttribute.java new file mode 100644 index 0000000000..2945a49b8b --- /dev/null +++ b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EAccessibleJavaAttribute.java @@ -0,0 +1,52 @@ +/** + */ +package org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm; + +import org.eclipse.jpt.common.core.resource.xml.EBaseObject; + +/** + * + * A representation of the model object 'EAccessible Java Attribute'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EAccessibleJavaAttribute#getXmlAccessMethods Xml Access Methods}
  • + *
+ *

+ * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEAccessibleJavaAttribute() + * @model kind="class" interface="true" abstract="true" + * @extends EBaseObject + * @generated + */ +public interface EAccessibleJavaAttribute extends EBaseObject +{ + /** + * Returns the value of the 'Xml Access Methods' containment reference. + * + *

+ * If the meaning of the 'Xml Access Methods' containment reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Access Methods' containment reference. + * @see #setXmlAccessMethods(EXmlAccessMethods) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEAccessibleJavaAttribute_XmlAccessMethods() + * @model containment="true" + * @generated + */ + EXmlAccessMethods getXmlAccessMethods(); + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EAccessibleJavaAttribute#getXmlAccessMethods Xml Access Methods}' containment reference. + * + * + * @param value the new value of the 'Xml Access Methods' containment reference. + * @see #getXmlAccessMethods() + * @generated + */ + void setXmlAccessMethods(EXmlAccessMethods value); + +} // EAccessibleJavaAttribute diff --git a/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EAdaptableJavaAttribute.java b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EAdaptableJavaAttribute.java new file mode 100644 index 0000000000..fb6172f5dd --- /dev/null +++ b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EAdaptableJavaAttribute.java @@ -0,0 +1,52 @@ +/** + */ +package org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm; + +import org.eclipse.jpt.common.core.resource.xml.EBaseObject; + +/** + * + * A representation of the model object 'EAdaptable Java Attribute'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EAdaptableJavaAttribute#getXmlJavaTypeAdapter Xml Java Type Adapter}
  • + *
+ *

+ * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEAdaptableJavaAttribute() + * @model kind="class" interface="true" abstract="true" + * @extends EBaseObject + * @generated + */ +public interface EAdaptableJavaAttribute extends EBaseObject +{ + /** + * Returns the value of the 'Xml Java Type Adapter' containment reference. + * + *

+ * If the meaning of the 'Xml Java Type Adapter' containment reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Java Type Adapter' containment reference. + * @see #setXmlJavaTypeAdapter(EXmlJavaTypeAdapter) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEAdaptableJavaAttribute_XmlJavaTypeAdapter() + * @model containment="true" + * @generated + */ + EXmlJavaTypeAdapter getXmlJavaTypeAdapter(); + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EAdaptableJavaAttribute#getXmlJavaTypeAdapter Xml Java Type Adapter}' containment reference. + * + * + * @param value the new value of the 'Xml Java Type Adapter' containment reference. + * @see #getXmlJavaTypeAdapter() + * @generated + */ + void setXmlJavaTypeAdapter(EXmlJavaTypeAdapter value); + +} // EAdaptableJavaAttribute diff --git a/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EContainerJavaAttribute.java b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EContainerJavaAttribute.java new file mode 100644 index 0000000000..66ce42e7d5 --- /dev/null +++ b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EContainerJavaAttribute.java @@ -0,0 +1,52 @@ +/** + */ +package org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm; + +import org.eclipse.jpt.common.core.resource.xml.EBaseObject; + +/** + * + * A representation of the model object 'EContainer Java Attribute'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EContainerJavaAttribute#getContainerType Container Type}
  • + *
+ *

+ * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEContainerJavaAttribute() + * @model kind="class" interface="true" abstract="true" + * @extends EBaseObject + * @generated + */ +public interface EContainerJavaAttribute extends EBaseObject +{ + /** + * Returns the value of the 'Container Type' attribute. + * + *

+ * If the meaning of the 'Container Type' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Container Type' attribute. + * @see #setContainerType(String) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEContainerJavaAttribute_ContainerType() + * @model + * @generated + */ + String getContainerType(); + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EContainerJavaAttribute#getContainerType Container Type}' attribute. + * + * + * @param value the new value of the 'Container Type' attribute. + * @see #getContainerType() + * @generated + */ + void setContainerType(String value); + +} // EContainerJavaAttribute diff --git a/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EJavaAttribute.java b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EJavaAttribute.java new file mode 100644 index 0000000000..27dca7bd59 --- /dev/null +++ b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EJavaAttribute.java @@ -0,0 +1,418 @@ +/******************************************************************************* + * Copyright (c) 2012 Oracle. All rights reserved. + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v1.0, which accompanies this distribution + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Oracle - initial API and implementation + *******************************************************************************/ +package org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm; + +import java.util.HashMap; +import java.util.Map; +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.jpt.common.core.internal.utility.translators.SimpleTranslator; +import org.eclipse.jpt.common.core.resource.xml.EBaseObject; +import org.eclipse.jpt.common.core.resource.xml.EBaseObjectImpl; +import org.eclipse.wst.common.internal.emf.resource.MultiObjectTranslator; +import org.eclipse.wst.common.internal.emf.resource.Translator; + +/** + * + * A representation of the model object 'EJava Attribute'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EJavaAttribute#getJavaAttribute Java Attribute}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EJavaAttribute#getXmlAccessorType Xml Accessor Type}
  • + *
+ *

+ * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEJavaAttribute() + * @model kind="class" abstract="true" + * @extends EBaseObject + * @generated + */ +public abstract class EJavaAttribute extends EBaseObjectImpl implements EBaseObject +{ + /** + * The default value of the '{@link #getJavaAttribute() Java Attribute}' attribute. + * + * + * @see #getJavaAttribute() + * @generated + * @ordered + */ + protected static final String JAVA_ATTRIBUTE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getJavaAttribute() Java Attribute}' attribute. + * + * + * @see #getJavaAttribute() + * @generated + * @ordered + */ + protected String javaAttribute = JAVA_ATTRIBUTE_EDEFAULT; + + /** + * The default value of the '{@link #getXmlAccessorType() Xml Accessor Type}' attribute. + * + * + * @see #getXmlAccessorType() + * @generated + * @ordered + */ + protected static final EXmlAccessType XML_ACCESSOR_TYPE_EDEFAULT = EXmlAccessType.FIELD; + + /** + * The cached value of the '{@link #getXmlAccessorType() Xml Accessor Type}' attribute. + * + * + * @see #getXmlAccessorType() + * @generated + * @ordered + */ + protected EXmlAccessType xmlAccessorType = XML_ACCESSOR_TYPE_EDEFAULT; + + /** + * + * + * @generated + */ + protected EJavaAttribute() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return OxmPackage.Literals.EJAVA_ATTRIBUTE; + } + + /** + * Returns the value of the 'Java Attribute' attribute. + * + *

+ * If the meaning of the 'Java Attribute' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Java Attribute' attribute. + * @see #setJavaAttribute(String) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEJavaAttribute_JavaAttribute() + * @model + * @generated + */ + public String getJavaAttribute() + { + return javaAttribute; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EJavaAttribute#getJavaAttribute Java Attribute}' attribute. + * + * + * @param value the new value of the 'Java Attribute' attribute. + * @see #getJavaAttribute() + * @generated + */ + public void setJavaAttribute(String newJavaAttribute) + { + String oldJavaAttribute = javaAttribute; + javaAttribute = newJavaAttribute; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EJAVA_ATTRIBUTE__JAVA_ATTRIBUTE, oldJavaAttribute, javaAttribute)); + } + + /** + * Returns the value of the 'Xml Accessor Type' attribute. + * The literals are from the enumeration {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAccessType}. + * + *

+ * If the meaning of the 'Xml Accessor Type' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Accessor Type' attribute. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAccessType + * @see #setXmlAccessorType(EXmlAccessType) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEJavaAttribute_XmlAccessorType() + * @model + * @generated + */ + public EXmlAccessType getXmlAccessorType() + { + return xmlAccessorType; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EJavaAttribute#getXmlAccessorType Xml Accessor Type}' attribute. + * + * + * @param value the new value of the 'Xml Accessor Type' attribute. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAccessType + * @see #getXmlAccessorType() + * @generated + */ + public void setXmlAccessorType(EXmlAccessType newXmlAccessorType) + { + EXmlAccessType oldXmlAccessorType = xmlAccessorType; + xmlAccessorType = newXmlAccessorType == null ? XML_ACCESSOR_TYPE_EDEFAULT : newXmlAccessorType; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EJAVA_ATTRIBUTE__XML_ACCESSOR_TYPE, oldXmlAccessorType, xmlAccessorType)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case OxmPackage.EJAVA_ATTRIBUTE__JAVA_ATTRIBUTE: + return getJavaAttribute(); + case OxmPackage.EJAVA_ATTRIBUTE__XML_ACCESSOR_TYPE: + return getXmlAccessorType(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case OxmPackage.EJAVA_ATTRIBUTE__JAVA_ATTRIBUTE: + setJavaAttribute((String)newValue); + return; + case OxmPackage.EJAVA_ATTRIBUTE__XML_ACCESSOR_TYPE: + setXmlAccessorType((EXmlAccessType)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case OxmPackage.EJAVA_ATTRIBUTE__JAVA_ATTRIBUTE: + setJavaAttribute(JAVA_ATTRIBUTE_EDEFAULT); + return; + case OxmPackage.EJAVA_ATTRIBUTE__XML_ACCESSOR_TYPE: + setXmlAccessorType(XML_ACCESSOR_TYPE_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case OxmPackage.EJAVA_ATTRIBUTE__JAVA_ATTRIBUTE: + return JAVA_ATTRIBUTE_EDEFAULT == null ? javaAttribute != null : !JAVA_ATTRIBUTE_EDEFAULT.equals(javaAttribute); + case OxmPackage.EJAVA_ATTRIBUTE__XML_ACCESSOR_TYPE: + return xmlAccessorType != XML_ACCESSOR_TYPE_EDEFAULT; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (javaAttribute: "); + result.append(javaAttribute); + result.append(", xmlAccessorType: "); + result.append(xmlAccessorType); + result.append(')'); + return result.toString(); + } + + + // ***** translators ***** + + static class JavaAttributesTranslator + extends MultiObjectTranslator { + + protected static String DOM_PATH = + EclipseLink.JAVA_ATTRIBUTES + "/" + + EclipseLink.XML_ANY_ATTRIBUTE + "," + + EclipseLink.XML_ANY_ELEMENT + "," + + EclipseLink.XML_ATTRIBUTE + "," + + EclipseLink.XML_ELEMENT + "," + + EclipseLink.XML_ELEMENT_REF + "," + + EclipseLink.XML_ELEMENT_REFS + "," + + EclipseLink.XML_ELEMENTS + "," + + EclipseLink.XML_INVERSE_REFERENCE + "," + + EclipseLink.XML_JAVA_TYPE_ADAPTER + "," + + EclipseLink.XML_JOIN_NODES + "," + + EclipseLink.XML_TRANSFORMATION + "," + + EclipseLink.XML_TRANSIENT + "," + + EclipseLink.XML_VALUE; + + protected static Map DELEGATES = new HashMap(); + + + JavaAttributesTranslator() { + super(DOM_PATH, OxmPackage.eINSTANCE.getEJavaType_JavaAttributes()); + } + + + protected static Map delegates() { + if (DELEGATES.isEmpty()) { + + String pathPrefix = EclipseLink.JAVA_ATTRIBUTES + "/"; + EStructuralFeature eStructuralFeature = OxmPackage.eINSTANCE.getEJavaType_JavaAttributes(); + + String path = EclipseLink.XML_ANY_ATTRIBUTE; + DELEGATES.put(path, + new EXmlAnyAttribute.XmlAnyAttributeTranslator(pathPrefix + path, eStructuralFeature)); + + path = EclipseLink.XML_ANY_ELEMENT; + DELEGATES.put(path, + new EXmlAnyElement.XmlAnyElementTranslator(pathPrefix + path, eStructuralFeature)); + + path = EclipseLink.XML_ATTRIBUTE; + DELEGATES.put(path, + new EXmlAttribute.XmlAttributeTranslator(pathPrefix + path, eStructuralFeature)); + + path = EclipseLink.XML_ELEMENT; + DELEGATES.put(path, + new EXmlElement.XmlElementTranslator(pathPrefix + path, eStructuralFeature)); + + path = EclipseLink.XML_ELEMENT_REF; + DELEGATES.put(path, + new EXmlElementRef.XmlElementRefTranslator(pathPrefix + path, eStructuralFeature)); + + path = EclipseLink.XML_ELEMENT_REFS; + DELEGATES.put(path, + new EXmlElementRefs.XmlElementRefsTranslator(pathPrefix + path, eStructuralFeature)); + + path = EclipseLink.XML_ELEMENTS; + DELEGATES.put(path, + new EXmlElements.XmlElementsTranslator(pathPrefix + path, eStructuralFeature)); + + path = EclipseLink.XML_INVERSE_REFERENCE; + DELEGATES.put(path, + new EXmlInverseReference.XmlInverseReferenceTranslator(pathPrefix + path, eStructuralFeature)); + + path = EclipseLink.XML_JAVA_TYPE_ADAPTER; + DELEGATES.put(path, + new EXmlJavaTypeAdapter.XmlJavaTypeAdapterTranslator(pathPrefix + path, eStructuralFeature)); + + path = EclipseLink.XML_JOIN_NODES; + DELEGATES.put(path, + new EXmlJoinNodes.XmlJoinNodesTranslator(pathPrefix + path, eStructuralFeature)); + + path = EclipseLink.XML_TRANSFORMATION; + DELEGATES.put(path, + new EXmlTransformation.XmlTransformationTranslator(pathPrefix + path, eStructuralFeature)); + + path = EclipseLink.XML_TRANSIENT; + DELEGATES.put(path, + new EXmlTransient.XmlTransientTranslator(pathPrefix + path, eStructuralFeature)); + + path = EclipseLink.XML_VALUE; + DELEGATES.put(path, + new EXmlValue.XmlValueTranslator(pathPrefix + path, eStructuralFeature)); + } + return DELEGATES; + } + + protected static String wrappedPath(String path) { + return EclipseLink.JAVA_ATTRIBUTES + "/" + path; + } + + @Override + public Translator getDelegateFor(EObject o) { + switch (o.eClass().getClassifierID()) { + case OxmPackage.EXML_ANY_ATTRIBUTE : + return delegates().get(EclipseLink.XML_ANY_ATTRIBUTE); + case OxmPackage.EXML_ANY_ELEMENT : + return delegates().get(EclipseLink.XML_ANY_ELEMENT); + case OxmPackage.EXML_ATTRIBUTE : + return delegates().get(EclipseLink.XML_ATTRIBUTE); + case OxmPackage.EXML_ELEMENT : + return delegates().get(EclipseLink.XML_ELEMENT); + case OxmPackage.EXML_ELEMENT_REF : + return delegates().get(EclipseLink.XML_ELEMENT_REF); + case OxmPackage.EXML_ELEMENT_REFS: + return delegates().get(EclipseLink.XML_ELEMENT_REFS); + case OxmPackage.EXML_ELEMENTS: + return delegates().get(EclipseLink.XML_ELEMENTS); + case OxmPackage.EXML_INVERSE_REFERENCE : + return delegates().get(EclipseLink.XML_INVERSE_REFERENCE); + case OxmPackage.EXML_JAVA_TYPE_ADAPTER : + return delegates().get(EclipseLink.XML_JAVA_TYPE_ADAPTER); + case OxmPackage.EXML_JOIN_NODES : + return delegates().get(EclipseLink.XML_JOIN_NODES); + case OxmPackage.EXML_TRANSFORMATION : + return delegates().get(EclipseLink.XML_TRANSFORMATION); + case OxmPackage.EXML_TRANSIENT : + return delegates().get(EclipseLink.XML_TRANSIENT); + case OxmPackage.EXML_VALUE : + return delegates().get(EclipseLink.XML_VALUE); + + } + throw new IllegalStateException("Java attribute expected"); //$NON-NLS-1$ + } + + @Override + public Translator getDelegateFor(String domName, String readAheadName) { + return delegates().get(domName); + } + } + + + abstract static class AbstractJavaAttributeTranslator + extends SimpleTranslator { + + protected AbstractJavaAttributeTranslator( + String domPathAndName, EStructuralFeature eStructuralFeature, Translator[] translatorChildren) { + super(EclipseLink.JAVA_ATTRIBUTES + "/" + domPathAndName, eStructuralFeature, translatorChildren); + } + } +} diff --git a/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EJavaType.java b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EJavaType.java new file mode 100644 index 0000000000..cbf525aea9 --- /dev/null +++ b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EJavaType.java @@ -0,0 +1,1396 @@ +/******************************************************************************* + * Copyright (c) 2012 Oracle. All rights reserved. + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v1.0, which accompanies this distribution + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Oracle - initial API and implementation + *******************************************************************************/ +package org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm; + +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.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.jpt.common.core.internal.utility.translators.SimpleTranslator; +import org.eclipse.jpt.common.core.resource.xml.EBaseObjectImpl; +import org.eclipse.wst.common.internal.emf.resource.Translator; + +/** + * + * A representation of the model object 'EJava Type'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EJavaType#getName Name}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EJavaType#getSuperType Super Type}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EJavaType#getXmlAccessorOrder Xml Accessor Order}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EJavaType#getXmlAccessorType Xml Accessor Type}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EJavaType#getXmlCustomizer Xml Customizer}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EJavaType#getXmlDiscriminatorNode Xml Discriminator Node}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EJavaType#getXmlDiscriminatorValue Xml Discriminator Value}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EJavaType#isXmlInlineBinaryData Xml Inline Binary Data}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EJavaType#isXmlTransient Xml Transient}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EJavaType#getXmlNameTransformer Xml Name Transformer}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EJavaType#getXmlType Xml Type}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EJavaType#getXmlRootElement Xml Root Element}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EJavaType#getXmlVirtualAccessMethods Xml Virtual Access Methods}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EJavaType#getXmlSeeAlso Xml See Also}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EJavaType#getXmlJavaTypeAdapter Xml Java Type Adapter}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EJavaType#getXmlClassExtractor Xml Class Extractor}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EJavaType#getJavaAttributes Java Attributes}
  • + *
+ *

+ * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEJavaType() + * @model kind="class" + * @generated + */ +public class EJavaType extends EBaseObjectImpl implements EPropertyHolder +{ + /** + * The cached value of the '{@link #getXmlProperties() Xml Properties}' containment reference list. + * + * + * @see #getXmlProperties() + * @generated + * @ordered + */ + protected EList xmlProperties; + /** + * The default value of the '{@link #getName() Name}' attribute. + * + * + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + /** + * The cached value of the '{@link #getName() Name}' attribute. + * + * + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + /** + * The default value of the '{@link #getSuperType() Super Type}' attribute. + * + * + * @see #getSuperType() + * @generated + * @ordered + */ + protected static final String SUPER_TYPE_EDEFAULT = null; + /** + * The cached value of the '{@link #getSuperType() Super Type}' attribute. + * + * + * @see #getSuperType() + * @generated + * @ordered + */ + protected String superType = SUPER_TYPE_EDEFAULT; + /** + * The default value of the '{@link #getXmlAccessorOrder() Xml Accessor Order}' attribute. + * + * + * @see #getXmlAccessorOrder() + * @generated + * @ordered + */ + protected static final EXmlAccessOrder XML_ACCESSOR_ORDER_EDEFAULT = EXmlAccessOrder.ALPHABETICAL; + /** + * The cached value of the '{@link #getXmlAccessorOrder() Xml Accessor Order}' attribute. + * + * + * @see #getXmlAccessorOrder() + * @generated + * @ordered + */ + protected EXmlAccessOrder xmlAccessorOrder = XML_ACCESSOR_ORDER_EDEFAULT; + /** + * The default value of the '{@link #getXmlAccessorType() Xml Accessor Type}' attribute. + * + * + * @see #getXmlAccessorType() + * @generated + * @ordered + */ + protected static final EXmlAccessType XML_ACCESSOR_TYPE_EDEFAULT = EXmlAccessType.FIELD; + /** + * The cached value of the '{@link #getXmlAccessorType() Xml Accessor Type}' attribute. + * + * + * @see #getXmlAccessorType() + * @generated + * @ordered + */ + protected EXmlAccessType xmlAccessorType = XML_ACCESSOR_TYPE_EDEFAULT; + /** + * The default value of the '{@link #getXmlCustomizer() Xml Customizer}' attribute. + * + * + * @see #getXmlCustomizer() + * @generated + * @ordered + */ + protected static final String XML_CUSTOMIZER_EDEFAULT = null; + /** + * The cached value of the '{@link #getXmlCustomizer() Xml Customizer}' attribute. + * + * + * @see #getXmlCustomizer() + * @generated + * @ordered + */ + protected String xmlCustomizer = XML_CUSTOMIZER_EDEFAULT; + /** + * The default value of the '{@link #getXmlDiscriminatorNode() Xml Discriminator Node}' attribute. + * + * + * @see #getXmlDiscriminatorNode() + * @generated + * @ordered + */ + protected static final String XML_DISCRIMINATOR_NODE_EDEFAULT = null; + /** + * The cached value of the '{@link #getXmlDiscriminatorNode() Xml Discriminator Node}' attribute. + * + * + * @see #getXmlDiscriminatorNode() + * @generated + * @ordered + */ + protected String xmlDiscriminatorNode = XML_DISCRIMINATOR_NODE_EDEFAULT; + /** + * The default value of the '{@link #getXmlDiscriminatorValue() Xml Discriminator Value}' attribute. + * + * + * @see #getXmlDiscriminatorValue() + * @generated + * @ordered + */ + protected static final String XML_DISCRIMINATOR_VALUE_EDEFAULT = null; + /** + * The cached value of the '{@link #getXmlDiscriminatorValue() Xml Discriminator Value}' attribute. + * + * + * @see #getXmlDiscriminatorValue() + * @generated + * @ordered + */ + protected String xmlDiscriminatorValue = XML_DISCRIMINATOR_VALUE_EDEFAULT; + /** + * The default value of the '{@link #isXmlInlineBinaryData() Xml Inline Binary Data}' attribute. + * + * + * @see #isXmlInlineBinaryData() + * @generated + * @ordered + */ + protected static final boolean XML_INLINE_BINARY_DATA_EDEFAULT = false; + /** + * The cached value of the '{@link #isXmlInlineBinaryData() Xml Inline Binary Data}' attribute. + * + * + * @see #isXmlInlineBinaryData() + * @generated + * @ordered + */ + protected boolean xmlInlineBinaryData = XML_INLINE_BINARY_DATA_EDEFAULT; + /** + * The default value of the '{@link #isXmlTransient() Xml Transient}' attribute. + * + * + * @see #isXmlTransient() + * @generated + * @ordered + */ + protected static final boolean XML_TRANSIENT_EDEFAULT = false; + /** + * The cached value of the '{@link #isXmlTransient() Xml Transient}' attribute. + * + * + * @see #isXmlTransient() + * @generated + * @ordered + */ + protected boolean xmlTransient = XML_TRANSIENT_EDEFAULT; + /** + * The default value of the '{@link #getXmlNameTransformer() Xml Name Transformer}' attribute. + * + * + * @see #getXmlNameTransformer() + * @generated + * @ordered + */ + protected static final String XML_NAME_TRANSFORMER_EDEFAULT = null; + /** + * The cached value of the '{@link #getXmlNameTransformer() Xml Name Transformer}' attribute. + * + * + * @see #getXmlNameTransformer() + * @generated + * @ordered + */ + protected String xmlNameTransformer = XML_NAME_TRANSFORMER_EDEFAULT; + /** + * The cached value of the '{@link #getXmlType() Xml Type}' containment reference. + * + * + * @see #getXmlType() + * @generated + * @ordered + */ + protected EXmlType xmlType; + /** + * The cached value of the '{@link #getXmlRootElement() Xml Root Element}' containment reference. + * + * + * @see #getXmlRootElement() + * @generated + * @ordered + */ + protected EXmlRootElement xmlRootElement; + /** + * The cached value of the '{@link #getXmlVirtualAccessMethods() Xml Virtual Access Methods}' containment reference. + * + * + * @see #getXmlVirtualAccessMethods() + * @generated + * @ordered + */ + protected EXmlVirtualAccessMethods xmlVirtualAccessMethods; + /** + * The default value of the '{@link #getXmlSeeAlso() Xml See Also}' attribute. + * + * + * @see #getXmlSeeAlso() + * @generated + * @ordered + */ + protected static final List XML_SEE_ALSO_EDEFAULT = null; + /** + * The cached value of the '{@link #getXmlSeeAlso() Xml See Also}' attribute. + * + * + * @see #getXmlSeeAlso() + * @generated + * @ordered + */ + protected List xmlSeeAlso = XML_SEE_ALSO_EDEFAULT; + /** + * The cached value of the '{@link #getXmlJavaTypeAdapter() Xml Java Type Adapter}' containment reference. + * + * + * @see #getXmlJavaTypeAdapter() + * @generated + * @ordered + */ + protected EXmlJavaTypeAdapter xmlJavaTypeAdapter; + /** + * The cached value of the '{@link #getXmlClassExtractor() Xml Class Extractor}' containment reference. + * + * + * @see #getXmlClassExtractor() + * @generated + * @ordered + */ + protected EXmlClassExtractor xmlClassExtractor; + /** + * The cached value of the '{@link #getJavaAttributes() Java Attributes}' containment reference list. + * + * + * @see #getJavaAttributes() + * @generated + * @ordered + */ + protected EList javaAttributes; + + /** + * + * + * @generated + */ + protected EJavaType() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return OxmPackage.Literals.EJAVA_TYPE; + } + + /** + * Returns the value of the 'Xml Properties' containment reference list. + * The list contents are of type {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlProperty}. + * + *

+ * If the meaning of the 'Xml Properties' containment reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Properties' containment reference list. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEPropertyHolder_XmlProperties() + * @model containment="true" + * @generated + */ + public EList getXmlProperties() + { + if (xmlProperties == null) + { + xmlProperties = new EObjectContainmentEList(EXmlProperty.class, this, OxmPackage.EJAVA_TYPE__XML_PROPERTIES); + } + return xmlProperties; + } + + /** + * Returns the value of the 'Name' attribute. + * + *

+ * If the meaning of the 'Name' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Name' attribute. + * @see #setName(String) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEJavaType_Name() + * @model + * @generated + */ + public String getName() + { + return name; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EJavaType#getName Name}' attribute. + * + * + * @param value the new value of the 'Name' attribute. + * @see #getName() + * @generated + */ + public void setName(String newName) + { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EJAVA_TYPE__NAME, oldName, name)); + } + + /** + * Returns the value of the 'Super Type' attribute. + * + *

+ * If the meaning of the 'Super Type' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Super Type' attribute. + * @see #setSuperType(String) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEJavaType_SuperType() + * @model + * @generated + */ + public String getSuperType() + { + return superType; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EJavaType#getSuperType Super Type}' attribute. + * + * + * @param value the new value of the 'Super Type' attribute. + * @see #getSuperType() + * @generated + */ + public void setSuperType(String newSuperType) + { + String oldSuperType = superType; + superType = newSuperType; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EJAVA_TYPE__SUPER_TYPE, oldSuperType, superType)); + } + + /** + * Returns the value of the 'Xml Accessor Order' attribute. + * The literals are from the enumeration {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAccessOrder}. + * + *

+ * If the meaning of the 'Xml Accessor Order' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Accessor Order' attribute. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAccessOrder + * @see #setXmlAccessorOrder(EXmlAccessOrder) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEJavaType_XmlAccessorOrder() + * @model + * @generated + */ + public EXmlAccessOrder getXmlAccessorOrder() + { + return xmlAccessorOrder; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EJavaType#getXmlAccessorOrder Xml Accessor Order}' attribute. + * + * + * @param value the new value of the 'Xml Accessor Order' attribute. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAccessOrder + * @see #getXmlAccessorOrder() + * @generated + */ + public void setXmlAccessorOrder(EXmlAccessOrder newXmlAccessorOrder) + { + EXmlAccessOrder oldXmlAccessorOrder = xmlAccessorOrder; + xmlAccessorOrder = newXmlAccessorOrder == null ? XML_ACCESSOR_ORDER_EDEFAULT : newXmlAccessorOrder; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EJAVA_TYPE__XML_ACCESSOR_ORDER, oldXmlAccessorOrder, xmlAccessorOrder)); + } + + /** + * Returns the value of the 'Xml Accessor Type' attribute. + * The literals are from the enumeration {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAccessType}. + * + *

+ * If the meaning of the 'Xml Accessor Type' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Accessor Type' attribute. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAccessType + * @see #setXmlAccessorType(EXmlAccessType) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEJavaType_XmlAccessorType() + * @model + * @generated + */ + public EXmlAccessType getXmlAccessorType() + { + return xmlAccessorType; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EJavaType#getXmlAccessorType Xml Accessor Type}' attribute. + * + * + * @param value the new value of the 'Xml Accessor Type' attribute. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAccessType + * @see #getXmlAccessorType() + * @generated + */ + public void setXmlAccessorType(EXmlAccessType newXmlAccessorType) + { + EXmlAccessType oldXmlAccessorType = xmlAccessorType; + xmlAccessorType = newXmlAccessorType == null ? XML_ACCESSOR_TYPE_EDEFAULT : newXmlAccessorType; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EJAVA_TYPE__XML_ACCESSOR_TYPE, oldXmlAccessorType, xmlAccessorType)); + } + + /** + * Returns the value of the 'Xml Customizer' attribute. + * + *

+ * If the meaning of the 'Xml Customizer' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Customizer' attribute. + * @see #setXmlCustomizer(String) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEJavaType_XmlCustomizer() + * @model + * @generated + */ + public String getXmlCustomizer() + { + return xmlCustomizer; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EJavaType#getXmlCustomizer Xml Customizer}' attribute. + * + * + * @param value the new value of the 'Xml Customizer' attribute. + * @see #getXmlCustomizer() + * @generated + */ + public void setXmlCustomizer(String newXmlCustomizer) + { + String oldXmlCustomizer = xmlCustomizer; + xmlCustomizer = newXmlCustomizer; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EJAVA_TYPE__XML_CUSTOMIZER, oldXmlCustomizer, xmlCustomizer)); + } + + /** + * Returns the value of the 'Xml Discriminator Node' attribute. + * + *

+ * If the meaning of the 'Xml Discriminator Node' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Discriminator Node' attribute. + * @see #setXmlDiscriminatorNode(String) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEJavaType_XmlDiscriminatorNode() + * @model + * @generated + */ + public String getXmlDiscriminatorNode() + { + return xmlDiscriminatorNode; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EJavaType#getXmlDiscriminatorNode Xml Discriminator Node}' attribute. + * + * + * @param value the new value of the 'Xml Discriminator Node' attribute. + * @see #getXmlDiscriminatorNode() + * @generated + */ + public void setXmlDiscriminatorNode(String newXmlDiscriminatorNode) + { + String oldXmlDiscriminatorNode = xmlDiscriminatorNode; + xmlDiscriminatorNode = newXmlDiscriminatorNode; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EJAVA_TYPE__XML_DISCRIMINATOR_NODE, oldXmlDiscriminatorNode, xmlDiscriminatorNode)); + } + + /** + * Returns the value of the 'Xml Discriminator Value' attribute. + * + *

+ * If the meaning of the 'Xml Discriminator Value' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Discriminator Value' attribute. + * @see #setXmlDiscriminatorValue(String) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEJavaType_XmlDiscriminatorValue() + * @model + * @generated + */ + public String getXmlDiscriminatorValue() + { + return xmlDiscriminatorValue; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EJavaType#getXmlDiscriminatorValue Xml Discriminator Value}' attribute. + * + * + * @param value the new value of the 'Xml Discriminator Value' attribute. + * @see #getXmlDiscriminatorValue() + * @generated + */ + public void setXmlDiscriminatorValue(String newXmlDiscriminatorValue) + { + String oldXmlDiscriminatorValue = xmlDiscriminatorValue; + xmlDiscriminatorValue = newXmlDiscriminatorValue; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EJAVA_TYPE__XML_DISCRIMINATOR_VALUE, oldXmlDiscriminatorValue, xmlDiscriminatorValue)); + } + + /** + * Returns the value of the 'Xml Inline Binary Data' attribute. + * + *

+ * If the meaning of the 'Xml Inline Binary Data' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Inline Binary Data' attribute. + * @see #setXmlInlineBinaryData(boolean) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEJavaType_XmlInlineBinaryData() + * @model + * @generated + */ + public boolean isXmlInlineBinaryData() + { + return xmlInlineBinaryData; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EJavaType#isXmlInlineBinaryData Xml Inline Binary Data}' attribute. + * + * + * @param value the new value of the 'Xml Inline Binary Data' attribute. + * @see #isXmlInlineBinaryData() + * @generated + */ + public void setXmlInlineBinaryData(boolean newXmlInlineBinaryData) + { + boolean oldXmlInlineBinaryData = xmlInlineBinaryData; + xmlInlineBinaryData = newXmlInlineBinaryData; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EJAVA_TYPE__XML_INLINE_BINARY_DATA, oldXmlInlineBinaryData, xmlInlineBinaryData)); + } + + /** + * Returns the value of the 'Xml Transient' attribute. + * + *

+ * If the meaning of the 'Xml Transient' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Transient' attribute. + * @see #setXmlTransient(boolean) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEJavaType_XmlTransient() + * @model + * @generated + */ + public boolean isXmlTransient() + { + return xmlTransient; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EJavaType#isXmlTransient Xml Transient}' attribute. + * + * + * @param value the new value of the 'Xml Transient' attribute. + * @see #isXmlTransient() + * @generated + */ + public void setXmlTransient(boolean newXmlTransient) + { + boolean oldXmlTransient = xmlTransient; + xmlTransient = newXmlTransient; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EJAVA_TYPE__XML_TRANSIENT, oldXmlTransient, xmlTransient)); + } + + /** + * Returns the value of the 'Xml Name Transformer' attribute. + * + *

+ * If the meaning of the 'Xml Name Transformer' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Name Transformer' attribute. + * @see #setXmlNameTransformer(String) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEJavaType_XmlNameTransformer() + * @model + * @generated + */ + public String getXmlNameTransformer() + { + return xmlNameTransformer; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EJavaType#getXmlNameTransformer Xml Name Transformer}' attribute. + * + * + * @param value the new value of the 'Xml Name Transformer' attribute. + * @see #getXmlNameTransformer() + * @generated + */ + public void setXmlNameTransformer(String newXmlNameTransformer) + { + String oldXmlNameTransformer = xmlNameTransformer; + xmlNameTransformer = newXmlNameTransformer; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EJAVA_TYPE__XML_NAME_TRANSFORMER, oldXmlNameTransformer, xmlNameTransformer)); + } + + /** + * Returns the value of the 'Xml Type' containment reference. + * + *

+ * If the meaning of the 'Xml Type' containment reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Type' containment reference. + * @see #setXmlType(EXmlType) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEJavaType_XmlType() + * @model containment="true" + * @generated + */ + public EXmlType getXmlType() + { + return xmlType; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetXmlType(EXmlType newXmlType, NotificationChain msgs) + { + EXmlType oldXmlType = xmlType; + xmlType = newXmlType; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OxmPackage.EJAVA_TYPE__XML_TYPE, oldXmlType, newXmlType); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EJavaType#getXmlType Xml Type}' containment reference. + * + * + * @param value the new value of the 'Xml Type' containment reference. + * @see #getXmlType() + * @generated + */ + public void setXmlType(EXmlType newXmlType) + { + if (newXmlType != xmlType) + { + NotificationChain msgs = null; + if (xmlType != null) + msgs = ((InternalEObject)xmlType).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OxmPackage.EJAVA_TYPE__XML_TYPE, null, msgs); + if (newXmlType != null) + msgs = ((InternalEObject)newXmlType).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OxmPackage.EJAVA_TYPE__XML_TYPE, null, msgs); + msgs = basicSetXmlType(newXmlType, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EJAVA_TYPE__XML_TYPE, newXmlType, newXmlType)); + } + + /** + * Returns the value of the 'Xml Root Element' containment reference. + * + *

+ * If the meaning of the 'Xml Root Element' containment reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Root Element' containment reference. + * @see #setXmlRootElement(EXmlRootElement) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEJavaType_XmlRootElement() + * @model containment="true" + * @generated + */ + public EXmlRootElement getXmlRootElement() + { + return xmlRootElement; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetXmlRootElement(EXmlRootElement newXmlRootElement, NotificationChain msgs) + { + EXmlRootElement oldXmlRootElement = xmlRootElement; + xmlRootElement = newXmlRootElement; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OxmPackage.EJAVA_TYPE__XML_ROOT_ELEMENT, oldXmlRootElement, newXmlRootElement); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EJavaType#getXmlRootElement Xml Root Element}' containment reference. + * + * + * @param value the new value of the 'Xml Root Element' containment reference. + * @see #getXmlRootElement() + * @generated + */ + public void setXmlRootElement(EXmlRootElement newXmlRootElement) + { + if (newXmlRootElement != xmlRootElement) + { + NotificationChain msgs = null; + if (xmlRootElement != null) + msgs = ((InternalEObject)xmlRootElement).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OxmPackage.EJAVA_TYPE__XML_ROOT_ELEMENT, null, msgs); + if (newXmlRootElement != null) + msgs = ((InternalEObject)newXmlRootElement).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OxmPackage.EJAVA_TYPE__XML_ROOT_ELEMENT, null, msgs); + msgs = basicSetXmlRootElement(newXmlRootElement, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EJAVA_TYPE__XML_ROOT_ELEMENT, newXmlRootElement, newXmlRootElement)); + } + + /** + * Returns the value of the 'Xml Virtual Access Methods' containment reference. + * + *

+ * If the meaning of the 'Xml Virtual Access Methods' containment reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Virtual Access Methods' containment reference. + * @see #setXmlVirtualAccessMethods(EXmlVirtualAccessMethods) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEJavaType_XmlVirtualAccessMethods() + * @model containment="true" + * @generated + */ + public EXmlVirtualAccessMethods getXmlVirtualAccessMethods() + { + return xmlVirtualAccessMethods; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetXmlVirtualAccessMethods(EXmlVirtualAccessMethods newXmlVirtualAccessMethods, NotificationChain msgs) + { + EXmlVirtualAccessMethods oldXmlVirtualAccessMethods = xmlVirtualAccessMethods; + xmlVirtualAccessMethods = newXmlVirtualAccessMethods; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OxmPackage.EJAVA_TYPE__XML_VIRTUAL_ACCESS_METHODS, oldXmlVirtualAccessMethods, newXmlVirtualAccessMethods); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EJavaType#getXmlVirtualAccessMethods Xml Virtual Access Methods}' containment reference. + * + * + * @param value the new value of the 'Xml Virtual Access Methods' containment reference. + * @see #getXmlVirtualAccessMethods() + * @generated + */ + public void setXmlVirtualAccessMethods(EXmlVirtualAccessMethods newXmlVirtualAccessMethods) + { + if (newXmlVirtualAccessMethods != xmlVirtualAccessMethods) + { + NotificationChain msgs = null; + if (xmlVirtualAccessMethods != null) + msgs = ((InternalEObject)xmlVirtualAccessMethods).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OxmPackage.EJAVA_TYPE__XML_VIRTUAL_ACCESS_METHODS, null, msgs); + if (newXmlVirtualAccessMethods != null) + msgs = ((InternalEObject)newXmlVirtualAccessMethods).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OxmPackage.EJAVA_TYPE__XML_VIRTUAL_ACCESS_METHODS, null, msgs); + msgs = basicSetXmlVirtualAccessMethods(newXmlVirtualAccessMethods, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EJAVA_TYPE__XML_VIRTUAL_ACCESS_METHODS, newXmlVirtualAccessMethods, newXmlVirtualAccessMethods)); + } + + /** + * Returns the value of the 'Xml See Also' attribute. + * + *

+ * If the meaning of the 'Xml See Also' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml See Also' attribute. + * @see #setXmlSeeAlso(List) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEJavaType_XmlSeeAlso() + * @model dataType="org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlSeeAlso" many="false" + * @generated + */ + public List getXmlSeeAlso() + { + return xmlSeeAlso; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EJavaType#getXmlSeeAlso Xml See Also}' attribute. + * + * + * @param value the new value of the 'Xml See Also' attribute. + * @see #getXmlSeeAlso() + * @generated + */ + public void setXmlSeeAlso(List newXmlSeeAlso) + { + List oldXmlSeeAlso = xmlSeeAlso; + xmlSeeAlso = newXmlSeeAlso; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EJAVA_TYPE__XML_SEE_ALSO, oldXmlSeeAlso, xmlSeeAlso)); + } + + /** + * Returns the value of the 'Xml Java Type Adapter' containment reference. + * + *

+ * If the meaning of the 'Xml Java Type Adapter' containment reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Java Type Adapter' containment reference. + * @see #setXmlJavaTypeAdapter(EXmlJavaTypeAdapter) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEJavaType_XmlJavaTypeAdapter() + * @model containment="true" + * @generated + */ + public EXmlJavaTypeAdapter getXmlJavaTypeAdapter() + { + return xmlJavaTypeAdapter; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetXmlJavaTypeAdapter(EXmlJavaTypeAdapter newXmlJavaTypeAdapter, NotificationChain msgs) + { + EXmlJavaTypeAdapter oldXmlJavaTypeAdapter = xmlJavaTypeAdapter; + xmlJavaTypeAdapter = newXmlJavaTypeAdapter; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OxmPackage.EJAVA_TYPE__XML_JAVA_TYPE_ADAPTER, oldXmlJavaTypeAdapter, newXmlJavaTypeAdapter); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EJavaType#getXmlJavaTypeAdapter Xml Java Type Adapter}' containment reference. + * + * + * @param value the new value of the 'Xml Java Type Adapter' containment reference. + * @see #getXmlJavaTypeAdapter() + * @generated + */ + public void setXmlJavaTypeAdapter(EXmlJavaTypeAdapter newXmlJavaTypeAdapter) + { + if (newXmlJavaTypeAdapter != xmlJavaTypeAdapter) + { + NotificationChain msgs = null; + if (xmlJavaTypeAdapter != null) + msgs = ((InternalEObject)xmlJavaTypeAdapter).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OxmPackage.EJAVA_TYPE__XML_JAVA_TYPE_ADAPTER, null, msgs); + if (newXmlJavaTypeAdapter != null) + msgs = ((InternalEObject)newXmlJavaTypeAdapter).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OxmPackage.EJAVA_TYPE__XML_JAVA_TYPE_ADAPTER, null, msgs); + msgs = basicSetXmlJavaTypeAdapter(newXmlJavaTypeAdapter, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EJAVA_TYPE__XML_JAVA_TYPE_ADAPTER, newXmlJavaTypeAdapter, newXmlJavaTypeAdapter)); + } + + /** + * Returns the value of the 'Xml Class Extractor' containment reference. + * + *

+ * If the meaning of the 'Xml Class Extractor' containment reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Class Extractor' containment reference. + * @see #setXmlClassExtractor(EXmlClassExtractor) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEJavaType_XmlClassExtractor() + * @model containment="true" + * @generated + */ + public EXmlClassExtractor getXmlClassExtractor() + { + return xmlClassExtractor; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetXmlClassExtractor(EXmlClassExtractor newXmlClassExtractor, NotificationChain msgs) + { + EXmlClassExtractor oldXmlClassExtractor = xmlClassExtractor; + xmlClassExtractor = newXmlClassExtractor; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OxmPackage.EJAVA_TYPE__XML_CLASS_EXTRACTOR, oldXmlClassExtractor, newXmlClassExtractor); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EJavaType#getXmlClassExtractor Xml Class Extractor}' containment reference. + * + * + * @param value the new value of the 'Xml Class Extractor' containment reference. + * @see #getXmlClassExtractor() + * @generated + */ + public void setXmlClassExtractor(EXmlClassExtractor newXmlClassExtractor) + { + if (newXmlClassExtractor != xmlClassExtractor) + { + NotificationChain msgs = null; + if (xmlClassExtractor != null) + msgs = ((InternalEObject)xmlClassExtractor).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OxmPackage.EJAVA_TYPE__XML_CLASS_EXTRACTOR, null, msgs); + if (newXmlClassExtractor != null) + msgs = ((InternalEObject)newXmlClassExtractor).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OxmPackage.EJAVA_TYPE__XML_CLASS_EXTRACTOR, null, msgs); + msgs = basicSetXmlClassExtractor(newXmlClassExtractor, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EJAVA_TYPE__XML_CLASS_EXTRACTOR, newXmlClassExtractor, newXmlClassExtractor)); + } + + /** + * Returns the value of the 'Java Attributes' containment reference list. + * The list contents are of type {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EJavaAttribute}. + * + *

+ * If the meaning of the 'Java Attributes' containment reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Java Attributes' containment reference list. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEJavaType_JavaAttributes() + * @model containment="true" + * @generated + */ + public EList getJavaAttributes() + { + if (javaAttributes == null) + { + javaAttributes = new EObjectContainmentEList(EJavaAttribute.class, this, OxmPackage.EJAVA_TYPE__JAVA_ATTRIBUTES); + } + return javaAttributes; + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case OxmPackage.EJAVA_TYPE__XML_PROPERTIES: + return ((InternalEList)getXmlProperties()).basicRemove(otherEnd, msgs); + case OxmPackage.EJAVA_TYPE__XML_TYPE: + return basicSetXmlType(null, msgs); + case OxmPackage.EJAVA_TYPE__XML_ROOT_ELEMENT: + return basicSetXmlRootElement(null, msgs); + case OxmPackage.EJAVA_TYPE__XML_VIRTUAL_ACCESS_METHODS: + return basicSetXmlVirtualAccessMethods(null, msgs); + case OxmPackage.EJAVA_TYPE__XML_JAVA_TYPE_ADAPTER: + return basicSetXmlJavaTypeAdapter(null, msgs); + case OxmPackage.EJAVA_TYPE__XML_CLASS_EXTRACTOR: + return basicSetXmlClassExtractor(null, msgs); + case OxmPackage.EJAVA_TYPE__JAVA_ATTRIBUTES: + return ((InternalEList)getJavaAttributes()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case OxmPackage.EJAVA_TYPE__XML_PROPERTIES: + return getXmlProperties(); + case OxmPackage.EJAVA_TYPE__NAME: + return getName(); + case OxmPackage.EJAVA_TYPE__SUPER_TYPE: + return getSuperType(); + case OxmPackage.EJAVA_TYPE__XML_ACCESSOR_ORDER: + return getXmlAccessorOrder(); + case OxmPackage.EJAVA_TYPE__XML_ACCESSOR_TYPE: + return getXmlAccessorType(); + case OxmPackage.EJAVA_TYPE__XML_CUSTOMIZER: + return getXmlCustomizer(); + case OxmPackage.EJAVA_TYPE__XML_DISCRIMINATOR_NODE: + return getXmlDiscriminatorNode(); + case OxmPackage.EJAVA_TYPE__XML_DISCRIMINATOR_VALUE: + return getXmlDiscriminatorValue(); + case OxmPackage.EJAVA_TYPE__XML_INLINE_BINARY_DATA: + return isXmlInlineBinaryData(); + case OxmPackage.EJAVA_TYPE__XML_TRANSIENT: + return isXmlTransient(); + case OxmPackage.EJAVA_TYPE__XML_NAME_TRANSFORMER: + return getXmlNameTransformer(); + case OxmPackage.EJAVA_TYPE__XML_TYPE: + return getXmlType(); + case OxmPackage.EJAVA_TYPE__XML_ROOT_ELEMENT: + return getXmlRootElement(); + case OxmPackage.EJAVA_TYPE__XML_VIRTUAL_ACCESS_METHODS: + return getXmlVirtualAccessMethods(); + case OxmPackage.EJAVA_TYPE__XML_SEE_ALSO: + return getXmlSeeAlso(); + case OxmPackage.EJAVA_TYPE__XML_JAVA_TYPE_ADAPTER: + return getXmlJavaTypeAdapter(); + case OxmPackage.EJAVA_TYPE__XML_CLASS_EXTRACTOR: + return getXmlClassExtractor(); + case OxmPackage.EJAVA_TYPE__JAVA_ATTRIBUTES: + return getJavaAttributes(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case OxmPackage.EJAVA_TYPE__XML_PROPERTIES: + getXmlProperties().clear(); + getXmlProperties().addAll((Collection)newValue); + return; + case OxmPackage.EJAVA_TYPE__NAME: + setName((String)newValue); + return; + case OxmPackage.EJAVA_TYPE__SUPER_TYPE: + setSuperType((String)newValue); + return; + case OxmPackage.EJAVA_TYPE__XML_ACCESSOR_ORDER: + setXmlAccessorOrder((EXmlAccessOrder)newValue); + return; + case OxmPackage.EJAVA_TYPE__XML_ACCESSOR_TYPE: + setXmlAccessorType((EXmlAccessType)newValue); + return; + case OxmPackage.EJAVA_TYPE__XML_CUSTOMIZER: + setXmlCustomizer((String)newValue); + return; + case OxmPackage.EJAVA_TYPE__XML_DISCRIMINATOR_NODE: + setXmlDiscriminatorNode((String)newValue); + return; + case OxmPackage.EJAVA_TYPE__XML_DISCRIMINATOR_VALUE: + setXmlDiscriminatorValue((String)newValue); + return; + case OxmPackage.EJAVA_TYPE__XML_INLINE_BINARY_DATA: + setXmlInlineBinaryData((Boolean)newValue); + return; + case OxmPackage.EJAVA_TYPE__XML_TRANSIENT: + setXmlTransient((Boolean)newValue); + return; + case OxmPackage.EJAVA_TYPE__XML_NAME_TRANSFORMER: + setXmlNameTransformer((String)newValue); + return; + case OxmPackage.EJAVA_TYPE__XML_TYPE: + setXmlType((EXmlType)newValue); + return; + case OxmPackage.EJAVA_TYPE__XML_ROOT_ELEMENT: + setXmlRootElement((EXmlRootElement)newValue); + return; + case OxmPackage.EJAVA_TYPE__XML_VIRTUAL_ACCESS_METHODS: + setXmlVirtualAccessMethods((EXmlVirtualAccessMethods)newValue); + return; + case OxmPackage.EJAVA_TYPE__XML_SEE_ALSO: + setXmlSeeAlso((List)newValue); + return; + case OxmPackage.EJAVA_TYPE__XML_JAVA_TYPE_ADAPTER: + setXmlJavaTypeAdapter((EXmlJavaTypeAdapter)newValue); + return; + case OxmPackage.EJAVA_TYPE__XML_CLASS_EXTRACTOR: + setXmlClassExtractor((EXmlClassExtractor)newValue); + return; + case OxmPackage.EJAVA_TYPE__JAVA_ATTRIBUTES: + getJavaAttributes().clear(); + getJavaAttributes().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case OxmPackage.EJAVA_TYPE__XML_PROPERTIES: + getXmlProperties().clear(); + return; + case OxmPackage.EJAVA_TYPE__NAME: + setName(NAME_EDEFAULT); + return; + case OxmPackage.EJAVA_TYPE__SUPER_TYPE: + setSuperType(SUPER_TYPE_EDEFAULT); + return; + case OxmPackage.EJAVA_TYPE__XML_ACCESSOR_ORDER: + setXmlAccessorOrder(XML_ACCESSOR_ORDER_EDEFAULT); + return; + case OxmPackage.EJAVA_TYPE__XML_ACCESSOR_TYPE: + setXmlAccessorType(XML_ACCESSOR_TYPE_EDEFAULT); + return; + case OxmPackage.EJAVA_TYPE__XML_CUSTOMIZER: + setXmlCustomizer(XML_CUSTOMIZER_EDEFAULT); + return; + case OxmPackage.EJAVA_TYPE__XML_DISCRIMINATOR_NODE: + setXmlDiscriminatorNode(XML_DISCRIMINATOR_NODE_EDEFAULT); + return; + case OxmPackage.EJAVA_TYPE__XML_DISCRIMINATOR_VALUE: + setXmlDiscriminatorValue(XML_DISCRIMINATOR_VALUE_EDEFAULT); + return; + case OxmPackage.EJAVA_TYPE__XML_INLINE_BINARY_DATA: + setXmlInlineBinaryData(XML_INLINE_BINARY_DATA_EDEFAULT); + return; + case OxmPackage.EJAVA_TYPE__XML_TRANSIENT: + setXmlTransient(XML_TRANSIENT_EDEFAULT); + return; + case OxmPackage.EJAVA_TYPE__XML_NAME_TRANSFORMER: + setXmlNameTransformer(XML_NAME_TRANSFORMER_EDEFAULT); + return; + case OxmPackage.EJAVA_TYPE__XML_TYPE: + setXmlType((EXmlType)null); + return; + case OxmPackage.EJAVA_TYPE__XML_ROOT_ELEMENT: + setXmlRootElement((EXmlRootElement)null); + return; + case OxmPackage.EJAVA_TYPE__XML_VIRTUAL_ACCESS_METHODS: + setXmlVirtualAccessMethods((EXmlVirtualAccessMethods)null); + return; + case OxmPackage.EJAVA_TYPE__XML_SEE_ALSO: + setXmlSeeAlso(XML_SEE_ALSO_EDEFAULT); + return; + case OxmPackage.EJAVA_TYPE__XML_JAVA_TYPE_ADAPTER: + setXmlJavaTypeAdapter((EXmlJavaTypeAdapter)null); + return; + case OxmPackage.EJAVA_TYPE__XML_CLASS_EXTRACTOR: + setXmlClassExtractor((EXmlClassExtractor)null); + return; + case OxmPackage.EJAVA_TYPE__JAVA_ATTRIBUTES: + getJavaAttributes().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case OxmPackage.EJAVA_TYPE__XML_PROPERTIES: + return xmlProperties != null && !xmlProperties.isEmpty(); + case OxmPackage.EJAVA_TYPE__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case OxmPackage.EJAVA_TYPE__SUPER_TYPE: + return SUPER_TYPE_EDEFAULT == null ? superType != null : !SUPER_TYPE_EDEFAULT.equals(superType); + case OxmPackage.EJAVA_TYPE__XML_ACCESSOR_ORDER: + return xmlAccessorOrder != XML_ACCESSOR_ORDER_EDEFAULT; + case OxmPackage.EJAVA_TYPE__XML_ACCESSOR_TYPE: + return xmlAccessorType != XML_ACCESSOR_TYPE_EDEFAULT; + case OxmPackage.EJAVA_TYPE__XML_CUSTOMIZER: + return XML_CUSTOMIZER_EDEFAULT == null ? xmlCustomizer != null : !XML_CUSTOMIZER_EDEFAULT.equals(xmlCustomizer); + case OxmPackage.EJAVA_TYPE__XML_DISCRIMINATOR_NODE: + return XML_DISCRIMINATOR_NODE_EDEFAULT == null ? xmlDiscriminatorNode != null : !XML_DISCRIMINATOR_NODE_EDEFAULT.equals(xmlDiscriminatorNode); + case OxmPackage.EJAVA_TYPE__XML_DISCRIMINATOR_VALUE: + return XML_DISCRIMINATOR_VALUE_EDEFAULT == null ? xmlDiscriminatorValue != null : !XML_DISCRIMINATOR_VALUE_EDEFAULT.equals(xmlDiscriminatorValue); + case OxmPackage.EJAVA_TYPE__XML_INLINE_BINARY_DATA: + return xmlInlineBinaryData != XML_INLINE_BINARY_DATA_EDEFAULT; + case OxmPackage.EJAVA_TYPE__XML_TRANSIENT: + return xmlTransient != XML_TRANSIENT_EDEFAULT; + case OxmPackage.EJAVA_TYPE__XML_NAME_TRANSFORMER: + return XML_NAME_TRANSFORMER_EDEFAULT == null ? xmlNameTransformer != null : !XML_NAME_TRANSFORMER_EDEFAULT.equals(xmlNameTransformer); + case OxmPackage.EJAVA_TYPE__XML_TYPE: + return xmlType != null; + case OxmPackage.EJAVA_TYPE__XML_ROOT_ELEMENT: + return xmlRootElement != null; + case OxmPackage.EJAVA_TYPE__XML_VIRTUAL_ACCESS_METHODS: + return xmlVirtualAccessMethods != null; + case OxmPackage.EJAVA_TYPE__XML_SEE_ALSO: + return XML_SEE_ALSO_EDEFAULT == null ? xmlSeeAlso != null : !XML_SEE_ALSO_EDEFAULT.equals(xmlSeeAlso); + case OxmPackage.EJAVA_TYPE__XML_JAVA_TYPE_ADAPTER: + return xmlJavaTypeAdapter != null; + case OxmPackage.EJAVA_TYPE__XML_CLASS_EXTRACTOR: + return xmlClassExtractor != null; + case OxmPackage.EJAVA_TYPE__JAVA_ATTRIBUTES: + return javaAttributes != null && !javaAttributes.isEmpty(); + } + return super.eIsSet(featureID); + } + + + /** + * + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (name: "); + result.append(name); + result.append(", superType: "); + result.append(superType); + result.append(", xmlAccessorOrder: "); + result.append(xmlAccessorOrder); + result.append(", xmlAccessorType: "); + result.append(xmlAccessorType); + result.append(", xmlCustomizer: "); + result.append(xmlCustomizer); + result.append(", xmlDiscriminatorNode: "); + result.append(xmlDiscriminatorNode); + result.append(", xmlDiscriminatorValue: "); + result.append(xmlDiscriminatorValue); + result.append(", xmlInlineBinaryData: "); + result.append(xmlInlineBinaryData); + result.append(", xmlTransient: "); + result.append(xmlTransient); + result.append(", xmlNameTransformer: "); + result.append(xmlNameTransformer); + result.append(", xmlSeeAlso: "); + result.append(xmlSeeAlso); + result.append(')'); + return result.toString(); + } + + // ***** translators ***** + + public static Translator buildTranslator() { + return new SimpleTranslator(EclipseLink.JAVA_TYPES + "/" + EclipseLink.JAVA_TYPE, OxmPackage.eINSTANCE.getEXmlBindings_JavaTypes(), buildTranslatorChildren()); + } + + private static Translator[] buildTranslatorChildren() { + return new Translator[] { + new EJavaAttribute.JavaAttributesTranslator() + }; + } +} \ No newline at end of file diff --git a/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EPropertyHolder.java b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EPropertyHolder.java new file mode 100644 index 0000000000..9e34cbb797 --- /dev/null +++ b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EPropertyHolder.java @@ -0,0 +1,44 @@ +/** + */ +package org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm; + +import org.eclipse.emf.common.util.EList; + +import org.eclipse.jpt.common.core.resource.xml.EBaseObject; + +/** + * + * A representation of the model object 'EProperty Holder'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EPropertyHolder#getXmlProperties Xml Properties}
  • + *
+ *

+ * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEPropertyHolder() + * @model kind="class" interface="true" abstract="true" + * @extends EBaseObject + * @generated + */ +public interface EPropertyHolder extends EBaseObject +{ + /** + * Returns the value of the 'Xml Properties' containment reference list. + * The list contents are of type {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlProperty}. + * + *

+ * If the meaning of the 'Xml Properties' containment reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Properties' containment reference list. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEPropertyHolder_XmlProperties() + * @model containment="true" + * @generated + */ + EList getXmlProperties(); + +} // EPropertyHolder diff --git a/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EReadWriteJavaAttribute.java b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EReadWriteJavaAttribute.java new file mode 100644 index 0000000000..abf7719784 --- /dev/null +++ b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EReadWriteJavaAttribute.java @@ -0,0 +1,79 @@ +/** + */ +package org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm; + +import org.eclipse.jpt.common.core.resource.xml.EBaseObject; + +/** + * + * A representation of the model object 'ERead Write Java Attribute'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EReadWriteJavaAttribute#isReadOnly Read Only}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EReadWriteJavaAttribute#isWriteOnly Write Only}
  • + *
+ *

+ * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEReadWriteJavaAttribute() + * @model kind="class" interface="true" abstract="true" + * @extends EBaseObject + * @generated + */ +public interface EReadWriteJavaAttribute extends EBaseObject +{ + /** + * Returns the value of the 'Read Only' attribute. + * + *

+ * If the meaning of the 'Read Only' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Read Only' attribute. + * @see #setReadOnly(boolean) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEReadWriteJavaAttribute_ReadOnly() + * @model + * @generated + */ + boolean isReadOnly(); + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EReadWriteJavaAttribute#isReadOnly Read Only}' attribute. + * + * + * @param value the new value of the 'Read Only' attribute. + * @see #isReadOnly() + * @generated + */ + void setReadOnly(boolean value); + + /** + * Returns the value of the 'Write Only' attribute. + * + *

+ * If the meaning of the 'Write Only' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Write Only' attribute. + * @see #setWriteOnly(boolean) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEReadWriteJavaAttribute_WriteOnly() + * @model + * @generated + */ + boolean isWriteOnly(); + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EReadWriteJavaAttribute#isWriteOnly Write Only}' attribute. + * + * + * @param value the new value of the 'Write Only' attribute. + * @see #isWriteOnly() + * @generated + */ + void setWriteOnly(boolean value); + +} // EReadWriteJavaAttribute diff --git a/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/ETypedJavaAttribute.java b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/ETypedJavaAttribute.java new file mode 100644 index 0000000000..f407bf4dbe --- /dev/null +++ b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/ETypedJavaAttribute.java @@ -0,0 +1,52 @@ +/** + */ +package org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm; + +import org.eclipse.jpt.common.core.resource.xml.EBaseObject; + +/** + * + * A representation of the model object 'ETyped Java Attribute'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.ETypedJavaAttribute#getType Type}
  • + *
+ *

+ * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getETypedJavaAttribute() + * @model kind="class" interface="true" abstract="true" + * @extends EBaseObject + * @generated + */ +public interface ETypedJavaAttribute extends EBaseObject +{ + /** + * Returns the value of the 'Type' attribute. + * + *

+ * If the meaning of the 'Type' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Type' attribute. + * @see #setType(String) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getETypedJavaAttribute_Type() + * @model + * @generated + */ + String getType(); + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.ETypedJavaAttribute#getType Type}' attribute. + * + * + * @param value the new value of the 'Type' attribute. + * @see #getType() + * @generated + */ + void setType(String value); + +} // ETypedJavaAttribute diff --git a/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlAccessMethods.java b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlAccessMethods.java new file mode 100644 index 0000000000..72d70ecde6 --- /dev/null +++ b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlAccessMethods.java @@ -0,0 +1,260 @@ +/** + */ +package org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.jpt.common.core.resource.xml.EBaseObject; +import org.eclipse.jpt.common.core.resource.xml.EBaseObjectImpl; + +/** + * + * A representation of the model object 'EXml Access Methods'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAccessMethods#getGetMethod Get Method}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAccessMethods#getSetMethod Set Method}
  • + *
+ *

+ * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlAccessMethods() + * @model kind="class" + * @extends EBaseObject + * @generated + */ +public class EXmlAccessMethods extends EBaseObjectImpl implements EBaseObject +{ + /** + * The default value of the '{@link #getGetMethod() Get Method}' attribute. + * + * + * @see #getGetMethod() + * @generated + * @ordered + */ + protected static final String GET_METHOD_EDEFAULT = null; + + /** + * The cached value of the '{@link #getGetMethod() Get Method}' attribute. + * + * + * @see #getGetMethod() + * @generated + * @ordered + */ + protected String getMethod = GET_METHOD_EDEFAULT; + + /** + * The default value of the '{@link #getSetMethod() Set Method}' attribute. + * + * + * @see #getSetMethod() + * @generated + * @ordered + */ + protected static final String SET_METHOD_EDEFAULT = null; + + /** + * The cached value of the '{@link #getSetMethod() Set Method}' attribute. + * + * + * @see #getSetMethod() + * @generated + * @ordered + */ + protected String setMethod = SET_METHOD_EDEFAULT; + + /** + * + * + * @generated + */ + protected EXmlAccessMethods() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return OxmPackage.Literals.EXML_ACCESS_METHODS; + } + + /** + * Returns the value of the 'Get Method' attribute. + * + *

+ * If the meaning of the 'Get Method' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Get Method' attribute. + * @see #setGetMethod(String) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlAccessMethods_GetMethod() + * @model + * @generated + */ + public String getGetMethod() + { + return getMethod; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAccessMethods#getGetMethod Get Method}' attribute. + * + * + * @param value the new value of the 'Get Method' attribute. + * @see #getGetMethod() + * @generated + */ + public void setGetMethod(String newGetMethod) + { + String oldGetMethod = getMethod; + getMethod = newGetMethod; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ACCESS_METHODS__GET_METHOD, oldGetMethod, getMethod)); + } + + /** + * Returns the value of the 'Set Method' attribute. + * + *

+ * If the meaning of the 'Set Method' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Set Method' attribute. + * @see #setSetMethod(String) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlAccessMethods_SetMethod() + * @model + * @generated + */ + public String getSetMethod() + { + return setMethod; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAccessMethods#getSetMethod Set Method}' attribute. + * + * + * @param value the new value of the 'Set Method' attribute. + * @see #getSetMethod() + * @generated + */ + public void setSetMethod(String newSetMethod) + { + String oldSetMethod = setMethod; + setMethod = newSetMethod; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ACCESS_METHODS__SET_METHOD, oldSetMethod, setMethod)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case OxmPackage.EXML_ACCESS_METHODS__GET_METHOD: + return getGetMethod(); + case OxmPackage.EXML_ACCESS_METHODS__SET_METHOD: + return getSetMethod(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case OxmPackage.EXML_ACCESS_METHODS__GET_METHOD: + setGetMethod((String)newValue); + return; + case OxmPackage.EXML_ACCESS_METHODS__SET_METHOD: + setSetMethod((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case OxmPackage.EXML_ACCESS_METHODS__GET_METHOD: + setGetMethod(GET_METHOD_EDEFAULT); + return; + case OxmPackage.EXML_ACCESS_METHODS__SET_METHOD: + setSetMethod(SET_METHOD_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case OxmPackage.EXML_ACCESS_METHODS__GET_METHOD: + return GET_METHOD_EDEFAULT == null ? getMethod != null : !GET_METHOD_EDEFAULT.equals(getMethod); + case OxmPackage.EXML_ACCESS_METHODS__SET_METHOD: + return SET_METHOD_EDEFAULT == null ? setMethod != null : !SET_METHOD_EDEFAULT.equals(setMethod); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (getMethod: "); + result.append(getMethod); + result.append(", setMethod: "); + result.append(setMethod); + result.append(')'); + return result.toString(); + } + +} // EXmlAccessMethods diff --git a/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlAccessOrder.java b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlAccessOrder.java new file mode 100644 index 0000000000..63f3c3c24c --- /dev/null +++ b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlAccessOrder.java @@ -0,0 +1,223 @@ +/** + */ +package org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm; + +import java.util.Arrays; +import java.util.Collections; +import java.util.List; + +import org.eclipse.emf.common.util.Enumerator; + +/** + * + * A representation of the literals of the enumeration 'EXml Access Order', + * and utility methods for working with them. + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlAccessOrder() + * @model + * @generated + */ +public enum EXmlAccessOrder implements Enumerator +{ + /** + * The 'ALPHABETICAL' literal object. + * + * + * @see #ALPHABETICAL_VALUE + * @generated + * @ordered + */ + ALPHABETICAL(0, "ALPHABETICAL", "ALPHABETICAL"), + + /** + * The 'UNDEFINED' literal object. + * + * + * @see #UNDEFINED_VALUE + * @generated + * @ordered + */ + UNDEFINED(1, "UNDEFINED", "UNDEFINED"); + + /** + * The 'ALPHABETICAL' literal value. + * + *

+ * If the meaning of 'ALPHABETICAL' literal object isn't clear, + * there really should be more of a description here... + *

+ * + * @see #ALPHABETICAL + * @model + * @generated + * @ordered + */ + public static final int ALPHABETICAL_VALUE = 0; + + /** + * The 'UNDEFINED' literal value. + * + *

+ * If the meaning of 'UNDEFINED' literal object isn't clear, + * there really should be more of a description here... + *

+ * + * @see #UNDEFINED + * @model + * @generated + * @ordered + */ + public static final int UNDEFINED_VALUE = 1; + + /** + * An array of all the 'EXml Access Order' enumerators. + * + * + * @generated + */ + private static final EXmlAccessOrder[] VALUES_ARRAY = + new EXmlAccessOrder[] + { + ALPHABETICAL, + UNDEFINED, + }; + + /** + * A public read-only list of all the 'EXml Access Order' enumerators. + * + * + * @generated + */ + public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + + /** + * Returns the 'EXml Access Order' literal with the specified literal value. + * + * + * @generated + */ + public static EXmlAccessOrder get(String literal) + { + for (int i = 0; i < VALUES_ARRAY.length; ++i) + { + EXmlAccessOrder result = VALUES_ARRAY[i]; + if (result.toString().equals(literal)) + { + return result; + } + } + return null; + } + + /** + * Returns the 'EXml Access Order' literal with the specified name. + * + * + * @generated + */ + public static EXmlAccessOrder getByName(String name) + { + for (int i = 0; i < VALUES_ARRAY.length; ++i) + { + EXmlAccessOrder result = VALUES_ARRAY[i]; + if (result.getName().equals(name)) + { + return result; + } + } + return null; + } + + /** + * Returns the 'EXml Access Order' literal with the specified integer value. + * + * + * @generated + */ + public static EXmlAccessOrder get(int value) + { + switch (value) + { + case ALPHABETICAL_VALUE: return ALPHABETICAL; + case UNDEFINED_VALUE: return UNDEFINED; + } + return null; + } + + /** + * + * + * @generated + */ + private final int value; + + /** + * + * + * @generated + */ + private final String name; + + /** + * + * + * @generated + */ + private final String literal; + + /** + * Only this class can construct instances. + * + * + * @generated + */ + private EXmlAccessOrder(int value, String name, String literal) + { + this.value = value; + this.name = name; + this.literal = literal; + } + + /** + * + * + * @generated + */ + public int getValue() + { + return value; + } + + /** + * + * + * @generated + */ + public String getName() + { + return name; + } + + /** + * + * + * @generated + */ + public String getLiteral() + { + return literal; + } + + /** + * Returns the literal value of the enumerator, which is its string representation. + * + * + * @generated + */ + @Override + public String toString() + { + return literal; + } + +} //EXmlAccessOrder diff --git a/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlAccessType.java b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlAccessType.java new file mode 100644 index 0000000000..a062ec16f9 --- /dev/null +++ b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlAccessType.java @@ -0,0 +1,277 @@ +/** + */ +package org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm; + +import java.util.Arrays; +import java.util.Collections; +import java.util.List; + +import org.eclipse.emf.common.util.Enumerator; + +/** + * + * A representation of the literals of the enumeration 'EXml Access Type', + * and utility methods for working with them. + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlAccessType() + * @model + * @generated + */ +public enum EXmlAccessType implements Enumerator +{ + /** + * The 'FIELD' literal object. + * + * + * @see #FIELD_VALUE + * @generated + * @ordered + */ + FIELD(0, "FIELD", "FIELD"), + + /** + * The 'NONE' literal object. + * + * + * @see #NONE_VALUE + * @generated + * @ordered + */ + NONE(1, "NONE", "NONE"), + + /** + * The 'PROPERTY' literal object. + * + * + * @see #PROPERTY_VALUE + * @generated + * @ordered + */ + PROPERTY(2, "PROPERTY", "PROPERTY"), + + /** + * The 'PUBLIC MEMBER' literal object. + * + * + * @see #PUBLIC_MEMBER_VALUE + * @generated + * @ordered + */ + PUBLIC_MEMBER(3, "PUBLIC_MEMBER", "PUBLIC_MEMBER"); + + /** + * The 'FIELD' literal value. + * + *

+ * If the meaning of 'FIELD' literal object isn't clear, + * there really should be more of a description here... + *

+ * + * @see #FIELD + * @model + * @generated + * @ordered + */ + public static final int FIELD_VALUE = 0; + + /** + * The 'NONE' literal value. + * + *

+ * If the meaning of 'NONE' literal object isn't clear, + * there really should be more of a description here... + *

+ * + * @see #NONE + * @model + * @generated + * @ordered + */ + public static final int NONE_VALUE = 1; + + /** + * The 'PROPERTY' literal value. + * + *

+ * If the meaning of 'PROPERTY' literal object isn't clear, + * there really should be more of a description here... + *

+ * + * @see #PROPERTY + * @model + * @generated + * @ordered + */ + public static final int PROPERTY_VALUE = 2; + + /** + * The 'PUBLIC MEMBER' literal value. + * + *

+ * If the meaning of 'PUBLIC MEMBER' literal object isn't clear, + * there really should be more of a description here... + *

+ * + * @see #PUBLIC_MEMBER + * @model + * @generated + * @ordered + */ + public static final int PUBLIC_MEMBER_VALUE = 3; + + /** + * An array of all the 'EXml Access Type' enumerators. + * + * + * @generated + */ + private static final EXmlAccessType[] VALUES_ARRAY = + new EXmlAccessType[] + { + FIELD, + NONE, + PROPERTY, + PUBLIC_MEMBER, + }; + + /** + * A public read-only list of all the 'EXml Access Type' enumerators. + * + * + * @generated + */ + public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + + /** + * Returns the 'EXml Access Type' literal with the specified literal value. + * + * + * @generated + */ + public static EXmlAccessType get(String literal) + { + for (int i = 0; i < VALUES_ARRAY.length; ++i) + { + EXmlAccessType result = VALUES_ARRAY[i]; + if (result.toString().equals(literal)) + { + return result; + } + } + return null; + } + + /** + * Returns the 'EXml Access Type' literal with the specified name. + * + * + * @generated + */ + public static EXmlAccessType getByName(String name) + { + for (int i = 0; i < VALUES_ARRAY.length; ++i) + { + EXmlAccessType result = VALUES_ARRAY[i]; + if (result.getName().equals(name)) + { + return result; + } + } + return null; + } + + /** + * Returns the 'EXml Access Type' literal with the specified integer value. + * + * + * @generated + */ + public static EXmlAccessType get(int value) + { + switch (value) + { + case FIELD_VALUE: return FIELD; + case NONE_VALUE: return NONE; + case PROPERTY_VALUE: return PROPERTY; + case PUBLIC_MEMBER_VALUE: return PUBLIC_MEMBER; + } + return null; + } + + /** + * + * + * @generated + */ + private final int value; + + /** + * + * + * @generated + */ + private final String name; + + /** + * + * + * @generated + */ + private final String literal; + + /** + * Only this class can construct instances. + * + * + * @generated + */ + private EXmlAccessType(int value, String name, String literal) + { + this.value = value; + this.name = name; + this.literal = literal; + } + + /** + * + * + * @generated + */ + public int getValue() + { + return value; + } + + /** + * + * + * @generated + */ + public String getName() + { + return name; + } + + /** + * + * + * @generated + */ + public String getLiteral() + { + return literal; + } + + /** + * Returns the literal value of the enumerator, which is its string representation. + * + * + * @generated + */ + @Override + public String toString() + { + return literal; + } + +} //EXmlAccessType diff --git a/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlAnyAttribute.java b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlAnyAttribute.java new file mode 100644 index 0000000000..bfde945c47 --- /dev/null +++ b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlAnyAttribute.java @@ -0,0 +1,647 @@ +/******************************************************************************* + * Copyright (c) 2012 Oracle. All rights reserved. + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v1.0, which accompanies this distribution + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Oracle - initial API and implementation + *******************************************************************************/ +package org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm; + +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.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.emf.ecore.EObject; +import org.eclipse.emf.ecore.EStructuralFeature; +import org.eclipse.wst.common.internal.emf.resource.Translator; + +/** + * + * A representation of the model object 'EXml Any Attribute'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAnyAttribute#getXmlPath Xml Path}
  • + *
+ *

+ * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlAnyAttribute() + * @model kind="class" + * @generated + */ +public class EXmlAnyAttribute extends EJavaAttribute implements EAccessibleJavaAttribute, EContainerJavaAttribute, EReadWriteJavaAttribute, EPropertyHolder +{ + /** + * The cached value of the '{@link #getXmlAccessMethods() Xml Access Methods}' containment reference. + * + * + * @see #getXmlAccessMethods() + * @generated + * @ordered + */ + protected EXmlAccessMethods xmlAccessMethods; + /** + * The default value of the '{@link #getContainerType() Container Type}' attribute. + * + * + * @see #getContainerType() + * @generated + * @ordered + */ + protected static final String CONTAINER_TYPE_EDEFAULT = null; + /** + * The cached value of the '{@link #getContainerType() Container Type}' attribute. + * + * + * @see #getContainerType() + * @generated + * @ordered + */ + protected String containerType = CONTAINER_TYPE_EDEFAULT; + /** + * The default value of the '{@link #isReadOnly() Read Only}' attribute. + * + * + * @see #isReadOnly() + * @generated + * @ordered + */ + protected static final boolean READ_ONLY_EDEFAULT = false; + /** + * The cached value of the '{@link #isReadOnly() Read Only}' attribute. + * + * + * @see #isReadOnly() + * @generated + * @ordered + */ + protected boolean readOnly = READ_ONLY_EDEFAULT; + /** + * The default value of the '{@link #isWriteOnly() Write Only}' attribute. + * + * + * @see #isWriteOnly() + * @generated + * @ordered + */ + protected static final boolean WRITE_ONLY_EDEFAULT = false; + /** + * The cached value of the '{@link #isWriteOnly() Write Only}' attribute. + * + * + * @see #isWriteOnly() + * @generated + * @ordered + */ + protected boolean writeOnly = WRITE_ONLY_EDEFAULT; + /** + * The cached value of the '{@link #getXmlProperties() Xml Properties}' containment reference list. + * + * + * @see #getXmlProperties() + * @generated + * @ordered + */ + protected EList xmlProperties; + /** + * The default value of the '{@link #getXmlPath() Xml Path}' attribute. + * + * + * @see #getXmlPath() + * @generated + * @ordered + */ + protected static final String XML_PATH_EDEFAULT = null; + /** + * The cached value of the '{@link #getXmlPath() Xml Path}' attribute. + * + * + * @see #getXmlPath() + * @generated + * @ordered + */ + protected String xmlPath = XML_PATH_EDEFAULT; + + + /** + * + * + * @generated + */ + protected EXmlAnyAttribute() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return OxmPackage.Literals.EXML_ANY_ATTRIBUTE; + } + + + /** + * Returns the value of the 'Xml Access Methods' containment reference. + * + *

+ * If the meaning of the 'Xml Access Methods' containment reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Access Methods' containment reference. + * @see #setXmlAccessMethods(EXmlAccessMethods) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEAccessibleJavaAttribute_XmlAccessMethods() + * @model containment="true" + * @generated + */ + public EXmlAccessMethods getXmlAccessMethods() + { + return xmlAccessMethods; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetXmlAccessMethods(EXmlAccessMethods newXmlAccessMethods, NotificationChain msgs) + { + EXmlAccessMethods oldXmlAccessMethods = xmlAccessMethods; + xmlAccessMethods = newXmlAccessMethods; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ANY_ATTRIBUTE__XML_ACCESS_METHODS, oldXmlAccessMethods, newXmlAccessMethods); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAnyAttribute#getXmlAccessMethods Xml Access Methods}' containment reference. + * + * + * @param value the new value of the 'Xml Access Methods' containment reference. + * @see #getXmlAccessMethods() + * @generated + */ + public void setXmlAccessMethods(EXmlAccessMethods newXmlAccessMethods) + { + if (newXmlAccessMethods != xmlAccessMethods) + { + NotificationChain msgs = null; + if (xmlAccessMethods != null) + msgs = ((InternalEObject)xmlAccessMethods).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OxmPackage.EXML_ANY_ATTRIBUTE__XML_ACCESS_METHODS, null, msgs); + if (newXmlAccessMethods != null) + msgs = ((InternalEObject)newXmlAccessMethods).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OxmPackage.EXML_ANY_ATTRIBUTE__XML_ACCESS_METHODS, null, msgs); + msgs = basicSetXmlAccessMethods(newXmlAccessMethods, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ANY_ATTRIBUTE__XML_ACCESS_METHODS, newXmlAccessMethods, newXmlAccessMethods)); + } + + /** + * Returns the value of the 'Container Type' attribute. + * + *

+ * If the meaning of the 'Container Type' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Container Type' attribute. + * @see #setContainerType(String) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEContainerJavaAttribute_ContainerType() + * @model + * @generated + */ + public String getContainerType() + { + return containerType; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAnyAttribute#getContainerType Container Type}' attribute. + * + * + * @param value the new value of the 'Container Type' attribute. + * @see #getContainerType() + * @generated + */ + public void setContainerType(String newContainerType) + { + String oldContainerType = containerType; + containerType = newContainerType; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ANY_ATTRIBUTE__CONTAINER_TYPE, oldContainerType, containerType)); + } + + /** + * Returns the value of the 'Read Only' attribute. + * + *

+ * If the meaning of the 'Read Only' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Read Only' attribute. + * @see #setReadOnly(boolean) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEReadWriteJavaAttribute_ReadOnly() + * @model + * @generated + */ + public boolean isReadOnly() + { + return readOnly; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAnyAttribute#isReadOnly Read Only}' attribute. + * + * + * @param value the new value of the 'Read Only' attribute. + * @see #isReadOnly() + * @generated + */ + public void setReadOnly(boolean newReadOnly) + { + boolean oldReadOnly = readOnly; + readOnly = newReadOnly; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ANY_ATTRIBUTE__READ_ONLY, oldReadOnly, readOnly)); + } + + /** + * Returns the value of the 'Write Only' attribute. + * + *

+ * If the meaning of the 'Write Only' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Write Only' attribute. + * @see #setWriteOnly(boolean) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEReadWriteJavaAttribute_WriteOnly() + * @model + * @generated + */ + public boolean isWriteOnly() + { + return writeOnly; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAnyAttribute#isWriteOnly Write Only}' attribute. + * + * + * @param value the new value of the 'Write Only' attribute. + * @see #isWriteOnly() + * @generated + */ + public void setWriteOnly(boolean newWriteOnly) + { + boolean oldWriteOnly = writeOnly; + writeOnly = newWriteOnly; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ANY_ATTRIBUTE__WRITE_ONLY, oldWriteOnly, writeOnly)); + } + + /** + * Returns the value of the 'Xml Properties' containment reference list. + * The list contents are of type {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlProperty}. + * + *

+ * If the meaning of the 'Xml Properties' containment reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Properties' containment reference list. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEPropertyHolder_XmlProperties() + * @model containment="true" + * @generated + */ + public EList getXmlProperties() + { + if (xmlProperties == null) + { + xmlProperties = new EObjectContainmentEList(EXmlProperty.class, this, OxmPackage.EXML_ANY_ATTRIBUTE__XML_PROPERTIES); + } + return xmlProperties; + } + + /** + * Returns the value of the 'Xml Path' attribute. + * + *

+ * If the meaning of the 'Xml Path' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Path' attribute. + * @see #setXmlPath(String) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlAnyAttribute_XmlPath() + * @model + * @generated + */ + public String getXmlPath() + { + return xmlPath; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAnyAttribute#getXmlPath Xml Path}' attribute. + * + * + * @param value the new value of the 'Xml Path' attribute. + * @see #getXmlPath() + * @generated + */ + public void setXmlPath(String newXmlPath) + { + String oldXmlPath = xmlPath; + xmlPath = newXmlPath; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ANY_ATTRIBUTE__XML_PATH, oldXmlPath, xmlPath)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case OxmPackage.EXML_ANY_ATTRIBUTE__XML_ACCESS_METHODS: + return basicSetXmlAccessMethods(null, msgs); + case OxmPackage.EXML_ANY_ATTRIBUTE__XML_PROPERTIES: + return ((InternalEList)getXmlProperties()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case OxmPackage.EXML_ANY_ATTRIBUTE__XML_ACCESS_METHODS: + return getXmlAccessMethods(); + case OxmPackage.EXML_ANY_ATTRIBUTE__CONTAINER_TYPE: + return getContainerType(); + case OxmPackage.EXML_ANY_ATTRIBUTE__READ_ONLY: + return isReadOnly(); + case OxmPackage.EXML_ANY_ATTRIBUTE__WRITE_ONLY: + return isWriteOnly(); + case OxmPackage.EXML_ANY_ATTRIBUTE__XML_PROPERTIES: + return getXmlProperties(); + case OxmPackage.EXML_ANY_ATTRIBUTE__XML_PATH: + return getXmlPath(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case OxmPackage.EXML_ANY_ATTRIBUTE__XML_ACCESS_METHODS: + setXmlAccessMethods((EXmlAccessMethods)newValue); + return; + case OxmPackage.EXML_ANY_ATTRIBUTE__CONTAINER_TYPE: + setContainerType((String)newValue); + return; + case OxmPackage.EXML_ANY_ATTRIBUTE__READ_ONLY: + setReadOnly((Boolean)newValue); + return; + case OxmPackage.EXML_ANY_ATTRIBUTE__WRITE_ONLY: + setWriteOnly((Boolean)newValue); + return; + case OxmPackage.EXML_ANY_ATTRIBUTE__XML_PROPERTIES: + getXmlProperties().clear(); + getXmlProperties().addAll((Collection)newValue); + return; + case OxmPackage.EXML_ANY_ATTRIBUTE__XML_PATH: + setXmlPath((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case OxmPackage.EXML_ANY_ATTRIBUTE__XML_ACCESS_METHODS: + setXmlAccessMethods((EXmlAccessMethods)null); + return; + case OxmPackage.EXML_ANY_ATTRIBUTE__CONTAINER_TYPE: + setContainerType(CONTAINER_TYPE_EDEFAULT); + return; + case OxmPackage.EXML_ANY_ATTRIBUTE__READ_ONLY: + setReadOnly(READ_ONLY_EDEFAULT); + return; + case OxmPackage.EXML_ANY_ATTRIBUTE__WRITE_ONLY: + setWriteOnly(WRITE_ONLY_EDEFAULT); + return; + case OxmPackage.EXML_ANY_ATTRIBUTE__XML_PROPERTIES: + getXmlProperties().clear(); + return; + case OxmPackage.EXML_ANY_ATTRIBUTE__XML_PATH: + setXmlPath(XML_PATH_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case OxmPackage.EXML_ANY_ATTRIBUTE__XML_ACCESS_METHODS: + return xmlAccessMethods != null; + case OxmPackage.EXML_ANY_ATTRIBUTE__CONTAINER_TYPE: + return CONTAINER_TYPE_EDEFAULT == null ? containerType != null : !CONTAINER_TYPE_EDEFAULT.equals(containerType); + case OxmPackage.EXML_ANY_ATTRIBUTE__READ_ONLY: + return readOnly != READ_ONLY_EDEFAULT; + case OxmPackage.EXML_ANY_ATTRIBUTE__WRITE_ONLY: + return writeOnly != WRITE_ONLY_EDEFAULT; + case OxmPackage.EXML_ANY_ATTRIBUTE__XML_PROPERTIES: + return xmlProperties != null && !xmlProperties.isEmpty(); + case OxmPackage.EXML_ANY_ATTRIBUTE__XML_PATH: + return XML_PATH_EDEFAULT == null ? xmlPath != null : !XML_PATH_EDEFAULT.equals(xmlPath); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public int eBaseStructuralFeatureID(int derivedFeatureID, Class baseClass) + { + if (baseClass == EAccessibleJavaAttribute.class) + { + switch (derivedFeatureID) + { + case OxmPackage.EXML_ANY_ATTRIBUTE__XML_ACCESS_METHODS: return OxmPackage.EACCESSIBLE_JAVA_ATTRIBUTE__XML_ACCESS_METHODS; + default: return -1; + } + } + if (baseClass == EContainerJavaAttribute.class) + { + switch (derivedFeatureID) + { + case OxmPackage.EXML_ANY_ATTRIBUTE__CONTAINER_TYPE: return OxmPackage.ECONTAINER_JAVA_ATTRIBUTE__CONTAINER_TYPE; + default: return -1; + } + } + if (baseClass == EReadWriteJavaAttribute.class) + { + switch (derivedFeatureID) + { + case OxmPackage.EXML_ANY_ATTRIBUTE__READ_ONLY: return OxmPackage.EREAD_WRITE_JAVA_ATTRIBUTE__READ_ONLY; + case OxmPackage.EXML_ANY_ATTRIBUTE__WRITE_ONLY: return OxmPackage.EREAD_WRITE_JAVA_ATTRIBUTE__WRITE_ONLY; + default: return -1; + } + } + if (baseClass == EPropertyHolder.class) + { + switch (derivedFeatureID) + { + case OxmPackage.EXML_ANY_ATTRIBUTE__XML_PROPERTIES: return OxmPackage.EPROPERTY_HOLDER__XML_PROPERTIES; + default: return -1; + } + } + return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); + } + + /** + * + * + * @generated + */ + @Override + public int eDerivedStructuralFeatureID(int baseFeatureID, Class baseClass) + { + if (baseClass == EAccessibleJavaAttribute.class) + { + switch (baseFeatureID) + { + case OxmPackage.EACCESSIBLE_JAVA_ATTRIBUTE__XML_ACCESS_METHODS: return OxmPackage.EXML_ANY_ATTRIBUTE__XML_ACCESS_METHODS; + default: return -1; + } + } + if (baseClass == EContainerJavaAttribute.class) + { + switch (baseFeatureID) + { + case OxmPackage.ECONTAINER_JAVA_ATTRIBUTE__CONTAINER_TYPE: return OxmPackage.EXML_ANY_ATTRIBUTE__CONTAINER_TYPE; + default: return -1; + } + } + if (baseClass == EReadWriteJavaAttribute.class) + { + switch (baseFeatureID) + { + case OxmPackage.EREAD_WRITE_JAVA_ATTRIBUTE__READ_ONLY: return OxmPackage.EXML_ANY_ATTRIBUTE__READ_ONLY; + case OxmPackage.EREAD_WRITE_JAVA_ATTRIBUTE__WRITE_ONLY: return OxmPackage.EXML_ANY_ATTRIBUTE__WRITE_ONLY; + default: return -1; + } + } + if (baseClass == EPropertyHolder.class) + { + switch (baseFeatureID) + { + case OxmPackage.EPROPERTY_HOLDER__XML_PROPERTIES: return OxmPackage.EXML_ANY_ATTRIBUTE__XML_PROPERTIES; + default: return -1; + } + } + return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); + } + + /** + * + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (containerType: "); + result.append(containerType); + result.append(", readOnly: "); + result.append(readOnly); + result.append(", writeOnly: "); + result.append(writeOnly); + result.append(", xmlPath: "); + result.append(xmlPath); + result.append(')'); + return result.toString(); + } + + + // ***** translators ***** + + static class XmlAnyAttributeTranslator + extends AbstractJavaAttributeTranslator { + + XmlAnyAttributeTranslator(String domPathAndName, EStructuralFeature eStructuralFeature) { + super(domPathAndName, eStructuralFeature, buildTranslatorChildren()); + } + + private static Translator[] buildTranslatorChildren() { + return new Translator[] { + }; + } + + @Override + public EObject createEMFObject(String nodeName, String readAheadName) { + return OxmFactory.eINSTANCE.createEXmlAnyAttribute(); + } + } +} diff --git a/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlAnyElement.java b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlAnyElement.java new file mode 100644 index 0000000000..e2a61c5938 --- /dev/null +++ b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlAnyElement.java @@ -0,0 +1,1024 @@ +/******************************************************************************* + * Copyright (c) 2012 Oracle. All rights reserved. + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v1.0, which accompanies this distribution + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Oracle - initial API and implementation + *******************************************************************************/ +package org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm; + +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.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.emf.ecore.EObject; +import org.eclipse.emf.ecore.EStructuralFeature; +import org.eclipse.wst.common.internal.emf.resource.Translator; + +/** + * + * A representation of the model object 'EXml Any Element'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAnyElement#isXmlMixed Xml Mixed}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAnyElement#isLax Lax}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAnyElement#getDomHandler Dom Handler}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAnyElement#getXmlPath Xml Path}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAnyElement#getXmlElementRefs Xml Element Refs}
  • + *
+ *

+ * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlAnyElement() + * @model kind="class" + * @generated + */ +public class EXmlAnyElement extends EJavaAttribute implements EAccessibleJavaAttribute, EAdaptableJavaAttribute, EContainerJavaAttribute, EReadWriteJavaAttribute, EPropertyHolder +{ + /** + * The cached value of the '{@link #getXmlAccessMethods() Xml Access Methods}' containment reference. + * + * + * @see #getXmlAccessMethods() + * @generated + * @ordered + */ + protected EXmlAccessMethods xmlAccessMethods; + /** + * The cached value of the '{@link #getXmlJavaTypeAdapter() Xml Java Type Adapter}' containment reference. + * + * + * @see #getXmlJavaTypeAdapter() + * @generated + * @ordered + */ + protected EXmlJavaTypeAdapter xmlJavaTypeAdapter; + /** + * The default value of the '{@link #getContainerType() Container Type}' attribute. + * + * + * @see #getContainerType() + * @generated + * @ordered + */ + protected static final String CONTAINER_TYPE_EDEFAULT = null; + /** + * The cached value of the '{@link #getContainerType() Container Type}' attribute. + * + * + * @see #getContainerType() + * @generated + * @ordered + */ + protected String containerType = CONTAINER_TYPE_EDEFAULT; + /** + * The default value of the '{@link #isReadOnly() Read Only}' attribute. + * + * + * @see #isReadOnly() + * @generated + * @ordered + */ + protected static final boolean READ_ONLY_EDEFAULT = false; + /** + * The cached value of the '{@link #isReadOnly() Read Only}' attribute. + * + * + * @see #isReadOnly() + * @generated + * @ordered + */ + protected boolean readOnly = READ_ONLY_EDEFAULT; + /** + * The default value of the '{@link #isWriteOnly() Write Only}' attribute. + * + * + * @see #isWriteOnly() + * @generated + * @ordered + */ + protected static final boolean WRITE_ONLY_EDEFAULT = false; + /** + * The cached value of the '{@link #isWriteOnly() Write Only}' attribute. + * + * + * @see #isWriteOnly() + * @generated + * @ordered + */ + protected boolean writeOnly = WRITE_ONLY_EDEFAULT; + /** + * The cached value of the '{@link #getXmlProperties() Xml Properties}' containment reference list. + * + * + * @see #getXmlProperties() + * @generated + * @ordered + */ + protected EList xmlProperties; + /** + * The default value of the '{@link #isXmlMixed() Xml Mixed}' attribute. + * + * + * @see #isXmlMixed() + * @generated + * @ordered + */ + protected static final boolean XML_MIXED_EDEFAULT = false; + /** + * The cached value of the '{@link #isXmlMixed() Xml Mixed}' attribute. + * + * + * @see #isXmlMixed() + * @generated + * @ordered + */ + protected boolean xmlMixed = XML_MIXED_EDEFAULT; + /** + * The default value of the '{@link #isLax() Lax}' attribute. + * + * + * @see #isLax() + * @generated + * @ordered + */ + protected static final boolean LAX_EDEFAULT = false; + /** + * The cached value of the '{@link #isLax() Lax}' attribute. + * + * + * @see #isLax() + * @generated + * @ordered + */ + protected boolean lax = LAX_EDEFAULT; + /** + * The default value of the '{@link #getDomHandler() Dom Handler}' attribute. + * + * + * @see #getDomHandler() + * @generated + * @ordered + */ + protected static final String DOM_HANDLER_EDEFAULT = null; + /** + * The cached value of the '{@link #getDomHandler() Dom Handler}' attribute. + * + * + * @see #getDomHandler() + * @generated + * @ordered + */ + protected String domHandler = DOM_HANDLER_EDEFAULT; + /** + * The default value of the '{@link #getXmlPath() Xml Path}' attribute. + * + * + * @see #getXmlPath() + * @generated + * @ordered + */ + protected static final String XML_PATH_EDEFAULT = null; + /** + * The cached value of the '{@link #getXmlPath() Xml Path}' attribute. + * + * + * @see #getXmlPath() + * @generated + * @ordered + */ + protected String xmlPath = XML_PATH_EDEFAULT; + /** + * The cached value of the '{@link #getXmlElementRefs() Xml Element Refs}' containment reference. + * + * + * @see #getXmlElementRefs() + * @generated + * @ordered + */ + protected EXmlElementRefs xmlElementRefs; + + + /** + * + * + * @generated + */ + protected EXmlAnyElement() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return OxmPackage.Literals.EXML_ANY_ELEMENT; + } + + + /** + * Returns the value of the 'Xml Access Methods' containment reference. + * + *

+ * If the meaning of the 'Xml Access Methods' containment reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Access Methods' containment reference. + * @see #setXmlAccessMethods(EXmlAccessMethods) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEAccessibleJavaAttribute_XmlAccessMethods() + * @model containment="true" + * @generated + */ + public EXmlAccessMethods getXmlAccessMethods() + { + return xmlAccessMethods; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetXmlAccessMethods(EXmlAccessMethods newXmlAccessMethods, NotificationChain msgs) + { + EXmlAccessMethods oldXmlAccessMethods = xmlAccessMethods; + xmlAccessMethods = newXmlAccessMethods; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ANY_ELEMENT__XML_ACCESS_METHODS, oldXmlAccessMethods, newXmlAccessMethods); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAnyElement#getXmlAccessMethods Xml Access Methods}' containment reference. + * + * + * @param value the new value of the 'Xml Access Methods' containment reference. + * @see #getXmlAccessMethods() + * @generated + */ + public void setXmlAccessMethods(EXmlAccessMethods newXmlAccessMethods) + { + if (newXmlAccessMethods != xmlAccessMethods) + { + NotificationChain msgs = null; + if (xmlAccessMethods != null) + msgs = ((InternalEObject)xmlAccessMethods).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OxmPackage.EXML_ANY_ELEMENT__XML_ACCESS_METHODS, null, msgs); + if (newXmlAccessMethods != null) + msgs = ((InternalEObject)newXmlAccessMethods).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OxmPackage.EXML_ANY_ELEMENT__XML_ACCESS_METHODS, null, msgs); + msgs = basicSetXmlAccessMethods(newXmlAccessMethods, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ANY_ELEMENT__XML_ACCESS_METHODS, newXmlAccessMethods, newXmlAccessMethods)); + } + + /** + * Returns the value of the 'Xml Java Type Adapter' containment reference. + * + *

+ * If the meaning of the 'Xml Java Type Adapter' containment reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Java Type Adapter' containment reference. + * @see #setXmlJavaTypeAdapter(EXmlJavaTypeAdapter) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEAdaptableJavaAttribute_XmlJavaTypeAdapter() + * @model containment="true" + * @generated + */ + public EXmlJavaTypeAdapter getXmlJavaTypeAdapter() + { + return xmlJavaTypeAdapter; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetXmlJavaTypeAdapter(EXmlJavaTypeAdapter newXmlJavaTypeAdapter, NotificationChain msgs) + { + EXmlJavaTypeAdapter oldXmlJavaTypeAdapter = xmlJavaTypeAdapter; + xmlJavaTypeAdapter = newXmlJavaTypeAdapter; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ANY_ELEMENT__XML_JAVA_TYPE_ADAPTER, oldXmlJavaTypeAdapter, newXmlJavaTypeAdapter); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAnyElement#getXmlJavaTypeAdapter Xml Java Type Adapter}' containment reference. + * + * + * @param value the new value of the 'Xml Java Type Adapter' containment reference. + * @see #getXmlJavaTypeAdapter() + * @generated + */ + public void setXmlJavaTypeAdapter(EXmlJavaTypeAdapter newXmlJavaTypeAdapter) + { + if (newXmlJavaTypeAdapter != xmlJavaTypeAdapter) + { + NotificationChain msgs = null; + if (xmlJavaTypeAdapter != null) + msgs = ((InternalEObject)xmlJavaTypeAdapter).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OxmPackage.EXML_ANY_ELEMENT__XML_JAVA_TYPE_ADAPTER, null, msgs); + if (newXmlJavaTypeAdapter != null) + msgs = ((InternalEObject)newXmlJavaTypeAdapter).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OxmPackage.EXML_ANY_ELEMENT__XML_JAVA_TYPE_ADAPTER, null, msgs); + msgs = basicSetXmlJavaTypeAdapter(newXmlJavaTypeAdapter, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ANY_ELEMENT__XML_JAVA_TYPE_ADAPTER, newXmlJavaTypeAdapter, newXmlJavaTypeAdapter)); + } + + /** + * Returns the value of the 'Container Type' attribute. + * + *

+ * If the meaning of the 'Container Type' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Container Type' attribute. + * @see #setContainerType(String) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEContainerJavaAttribute_ContainerType() + * @model + * @generated + */ + public String getContainerType() + { + return containerType; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAnyElement#getContainerType Container Type}' attribute. + * + * + * @param value the new value of the 'Container Type' attribute. + * @see #getContainerType() + * @generated + */ + public void setContainerType(String newContainerType) + { + String oldContainerType = containerType; + containerType = newContainerType; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ANY_ELEMENT__CONTAINER_TYPE, oldContainerType, containerType)); + } + + /** + * Returns the value of the 'Read Only' attribute. + * + *

+ * If the meaning of the 'Read Only' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Read Only' attribute. + * @see #setReadOnly(boolean) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEReadWriteJavaAttribute_ReadOnly() + * @model + * @generated + */ + public boolean isReadOnly() + { + return readOnly; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAnyElement#isReadOnly Read Only}' attribute. + * + * + * @param value the new value of the 'Read Only' attribute. + * @see #isReadOnly() + * @generated + */ + public void setReadOnly(boolean newReadOnly) + { + boolean oldReadOnly = readOnly; + readOnly = newReadOnly; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ANY_ELEMENT__READ_ONLY, oldReadOnly, readOnly)); + } + + /** + * Returns the value of the 'Write Only' attribute. + * + *

+ * If the meaning of the 'Write Only' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Write Only' attribute. + * @see #setWriteOnly(boolean) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEReadWriteJavaAttribute_WriteOnly() + * @model + * @generated + */ + public boolean isWriteOnly() + { + return writeOnly; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAnyElement#isWriteOnly Write Only}' attribute. + * + * + * @param value the new value of the 'Write Only' attribute. + * @see #isWriteOnly() + * @generated + */ + public void setWriteOnly(boolean newWriteOnly) + { + boolean oldWriteOnly = writeOnly; + writeOnly = newWriteOnly; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ANY_ELEMENT__WRITE_ONLY, oldWriteOnly, writeOnly)); + } + + /** + * Returns the value of the 'Xml Properties' containment reference list. + * The list contents are of type {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlProperty}. + * + *

+ * If the meaning of the 'Xml Properties' containment reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Properties' containment reference list. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEPropertyHolder_XmlProperties() + * @model containment="true" + * @generated + */ + public EList getXmlProperties() + { + if (xmlProperties == null) + { + xmlProperties = new EObjectContainmentEList(EXmlProperty.class, this, OxmPackage.EXML_ANY_ELEMENT__XML_PROPERTIES); + } + return xmlProperties; + } + + /** + * Returns the value of the 'Xml Mixed' attribute. + * + *

+ * If the meaning of the 'Xml Mixed' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Mixed' attribute. + * @see #setXmlMixed(boolean) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlAnyElement_XmlMixed() + * @model + * @generated + */ + public boolean isXmlMixed() + { + return xmlMixed; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAnyElement#isXmlMixed Xml Mixed}' attribute. + * + * + * @param value the new value of the 'Xml Mixed' attribute. + * @see #isXmlMixed() + * @generated + */ + public void setXmlMixed(boolean newXmlMixed) + { + boolean oldXmlMixed = xmlMixed; + xmlMixed = newXmlMixed; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ANY_ELEMENT__XML_MIXED, oldXmlMixed, xmlMixed)); + } + + /** + * Returns the value of the 'Lax' attribute. + * + *

+ * If the meaning of the 'Lax' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Lax' attribute. + * @see #setLax(boolean) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlAnyElement_Lax() + * @model + * @generated + */ + public boolean isLax() + { + return lax; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAnyElement#isLax Lax}' attribute. + * + * + * @param value the new value of the 'Lax' attribute. + * @see #isLax() + * @generated + */ + public void setLax(boolean newLax) + { + boolean oldLax = lax; + lax = newLax; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ANY_ELEMENT__LAX, oldLax, lax)); + } + + /** + * Returns the value of the 'Dom Handler' attribute. + * + *

+ * If the meaning of the 'Dom Handler' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Dom Handler' attribute. + * @see #setDomHandler(String) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlAnyElement_DomHandler() + * @model + * @generated + */ + public String getDomHandler() + { + return domHandler; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAnyElement#getDomHandler Dom Handler}' attribute. + * + * + * @param value the new value of the 'Dom Handler' attribute. + * @see #getDomHandler() + * @generated + */ + public void setDomHandler(String newDomHandler) + { + String oldDomHandler = domHandler; + domHandler = newDomHandler; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ANY_ELEMENT__DOM_HANDLER, oldDomHandler, domHandler)); + } + + /** + * Returns the value of the 'Xml Path' attribute. + * + *

+ * If the meaning of the 'Xml Path' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Path' attribute. + * @see #setXmlPath(String) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlAnyElement_XmlPath() + * @model + * @generated + */ + public String getXmlPath() + { + return xmlPath; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAnyElement#getXmlPath Xml Path}' attribute. + * + * + * @param value the new value of the 'Xml Path' attribute. + * @see #getXmlPath() + * @generated + */ + public void setXmlPath(String newXmlPath) + { + String oldXmlPath = xmlPath; + xmlPath = newXmlPath; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ANY_ELEMENT__XML_PATH, oldXmlPath, xmlPath)); + } + + /** + * Returns the value of the 'Xml Element Refs' containment reference. + * + *

+ * If the meaning of the 'Xml Element Refs' containment reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Element Refs' containment reference. + * @see #setXmlElementRefs(EXmlElementRefs) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlAnyElement_XmlElementRefs() + * @model containment="true" + * @generated + */ + public EXmlElementRefs getXmlElementRefs() + { + return xmlElementRefs; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetXmlElementRefs(EXmlElementRefs newXmlElementRefs, NotificationChain msgs) + { + EXmlElementRefs oldXmlElementRefs = xmlElementRefs; + xmlElementRefs = newXmlElementRefs; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ANY_ELEMENT__XML_ELEMENT_REFS, oldXmlElementRefs, newXmlElementRefs); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAnyElement#getXmlElementRefs Xml Element Refs}' containment reference. + * + * + * @param value the new value of the 'Xml Element Refs' containment reference. + * @see #getXmlElementRefs() + * @generated + */ + public void setXmlElementRefs(EXmlElementRefs newXmlElementRefs) + { + if (newXmlElementRefs != xmlElementRefs) + { + NotificationChain msgs = null; + if (xmlElementRefs != null) + msgs = ((InternalEObject)xmlElementRefs).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OxmPackage.EXML_ANY_ELEMENT__XML_ELEMENT_REFS, null, msgs); + if (newXmlElementRefs != null) + msgs = ((InternalEObject)newXmlElementRefs).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OxmPackage.EXML_ANY_ELEMENT__XML_ELEMENT_REFS, null, msgs); + msgs = basicSetXmlElementRefs(newXmlElementRefs, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ANY_ELEMENT__XML_ELEMENT_REFS, newXmlElementRefs, newXmlElementRefs)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case OxmPackage.EXML_ANY_ELEMENT__XML_ACCESS_METHODS: + return basicSetXmlAccessMethods(null, msgs); + case OxmPackage.EXML_ANY_ELEMENT__XML_JAVA_TYPE_ADAPTER: + return basicSetXmlJavaTypeAdapter(null, msgs); + case OxmPackage.EXML_ANY_ELEMENT__XML_PROPERTIES: + return ((InternalEList)getXmlProperties()).basicRemove(otherEnd, msgs); + case OxmPackage.EXML_ANY_ELEMENT__XML_ELEMENT_REFS: + return basicSetXmlElementRefs(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case OxmPackage.EXML_ANY_ELEMENT__XML_ACCESS_METHODS: + return getXmlAccessMethods(); + case OxmPackage.EXML_ANY_ELEMENT__XML_JAVA_TYPE_ADAPTER: + return getXmlJavaTypeAdapter(); + case OxmPackage.EXML_ANY_ELEMENT__CONTAINER_TYPE: + return getContainerType(); + case OxmPackage.EXML_ANY_ELEMENT__READ_ONLY: + return isReadOnly(); + case OxmPackage.EXML_ANY_ELEMENT__WRITE_ONLY: + return isWriteOnly(); + case OxmPackage.EXML_ANY_ELEMENT__XML_PROPERTIES: + return getXmlProperties(); + case OxmPackage.EXML_ANY_ELEMENT__XML_MIXED: + return isXmlMixed(); + case OxmPackage.EXML_ANY_ELEMENT__LAX: + return isLax(); + case OxmPackage.EXML_ANY_ELEMENT__DOM_HANDLER: + return getDomHandler(); + case OxmPackage.EXML_ANY_ELEMENT__XML_PATH: + return getXmlPath(); + case OxmPackage.EXML_ANY_ELEMENT__XML_ELEMENT_REFS: + return getXmlElementRefs(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case OxmPackage.EXML_ANY_ELEMENT__XML_ACCESS_METHODS: + setXmlAccessMethods((EXmlAccessMethods)newValue); + return; + case OxmPackage.EXML_ANY_ELEMENT__XML_JAVA_TYPE_ADAPTER: + setXmlJavaTypeAdapter((EXmlJavaTypeAdapter)newValue); + return; + case OxmPackage.EXML_ANY_ELEMENT__CONTAINER_TYPE: + setContainerType((String)newValue); + return; + case OxmPackage.EXML_ANY_ELEMENT__READ_ONLY: + setReadOnly((Boolean)newValue); + return; + case OxmPackage.EXML_ANY_ELEMENT__WRITE_ONLY: + setWriteOnly((Boolean)newValue); + return; + case OxmPackage.EXML_ANY_ELEMENT__XML_PROPERTIES: + getXmlProperties().clear(); + getXmlProperties().addAll((Collection)newValue); + return; + case OxmPackage.EXML_ANY_ELEMENT__XML_MIXED: + setXmlMixed((Boolean)newValue); + return; + case OxmPackage.EXML_ANY_ELEMENT__LAX: + setLax((Boolean)newValue); + return; + case OxmPackage.EXML_ANY_ELEMENT__DOM_HANDLER: + setDomHandler((String)newValue); + return; + case OxmPackage.EXML_ANY_ELEMENT__XML_PATH: + setXmlPath((String)newValue); + return; + case OxmPackage.EXML_ANY_ELEMENT__XML_ELEMENT_REFS: + setXmlElementRefs((EXmlElementRefs)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case OxmPackage.EXML_ANY_ELEMENT__XML_ACCESS_METHODS: + setXmlAccessMethods((EXmlAccessMethods)null); + return; + case OxmPackage.EXML_ANY_ELEMENT__XML_JAVA_TYPE_ADAPTER: + setXmlJavaTypeAdapter((EXmlJavaTypeAdapter)null); + return; + case OxmPackage.EXML_ANY_ELEMENT__CONTAINER_TYPE: + setContainerType(CONTAINER_TYPE_EDEFAULT); + return; + case OxmPackage.EXML_ANY_ELEMENT__READ_ONLY: + setReadOnly(READ_ONLY_EDEFAULT); + return; + case OxmPackage.EXML_ANY_ELEMENT__WRITE_ONLY: + setWriteOnly(WRITE_ONLY_EDEFAULT); + return; + case OxmPackage.EXML_ANY_ELEMENT__XML_PROPERTIES: + getXmlProperties().clear(); + return; + case OxmPackage.EXML_ANY_ELEMENT__XML_MIXED: + setXmlMixed(XML_MIXED_EDEFAULT); + return; + case OxmPackage.EXML_ANY_ELEMENT__LAX: + setLax(LAX_EDEFAULT); + return; + case OxmPackage.EXML_ANY_ELEMENT__DOM_HANDLER: + setDomHandler(DOM_HANDLER_EDEFAULT); + return; + case OxmPackage.EXML_ANY_ELEMENT__XML_PATH: + setXmlPath(XML_PATH_EDEFAULT); + return; + case OxmPackage.EXML_ANY_ELEMENT__XML_ELEMENT_REFS: + setXmlElementRefs((EXmlElementRefs)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case OxmPackage.EXML_ANY_ELEMENT__XML_ACCESS_METHODS: + return xmlAccessMethods != null; + case OxmPackage.EXML_ANY_ELEMENT__XML_JAVA_TYPE_ADAPTER: + return xmlJavaTypeAdapter != null; + case OxmPackage.EXML_ANY_ELEMENT__CONTAINER_TYPE: + return CONTAINER_TYPE_EDEFAULT == null ? containerType != null : !CONTAINER_TYPE_EDEFAULT.equals(containerType); + case OxmPackage.EXML_ANY_ELEMENT__READ_ONLY: + return readOnly != READ_ONLY_EDEFAULT; + case OxmPackage.EXML_ANY_ELEMENT__WRITE_ONLY: + return writeOnly != WRITE_ONLY_EDEFAULT; + case OxmPackage.EXML_ANY_ELEMENT__XML_PROPERTIES: + return xmlProperties != null && !xmlProperties.isEmpty(); + case OxmPackage.EXML_ANY_ELEMENT__XML_MIXED: + return xmlMixed != XML_MIXED_EDEFAULT; + case OxmPackage.EXML_ANY_ELEMENT__LAX: + return lax != LAX_EDEFAULT; + case OxmPackage.EXML_ANY_ELEMENT__DOM_HANDLER: + return DOM_HANDLER_EDEFAULT == null ? domHandler != null : !DOM_HANDLER_EDEFAULT.equals(domHandler); + case OxmPackage.EXML_ANY_ELEMENT__XML_PATH: + return XML_PATH_EDEFAULT == null ? xmlPath != null : !XML_PATH_EDEFAULT.equals(xmlPath); + case OxmPackage.EXML_ANY_ELEMENT__XML_ELEMENT_REFS: + return xmlElementRefs != null; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public int eBaseStructuralFeatureID(int derivedFeatureID, Class baseClass) + { + if (baseClass == EAccessibleJavaAttribute.class) + { + switch (derivedFeatureID) + { + case OxmPackage.EXML_ANY_ELEMENT__XML_ACCESS_METHODS: return OxmPackage.EACCESSIBLE_JAVA_ATTRIBUTE__XML_ACCESS_METHODS; + default: return -1; + } + } + if (baseClass == EAdaptableJavaAttribute.class) + { + switch (derivedFeatureID) + { + case OxmPackage.EXML_ANY_ELEMENT__XML_JAVA_TYPE_ADAPTER: return OxmPackage.EADAPTABLE_JAVA_ATTRIBUTE__XML_JAVA_TYPE_ADAPTER; + default: return -1; + } + } + if (baseClass == EContainerJavaAttribute.class) + { + switch (derivedFeatureID) + { + case OxmPackage.EXML_ANY_ELEMENT__CONTAINER_TYPE: return OxmPackage.ECONTAINER_JAVA_ATTRIBUTE__CONTAINER_TYPE; + default: return -1; + } + } + if (baseClass == EReadWriteJavaAttribute.class) + { + switch (derivedFeatureID) + { + case OxmPackage.EXML_ANY_ELEMENT__READ_ONLY: return OxmPackage.EREAD_WRITE_JAVA_ATTRIBUTE__READ_ONLY; + case OxmPackage.EXML_ANY_ELEMENT__WRITE_ONLY: return OxmPackage.EREAD_WRITE_JAVA_ATTRIBUTE__WRITE_ONLY; + default: return -1; + } + } + if (baseClass == EPropertyHolder.class) + { + switch (derivedFeatureID) + { + case OxmPackage.EXML_ANY_ELEMENT__XML_PROPERTIES: return OxmPackage.EPROPERTY_HOLDER__XML_PROPERTIES; + default: return -1; + } + } + return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); + } + + /** + * + * + * @generated + */ + @Override + public int eDerivedStructuralFeatureID(int baseFeatureID, Class baseClass) + { + if (baseClass == EAccessibleJavaAttribute.class) + { + switch (baseFeatureID) + { + case OxmPackage.EACCESSIBLE_JAVA_ATTRIBUTE__XML_ACCESS_METHODS: return OxmPackage.EXML_ANY_ELEMENT__XML_ACCESS_METHODS; + default: return -1; + } + } + if (baseClass == EAdaptableJavaAttribute.class) + { + switch (baseFeatureID) + { + case OxmPackage.EADAPTABLE_JAVA_ATTRIBUTE__XML_JAVA_TYPE_ADAPTER: return OxmPackage.EXML_ANY_ELEMENT__XML_JAVA_TYPE_ADAPTER; + default: return -1; + } + } + if (baseClass == EContainerJavaAttribute.class) + { + switch (baseFeatureID) + { + case OxmPackage.ECONTAINER_JAVA_ATTRIBUTE__CONTAINER_TYPE: return OxmPackage.EXML_ANY_ELEMENT__CONTAINER_TYPE; + default: return -1; + } + } + if (baseClass == EReadWriteJavaAttribute.class) + { + switch (baseFeatureID) + { + case OxmPackage.EREAD_WRITE_JAVA_ATTRIBUTE__READ_ONLY: return OxmPackage.EXML_ANY_ELEMENT__READ_ONLY; + case OxmPackage.EREAD_WRITE_JAVA_ATTRIBUTE__WRITE_ONLY: return OxmPackage.EXML_ANY_ELEMENT__WRITE_ONLY; + default: return -1; + } + } + if (baseClass == EPropertyHolder.class) + { + switch (baseFeatureID) + { + case OxmPackage.EPROPERTY_HOLDER__XML_PROPERTIES: return OxmPackage.EXML_ANY_ELEMENT__XML_PROPERTIES; + default: return -1; + } + } + return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); + } + + /** + * + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (containerType: "); + result.append(containerType); + result.append(", readOnly: "); + result.append(readOnly); + result.append(", writeOnly: "); + result.append(writeOnly); + result.append(", xmlMixed: "); + result.append(xmlMixed); + result.append(", lax: "); + result.append(lax); + result.append(", domHandler: "); + result.append(domHandler); + result.append(", xmlPath: "); + result.append(xmlPath); + result.append(')'); + return result.toString(); + } + + + // ***** translators ***** + + static class XmlAnyElementTranslator + extends AbstractJavaAttributeTranslator { + + XmlAnyElementTranslator(String domPathAndName, EStructuralFeature eStructuralFeature) { + super(domPathAndName, eStructuralFeature, buildTranslatorChildren()); + } + + private static Translator[] buildTranslatorChildren() { + return new Translator[] { + }; + } + + @Override + public EObject createEMFObject(String nodeName, String readAheadName) { + return OxmFactory.eINSTANCE.createEXmlAnyElement(); + } + } +} diff --git a/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlAttribute.java b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlAttribute.java new file mode 100644 index 0000000000..c3b282095c --- /dev/null +++ b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlAttribute.java @@ -0,0 +1,1651 @@ +/******************************************************************************* + * Copyright (c) 2012 Oracle. All rights reserved. + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v1.0, which accompanies this distribution + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Oracle - initial API and implementation + *******************************************************************************/ +package org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm; + +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.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; +import org.eclipse.wst.common.internal.emf.resource.Translator; + +/** + * + * A representation of the model object 'EXml Attribute'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAttribute#getName Name}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAttribute#getNamespace Namespace}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAttribute#isRequired Required}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAttribute#isXmlId Xml Id}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAttribute#isXmlIdRef Xml Id Ref}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAttribute#isXmlKey Xml Key}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAttribute#isXmlList Xml List}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAttribute#isXmlInlineBinaryData Xml Inline Binary Data}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAttribute#isXmlAttachmentRef Xml Attachment Ref}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAttribute#getXmlMimeType Xml Mime Type}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAttribute#getXmlPath Xml Path}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAttribute#getXmlAbstractNullPolicy Xml Abstract Null Policy}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAttribute#getXmlSchemaType Xml Schema Type}
  • + *
+ *

+ * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlAttribute() + * @model kind="class" + * @generated + */ +public class EXmlAttribute extends EJavaAttribute implements EAccessibleJavaAttribute, EAdaptableJavaAttribute, EContainerJavaAttribute, EReadWriteJavaAttribute, ETypedJavaAttribute, EPropertyHolder +{ + /** + * The cached value of the '{@link #getXmlAccessMethods() Xml Access Methods}' containment reference. + * + * + * @see #getXmlAccessMethods() + * @generated + * @ordered + */ + protected EXmlAccessMethods xmlAccessMethods; + /** + * The cached value of the '{@link #getXmlJavaTypeAdapter() Xml Java Type Adapter}' containment reference. + * + * + * @see #getXmlJavaTypeAdapter() + * @generated + * @ordered + */ + protected EXmlJavaTypeAdapter xmlJavaTypeAdapter; + /** + * The default value of the '{@link #getContainerType() Container Type}' attribute. + * + * + * @see #getContainerType() + * @generated + * @ordered + */ + protected static final String CONTAINER_TYPE_EDEFAULT = null; + /** + * The cached value of the '{@link #getContainerType() Container Type}' attribute. + * + * + * @see #getContainerType() + * @generated + * @ordered + */ + protected String containerType = CONTAINER_TYPE_EDEFAULT; + /** + * The default value of the '{@link #isReadOnly() Read Only}' attribute. + * + * + * @see #isReadOnly() + * @generated + * @ordered + */ + protected static final boolean READ_ONLY_EDEFAULT = false; + /** + * The cached value of the '{@link #isReadOnly() Read Only}' attribute. + * + * + * @see #isReadOnly() + * @generated + * @ordered + */ + protected boolean readOnly = READ_ONLY_EDEFAULT; + /** + * The default value of the '{@link #isWriteOnly() Write Only}' attribute. + * + * + * @see #isWriteOnly() + * @generated + * @ordered + */ + protected static final boolean WRITE_ONLY_EDEFAULT = false; + /** + * The cached value of the '{@link #isWriteOnly() Write Only}' attribute. + * + * + * @see #isWriteOnly() + * @generated + * @ordered + */ + protected boolean writeOnly = WRITE_ONLY_EDEFAULT; + /** + * The default value of the '{@link #getType() Type}' attribute. + * + * + * @see #getType() + * @generated + * @ordered + */ + protected static final String TYPE_EDEFAULT = null; + /** + * The cached value of the '{@link #getType() Type}' attribute. + * + * + * @see #getType() + * @generated + * @ordered + */ + protected String type = TYPE_EDEFAULT; + /** + * The cached value of the '{@link #getXmlProperties() Xml Properties}' containment reference list. + * + * + * @see #getXmlProperties() + * @generated + * @ordered + */ + protected EList xmlProperties; + /** + * The default value of the '{@link #getName() Name}' attribute. + * + * + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + /** + * The cached value of the '{@link #getName() Name}' attribute. + * + * + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + /** + * The default value of the '{@link #getNamespace() Namespace}' attribute. + * + * + * @see #getNamespace() + * @generated + * @ordered + */ + protected static final String NAMESPACE_EDEFAULT = null; + /** + * The cached value of the '{@link #getNamespace() Namespace}' attribute. + * + * + * @see #getNamespace() + * @generated + * @ordered + */ + protected String namespace = NAMESPACE_EDEFAULT; + /** + * The default value of the '{@link #isRequired() Required}' attribute. + * + * + * @see #isRequired() + * @generated + * @ordered + */ + protected static final boolean REQUIRED_EDEFAULT = false; + /** + * The cached value of the '{@link #isRequired() Required}' attribute. + * + * + * @see #isRequired() + * @generated + * @ordered + */ + protected boolean required = REQUIRED_EDEFAULT; + /** + * The default value of the '{@link #isXmlId() Xml Id}' attribute. + * + * + * @see #isXmlId() + * @generated + * @ordered + */ + protected static final boolean XML_ID_EDEFAULT = false; + /** + * The cached value of the '{@link #isXmlId() Xml Id}' attribute. + * + * + * @see #isXmlId() + * @generated + * @ordered + */ + protected boolean xmlId = XML_ID_EDEFAULT; + /** + * The default value of the '{@link #isXmlIdRef() Xml Id Ref}' attribute. + * + * + * @see #isXmlIdRef() + * @generated + * @ordered + */ + protected static final boolean XML_ID_REF_EDEFAULT = false; + /** + * The cached value of the '{@link #isXmlIdRef() Xml Id Ref}' attribute. + * + * + * @see #isXmlIdRef() + * @generated + * @ordered + */ + protected boolean xmlIdRef = XML_ID_REF_EDEFAULT; + /** + * The default value of the '{@link #isXmlKey() Xml Key}' attribute. + * + * + * @see #isXmlKey() + * @generated + * @ordered + */ + protected static final boolean XML_KEY_EDEFAULT = false; + /** + * The cached value of the '{@link #isXmlKey() Xml Key}' attribute. + * + * + * @see #isXmlKey() + * @generated + * @ordered + */ + protected boolean xmlKey = XML_KEY_EDEFAULT; + /** + * The default value of the '{@link #isXmlList() Xml List}' attribute. + * + * + * @see #isXmlList() + * @generated + * @ordered + */ + protected static final boolean XML_LIST_EDEFAULT = false; + /** + * The cached value of the '{@link #isXmlList() Xml List}' attribute. + * + * + * @see #isXmlList() + * @generated + * @ordered + */ + protected boolean xmlList = XML_LIST_EDEFAULT; + /** + * The default value of the '{@link #isXmlInlineBinaryData() Xml Inline Binary Data}' attribute. + * + * + * @see #isXmlInlineBinaryData() + * @generated + * @ordered + */ + protected static final boolean XML_INLINE_BINARY_DATA_EDEFAULT = false; + /** + * The cached value of the '{@link #isXmlInlineBinaryData() Xml Inline Binary Data}' attribute. + * + * + * @see #isXmlInlineBinaryData() + * @generated + * @ordered + */ + protected boolean xmlInlineBinaryData = XML_INLINE_BINARY_DATA_EDEFAULT; + /** + * The default value of the '{@link #isXmlAttachmentRef() Xml Attachment Ref}' attribute. + * + * + * @see #isXmlAttachmentRef() + * @generated + * @ordered + */ + protected static final boolean XML_ATTACHMENT_REF_EDEFAULT = false; + /** + * The cached value of the '{@link #isXmlAttachmentRef() Xml Attachment Ref}' attribute. + * + * + * @see #isXmlAttachmentRef() + * @generated + * @ordered + */ + protected boolean xmlAttachmentRef = XML_ATTACHMENT_REF_EDEFAULT; + /** + * The default value of the '{@link #getXmlMimeType() Xml Mime Type}' attribute. + * + * + * @see #getXmlMimeType() + * @generated + * @ordered + */ + protected static final String XML_MIME_TYPE_EDEFAULT = null; + /** + * The cached value of the '{@link #getXmlMimeType() Xml Mime Type}' attribute. + * + * + * @see #getXmlMimeType() + * @generated + * @ordered + */ + protected String xmlMimeType = XML_MIME_TYPE_EDEFAULT; + /** + * The default value of the '{@link #getXmlPath() Xml Path}' attribute. + * + * + * @see #getXmlPath() + * @generated + * @ordered + */ + protected static final String XML_PATH_EDEFAULT = null; + /** + * The cached value of the '{@link #getXmlPath() Xml Path}' attribute. + * + * + * @see #getXmlPath() + * @generated + * @ordered + */ + protected String xmlPath = XML_PATH_EDEFAULT; + /** + * The cached value of the '{@link #getXmlAbstractNullPolicy() Xml Abstract Null Policy}' containment reference. + * + * + * @see #getXmlAbstractNullPolicy() + * @generated + * @ordered + */ + protected EAbstractXmlNullPolicy xmlAbstractNullPolicy; + + /** + * The cached value of the '{@link #getXmlSchemaType() Xml Schema Type}' containment reference. + * + * + * @see #getXmlSchemaType() + * @generated + * @ordered + */ + protected EXmlSchemaType xmlSchemaType; + + /** + * + * + * @generated + */ + protected EXmlAttribute() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return OxmPackage.Literals.EXML_ATTRIBUTE; + } + + + /** + * Returns the value of the 'Xml Access Methods' containment reference. + * + *

+ * If the meaning of the 'Xml Access Methods' containment reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Access Methods' containment reference. + * @see #setXmlAccessMethods(EXmlAccessMethods) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEAccessibleJavaAttribute_XmlAccessMethods() + * @model containment="true" + * @generated + */ + public EXmlAccessMethods getXmlAccessMethods() + { + return xmlAccessMethods; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetXmlAccessMethods(EXmlAccessMethods newXmlAccessMethods, NotificationChain msgs) + { + EXmlAccessMethods oldXmlAccessMethods = xmlAccessMethods; + xmlAccessMethods = newXmlAccessMethods; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ATTRIBUTE__XML_ACCESS_METHODS, oldXmlAccessMethods, newXmlAccessMethods); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAttribute#getXmlAccessMethods Xml Access Methods}' containment reference. + * + * + * @param value the new value of the 'Xml Access Methods' containment reference. + * @see #getXmlAccessMethods() + * @generated + */ + public void setXmlAccessMethods(EXmlAccessMethods newXmlAccessMethods) + { + if (newXmlAccessMethods != xmlAccessMethods) + { + NotificationChain msgs = null; + if (xmlAccessMethods != null) + msgs = ((InternalEObject)xmlAccessMethods).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OxmPackage.EXML_ATTRIBUTE__XML_ACCESS_METHODS, null, msgs); + if (newXmlAccessMethods != null) + msgs = ((InternalEObject)newXmlAccessMethods).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OxmPackage.EXML_ATTRIBUTE__XML_ACCESS_METHODS, null, msgs); + msgs = basicSetXmlAccessMethods(newXmlAccessMethods, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ATTRIBUTE__XML_ACCESS_METHODS, newXmlAccessMethods, newXmlAccessMethods)); + } + + /** + * Returns the value of the 'Xml Java Type Adapter' containment reference. + * + *

+ * If the meaning of the 'Xml Java Type Adapter' containment reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Java Type Adapter' containment reference. + * @see #setXmlJavaTypeAdapter(EXmlJavaTypeAdapter) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEAdaptableJavaAttribute_XmlJavaTypeAdapter() + * @model containment="true" + * @generated + */ + public EXmlJavaTypeAdapter getXmlJavaTypeAdapter() + { + return xmlJavaTypeAdapter; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetXmlJavaTypeAdapter(EXmlJavaTypeAdapter newXmlJavaTypeAdapter, NotificationChain msgs) + { + EXmlJavaTypeAdapter oldXmlJavaTypeAdapter = xmlJavaTypeAdapter; + xmlJavaTypeAdapter = newXmlJavaTypeAdapter; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ATTRIBUTE__XML_JAVA_TYPE_ADAPTER, oldXmlJavaTypeAdapter, newXmlJavaTypeAdapter); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAttribute#getXmlJavaTypeAdapter Xml Java Type Adapter}' containment reference. + * + * + * @param value the new value of the 'Xml Java Type Adapter' containment reference. + * @see #getXmlJavaTypeAdapter() + * @generated + */ + public void setXmlJavaTypeAdapter(EXmlJavaTypeAdapter newXmlJavaTypeAdapter) + { + if (newXmlJavaTypeAdapter != xmlJavaTypeAdapter) + { + NotificationChain msgs = null; + if (xmlJavaTypeAdapter != null) + msgs = ((InternalEObject)xmlJavaTypeAdapter).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OxmPackage.EXML_ATTRIBUTE__XML_JAVA_TYPE_ADAPTER, null, msgs); + if (newXmlJavaTypeAdapter != null) + msgs = ((InternalEObject)newXmlJavaTypeAdapter).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OxmPackage.EXML_ATTRIBUTE__XML_JAVA_TYPE_ADAPTER, null, msgs); + msgs = basicSetXmlJavaTypeAdapter(newXmlJavaTypeAdapter, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ATTRIBUTE__XML_JAVA_TYPE_ADAPTER, newXmlJavaTypeAdapter, newXmlJavaTypeAdapter)); + } + + /** + * Returns the value of the 'Container Type' attribute. + * + *

+ * If the meaning of the 'Container Type' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Container Type' attribute. + * @see #setContainerType(String) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEContainerJavaAttribute_ContainerType() + * @model + * @generated + */ + public String getContainerType() + { + return containerType; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAttribute#getContainerType Container Type}' attribute. + * + * + * @param value the new value of the 'Container Type' attribute. + * @see #getContainerType() + * @generated + */ + public void setContainerType(String newContainerType) + { + String oldContainerType = containerType; + containerType = newContainerType; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ATTRIBUTE__CONTAINER_TYPE, oldContainerType, containerType)); + } + + /** + * Returns the value of the 'Read Only' attribute. + * + *

+ * If the meaning of the 'Read Only' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Read Only' attribute. + * @see #setReadOnly(boolean) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEReadWriteJavaAttribute_ReadOnly() + * @model + * @generated + */ + public boolean isReadOnly() + { + return readOnly; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAttribute#isReadOnly Read Only}' attribute. + * + * + * @param value the new value of the 'Read Only' attribute. + * @see #isReadOnly() + * @generated + */ + public void setReadOnly(boolean newReadOnly) + { + boolean oldReadOnly = readOnly; + readOnly = newReadOnly; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ATTRIBUTE__READ_ONLY, oldReadOnly, readOnly)); + } + + /** + * Returns the value of the 'Write Only' attribute. + * + *

+ * If the meaning of the 'Write Only' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Write Only' attribute. + * @see #setWriteOnly(boolean) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEReadWriteJavaAttribute_WriteOnly() + * @model + * @generated + */ + public boolean isWriteOnly() + { + return writeOnly; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAttribute#isWriteOnly Write Only}' attribute. + * + * + * @param value the new value of the 'Write Only' attribute. + * @see #isWriteOnly() + * @generated + */ + public void setWriteOnly(boolean newWriteOnly) + { + boolean oldWriteOnly = writeOnly; + writeOnly = newWriteOnly; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ATTRIBUTE__WRITE_ONLY, oldWriteOnly, writeOnly)); + } + + /** + * Returns the value of the 'Type' attribute. + * + *

+ * If the meaning of the 'Type' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Type' attribute. + * @see #setType(String) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getETypedJavaAttribute_Type() + * @model + * @generated + */ + public String getType() + { + return type; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAttribute#getType Type}' attribute. + * + * + * @param value the new value of the 'Type' attribute. + * @see #getType() + * @generated + */ + public void setType(String newType) + { + String oldType = type; + type = newType; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ATTRIBUTE__TYPE, oldType, type)); + } + + /** + * Returns the value of the 'Xml Properties' containment reference list. + * The list contents are of type {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlProperty}. + * + *

+ * If the meaning of the 'Xml Properties' containment reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Properties' containment reference list. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEPropertyHolder_XmlProperties() + * @model containment="true" + * @generated + */ + public EList getXmlProperties() + { + if (xmlProperties == null) + { + xmlProperties = new EObjectContainmentEList(EXmlProperty.class, this, OxmPackage.EXML_ATTRIBUTE__XML_PROPERTIES); + } + return xmlProperties; + } + + /** + * Returns the value of the 'Name' attribute. + * + *

+ * If the meaning of the 'Name' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Name' attribute. + * @see #setName(String) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlAttribute_Name() + * @model + * @generated + */ + public String getName() + { + return name; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAttribute#getName Name}' attribute. + * + * + * @param value the new value of the 'Name' attribute. + * @see #getName() + * @generated + */ + public void setName(String newName) + { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ATTRIBUTE__NAME, oldName, name)); + } + + /** + * Returns the value of the 'Namespace' attribute. + * + *

+ * If the meaning of the 'Namespace' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Namespace' attribute. + * @see #setNamespace(String) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlAttribute_Namespace() + * @model + * @generated + */ + public String getNamespace() + { + return namespace; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAttribute#getNamespace Namespace}' attribute. + * + * + * @param value the new value of the 'Namespace' attribute. + * @see #getNamespace() + * @generated + */ + public void setNamespace(String newNamespace) + { + String oldNamespace = namespace; + namespace = newNamespace; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ATTRIBUTE__NAMESPACE, oldNamespace, namespace)); + } + + /** + * Returns the value of the 'Required' attribute. + * + *

+ * If the meaning of the 'Required' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Required' attribute. + * @see #setRequired(boolean) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlAttribute_Required() + * @model + * @generated + */ + public boolean isRequired() + { + return required; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAttribute#isRequired Required}' attribute. + * + * + * @param value the new value of the 'Required' attribute. + * @see #isRequired() + * @generated + */ + public void setRequired(boolean newRequired) + { + boolean oldRequired = required; + required = newRequired; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ATTRIBUTE__REQUIRED, oldRequired, required)); + } + + /** + * Returns the value of the 'Xml Id' attribute. + * + *

+ * If the meaning of the 'Xml Id' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Id' attribute. + * @see #setXmlId(boolean) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlAttribute_XmlId() + * @model + * @generated + */ + public boolean isXmlId() + { + return xmlId; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAttribute#isXmlId Xml Id}' attribute. + * + * + * @param value the new value of the 'Xml Id' attribute. + * @see #isXmlId() + * @generated + */ + public void setXmlId(boolean newXmlId) + { + boolean oldXmlId = xmlId; + xmlId = newXmlId; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ATTRIBUTE__XML_ID, oldXmlId, xmlId)); + } + + /** + * Returns the value of the 'Xml Id Ref' attribute. + * + *

+ * If the meaning of the 'Xml Id Ref' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Id Ref' attribute. + * @see #setXmlIdRef(boolean) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlAttribute_XmlIdRef() + * @model + * @generated + */ + public boolean isXmlIdRef() + { + return xmlIdRef; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAttribute#isXmlIdRef Xml Id Ref}' attribute. + * + * + * @param value the new value of the 'Xml Id Ref' attribute. + * @see #isXmlIdRef() + * @generated + */ + public void setXmlIdRef(boolean newXmlIdRef) + { + boolean oldXmlIdRef = xmlIdRef; + xmlIdRef = newXmlIdRef; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ATTRIBUTE__XML_ID_REF, oldXmlIdRef, xmlIdRef)); + } + + /** + * Returns the value of the 'Xml Key' attribute. + * + *

+ * If the meaning of the 'Xml Key' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Key' attribute. + * @see #setXmlKey(boolean) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlAttribute_XmlKey() + * @model + * @generated + */ + public boolean isXmlKey() + { + return xmlKey; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAttribute#isXmlKey Xml Key}' attribute. + * + * + * @param value the new value of the 'Xml Key' attribute. + * @see #isXmlKey() + * @generated + */ + public void setXmlKey(boolean newXmlKey) + { + boolean oldXmlKey = xmlKey; + xmlKey = newXmlKey; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ATTRIBUTE__XML_KEY, oldXmlKey, xmlKey)); + } + + /** + * Returns the value of the 'Xml List' attribute. + * + *

+ * If the meaning of the 'Xml List' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml List' attribute. + * @see #setXmlList(boolean) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlAttribute_XmlList() + * @model + * @generated + */ + public boolean isXmlList() + { + return xmlList; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAttribute#isXmlList Xml List}' attribute. + * + * + * @param value the new value of the 'Xml List' attribute. + * @see #isXmlList() + * @generated + */ + public void setXmlList(boolean newXmlList) + { + boolean oldXmlList = xmlList; + xmlList = newXmlList; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ATTRIBUTE__XML_LIST, oldXmlList, xmlList)); + } + + /** + * Returns the value of the 'Xml Inline Binary Data' attribute. + * + *

+ * If the meaning of the 'Xml Inline Binary Data' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Inline Binary Data' attribute. + * @see #setXmlInlineBinaryData(boolean) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlAttribute_XmlInlineBinaryData() + * @model + * @generated + */ + public boolean isXmlInlineBinaryData() + { + return xmlInlineBinaryData; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAttribute#isXmlInlineBinaryData Xml Inline Binary Data}' attribute. + * + * + * @param value the new value of the 'Xml Inline Binary Data' attribute. + * @see #isXmlInlineBinaryData() + * @generated + */ + public void setXmlInlineBinaryData(boolean newXmlInlineBinaryData) + { + boolean oldXmlInlineBinaryData = xmlInlineBinaryData; + xmlInlineBinaryData = newXmlInlineBinaryData; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ATTRIBUTE__XML_INLINE_BINARY_DATA, oldXmlInlineBinaryData, xmlInlineBinaryData)); + } + + /** + * Returns the value of the 'Xml Attachment Ref' attribute. + * + *

+ * If the meaning of the 'Xml Attachment Ref' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Attachment Ref' attribute. + * @see #setXmlAttachmentRef(boolean) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlAttribute_XmlAttachmentRef() + * @model + * @generated + */ + public boolean isXmlAttachmentRef() + { + return xmlAttachmentRef; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAttribute#isXmlAttachmentRef Xml Attachment Ref}' attribute. + * + * + * @param value the new value of the 'Xml Attachment Ref' attribute. + * @see #isXmlAttachmentRef() + * @generated + */ + public void setXmlAttachmentRef(boolean newXmlAttachmentRef) + { + boolean oldXmlAttachmentRef = xmlAttachmentRef; + xmlAttachmentRef = newXmlAttachmentRef; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ATTRIBUTE__XML_ATTACHMENT_REF, oldXmlAttachmentRef, xmlAttachmentRef)); + } + + /** + * Returns the value of the 'Xml Mime Type' attribute. + * + *

+ * If the meaning of the 'Xml Mime Type' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Mime Type' attribute. + * @see #setXmlMimeType(String) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlAttribute_XmlMimeType() + * @model + * @generated + */ + public String getXmlMimeType() + { + return xmlMimeType; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAttribute#getXmlMimeType Xml Mime Type}' attribute. + * + * + * @param value the new value of the 'Xml Mime Type' attribute. + * @see #getXmlMimeType() + * @generated + */ + public void setXmlMimeType(String newXmlMimeType) + { + String oldXmlMimeType = xmlMimeType; + xmlMimeType = newXmlMimeType; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ATTRIBUTE__XML_MIME_TYPE, oldXmlMimeType, xmlMimeType)); + } + + /** + * Returns the value of the 'Xml Path' attribute. + * + *

+ * If the meaning of the 'Xml Path' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Path' attribute. + * @see #setXmlPath(String) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlAttribute_XmlPath() + * @model + * @generated + */ + public String getXmlPath() + { + return xmlPath; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAttribute#getXmlPath Xml Path}' attribute. + * + * + * @param value the new value of the 'Xml Path' attribute. + * @see #getXmlPath() + * @generated + */ + public void setXmlPath(String newXmlPath) + { + String oldXmlPath = xmlPath; + xmlPath = newXmlPath; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ATTRIBUTE__XML_PATH, oldXmlPath, xmlPath)); + } + + /** + * Returns the value of the 'Xml Abstract Null Policy' containment reference. + * + *

+ * If the meaning of the 'Xml Abstract Null Policy' containment reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Abstract Null Policy' containment reference. + * @see #setXmlAbstractNullPolicy(EAbstractXmlNullPolicy) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlAttribute_XmlAbstractNullPolicy() + * @model containment="true" + * @generated + */ + public EAbstractXmlNullPolicy getXmlAbstractNullPolicy() + { + return xmlAbstractNullPolicy; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetXmlAbstractNullPolicy(EAbstractXmlNullPolicy newXmlAbstractNullPolicy, NotificationChain msgs) + { + EAbstractXmlNullPolicy oldXmlAbstractNullPolicy = xmlAbstractNullPolicy; + xmlAbstractNullPolicy = newXmlAbstractNullPolicy; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ATTRIBUTE__XML_ABSTRACT_NULL_POLICY, oldXmlAbstractNullPolicy, newXmlAbstractNullPolicy); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAttribute#getXmlAbstractNullPolicy Xml Abstract Null Policy}' containment reference. + * + * + * @param value the new value of the 'Xml Abstract Null Policy' containment reference. + * @see #getXmlAbstractNullPolicy() + * @generated + */ + public void setXmlAbstractNullPolicy(EAbstractXmlNullPolicy newXmlAbstractNullPolicy) + { + if (newXmlAbstractNullPolicy != xmlAbstractNullPolicy) + { + NotificationChain msgs = null; + if (xmlAbstractNullPolicy != null) + msgs = ((InternalEObject)xmlAbstractNullPolicy).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OxmPackage.EXML_ATTRIBUTE__XML_ABSTRACT_NULL_POLICY, null, msgs); + if (newXmlAbstractNullPolicy != null) + msgs = ((InternalEObject)newXmlAbstractNullPolicy).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OxmPackage.EXML_ATTRIBUTE__XML_ABSTRACT_NULL_POLICY, null, msgs); + msgs = basicSetXmlAbstractNullPolicy(newXmlAbstractNullPolicy, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ATTRIBUTE__XML_ABSTRACT_NULL_POLICY, newXmlAbstractNullPolicy, newXmlAbstractNullPolicy)); + } + + /** + * Returns the value of the 'Xml Schema Type' containment reference. + * + *

+ * If the meaning of the 'Xml Schema Type' containment reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Schema Type' containment reference. + * @see #setXmlSchemaType(EXmlSchemaType) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlAttribute_XmlSchemaType() + * @model containment="true" + * @generated + */ + public EXmlSchemaType getXmlSchemaType() + { + return xmlSchemaType; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetXmlSchemaType(EXmlSchemaType newXmlSchemaType, NotificationChain msgs) + { + EXmlSchemaType oldXmlSchemaType = xmlSchemaType; + xmlSchemaType = newXmlSchemaType; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ATTRIBUTE__XML_SCHEMA_TYPE, oldXmlSchemaType, newXmlSchemaType); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAttribute#getXmlSchemaType Xml Schema Type}' containment reference. + * + * + * @param value the new value of the 'Xml Schema Type' containment reference. + * @see #getXmlSchemaType() + * @generated + */ + public void setXmlSchemaType(EXmlSchemaType newXmlSchemaType) + { + if (newXmlSchemaType != xmlSchemaType) + { + NotificationChain msgs = null; + if (xmlSchemaType != null) + msgs = ((InternalEObject)xmlSchemaType).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OxmPackage.EXML_ATTRIBUTE__XML_SCHEMA_TYPE, null, msgs); + if (newXmlSchemaType != null) + msgs = ((InternalEObject)newXmlSchemaType).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OxmPackage.EXML_ATTRIBUTE__XML_SCHEMA_TYPE, null, msgs); + msgs = basicSetXmlSchemaType(newXmlSchemaType, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ATTRIBUTE__XML_SCHEMA_TYPE, newXmlSchemaType, newXmlSchemaType)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case OxmPackage.EXML_ATTRIBUTE__XML_ACCESS_METHODS: + return basicSetXmlAccessMethods(null, msgs); + case OxmPackage.EXML_ATTRIBUTE__XML_JAVA_TYPE_ADAPTER: + return basicSetXmlJavaTypeAdapter(null, msgs); + case OxmPackage.EXML_ATTRIBUTE__XML_PROPERTIES: + return ((InternalEList)getXmlProperties()).basicRemove(otherEnd, msgs); + case OxmPackage.EXML_ATTRIBUTE__XML_ABSTRACT_NULL_POLICY: + return basicSetXmlAbstractNullPolicy(null, msgs); + case OxmPackage.EXML_ATTRIBUTE__XML_SCHEMA_TYPE: + return basicSetXmlSchemaType(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case OxmPackage.EXML_ATTRIBUTE__XML_ACCESS_METHODS: + return getXmlAccessMethods(); + case OxmPackage.EXML_ATTRIBUTE__XML_JAVA_TYPE_ADAPTER: + return getXmlJavaTypeAdapter(); + case OxmPackage.EXML_ATTRIBUTE__CONTAINER_TYPE: + return getContainerType(); + case OxmPackage.EXML_ATTRIBUTE__READ_ONLY: + return isReadOnly(); + case OxmPackage.EXML_ATTRIBUTE__WRITE_ONLY: + return isWriteOnly(); + case OxmPackage.EXML_ATTRIBUTE__TYPE: + return getType(); + case OxmPackage.EXML_ATTRIBUTE__XML_PROPERTIES: + return getXmlProperties(); + case OxmPackage.EXML_ATTRIBUTE__NAME: + return getName(); + case OxmPackage.EXML_ATTRIBUTE__NAMESPACE: + return getNamespace(); + case OxmPackage.EXML_ATTRIBUTE__REQUIRED: + return isRequired(); + case OxmPackage.EXML_ATTRIBUTE__XML_ID: + return isXmlId(); + case OxmPackage.EXML_ATTRIBUTE__XML_ID_REF: + return isXmlIdRef(); + case OxmPackage.EXML_ATTRIBUTE__XML_KEY: + return isXmlKey(); + case OxmPackage.EXML_ATTRIBUTE__XML_LIST: + return isXmlList(); + case OxmPackage.EXML_ATTRIBUTE__XML_INLINE_BINARY_DATA: + return isXmlInlineBinaryData(); + case OxmPackage.EXML_ATTRIBUTE__XML_ATTACHMENT_REF: + return isXmlAttachmentRef(); + case OxmPackage.EXML_ATTRIBUTE__XML_MIME_TYPE: + return getXmlMimeType(); + case OxmPackage.EXML_ATTRIBUTE__XML_PATH: + return getXmlPath(); + case OxmPackage.EXML_ATTRIBUTE__XML_ABSTRACT_NULL_POLICY: + return getXmlAbstractNullPolicy(); + case OxmPackage.EXML_ATTRIBUTE__XML_SCHEMA_TYPE: + return getXmlSchemaType(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case OxmPackage.EXML_ATTRIBUTE__XML_ACCESS_METHODS: + setXmlAccessMethods((EXmlAccessMethods)newValue); + return; + case OxmPackage.EXML_ATTRIBUTE__XML_JAVA_TYPE_ADAPTER: + setXmlJavaTypeAdapter((EXmlJavaTypeAdapter)newValue); + return; + case OxmPackage.EXML_ATTRIBUTE__CONTAINER_TYPE: + setContainerType((String)newValue); + return; + case OxmPackage.EXML_ATTRIBUTE__READ_ONLY: + setReadOnly((Boolean)newValue); + return; + case OxmPackage.EXML_ATTRIBUTE__WRITE_ONLY: + setWriteOnly((Boolean)newValue); + return; + case OxmPackage.EXML_ATTRIBUTE__TYPE: + setType((String)newValue); + return; + case OxmPackage.EXML_ATTRIBUTE__XML_PROPERTIES: + getXmlProperties().clear(); + getXmlProperties().addAll((Collection)newValue); + return; + case OxmPackage.EXML_ATTRIBUTE__NAME: + setName((String)newValue); + return; + case OxmPackage.EXML_ATTRIBUTE__NAMESPACE: + setNamespace((String)newValue); + return; + case OxmPackage.EXML_ATTRIBUTE__REQUIRED: + setRequired((Boolean)newValue); + return; + case OxmPackage.EXML_ATTRIBUTE__XML_ID: + setXmlId((Boolean)newValue); + return; + case OxmPackage.EXML_ATTRIBUTE__XML_ID_REF: + setXmlIdRef((Boolean)newValue); + return; + case OxmPackage.EXML_ATTRIBUTE__XML_KEY: + setXmlKey((Boolean)newValue); + return; + case OxmPackage.EXML_ATTRIBUTE__XML_LIST: + setXmlList((Boolean)newValue); + return; + case OxmPackage.EXML_ATTRIBUTE__XML_INLINE_BINARY_DATA: + setXmlInlineBinaryData((Boolean)newValue); + return; + case OxmPackage.EXML_ATTRIBUTE__XML_ATTACHMENT_REF: + setXmlAttachmentRef((Boolean)newValue); + return; + case OxmPackage.EXML_ATTRIBUTE__XML_MIME_TYPE: + setXmlMimeType((String)newValue); + return; + case OxmPackage.EXML_ATTRIBUTE__XML_PATH: + setXmlPath((String)newValue); + return; + case OxmPackage.EXML_ATTRIBUTE__XML_ABSTRACT_NULL_POLICY: + setXmlAbstractNullPolicy((EAbstractXmlNullPolicy)newValue); + return; + case OxmPackage.EXML_ATTRIBUTE__XML_SCHEMA_TYPE: + setXmlSchemaType((EXmlSchemaType)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case OxmPackage.EXML_ATTRIBUTE__XML_ACCESS_METHODS: + setXmlAccessMethods((EXmlAccessMethods)null); + return; + case OxmPackage.EXML_ATTRIBUTE__XML_JAVA_TYPE_ADAPTER: + setXmlJavaTypeAdapter((EXmlJavaTypeAdapter)null); + return; + case OxmPackage.EXML_ATTRIBUTE__CONTAINER_TYPE: + setContainerType(CONTAINER_TYPE_EDEFAULT); + return; + case OxmPackage.EXML_ATTRIBUTE__READ_ONLY: + setReadOnly(READ_ONLY_EDEFAULT); + return; + case OxmPackage.EXML_ATTRIBUTE__WRITE_ONLY: + setWriteOnly(WRITE_ONLY_EDEFAULT); + return; + case OxmPackage.EXML_ATTRIBUTE__TYPE: + setType(TYPE_EDEFAULT); + return; + case OxmPackage.EXML_ATTRIBUTE__XML_PROPERTIES: + getXmlProperties().clear(); + return; + case OxmPackage.EXML_ATTRIBUTE__NAME: + setName(NAME_EDEFAULT); + return; + case OxmPackage.EXML_ATTRIBUTE__NAMESPACE: + setNamespace(NAMESPACE_EDEFAULT); + return; + case OxmPackage.EXML_ATTRIBUTE__REQUIRED: + setRequired(REQUIRED_EDEFAULT); + return; + case OxmPackage.EXML_ATTRIBUTE__XML_ID: + setXmlId(XML_ID_EDEFAULT); + return; + case OxmPackage.EXML_ATTRIBUTE__XML_ID_REF: + setXmlIdRef(XML_ID_REF_EDEFAULT); + return; + case OxmPackage.EXML_ATTRIBUTE__XML_KEY: + setXmlKey(XML_KEY_EDEFAULT); + return; + case OxmPackage.EXML_ATTRIBUTE__XML_LIST: + setXmlList(XML_LIST_EDEFAULT); + return; + case OxmPackage.EXML_ATTRIBUTE__XML_INLINE_BINARY_DATA: + setXmlInlineBinaryData(XML_INLINE_BINARY_DATA_EDEFAULT); + return; + case OxmPackage.EXML_ATTRIBUTE__XML_ATTACHMENT_REF: + setXmlAttachmentRef(XML_ATTACHMENT_REF_EDEFAULT); + return; + case OxmPackage.EXML_ATTRIBUTE__XML_MIME_TYPE: + setXmlMimeType(XML_MIME_TYPE_EDEFAULT); + return; + case OxmPackage.EXML_ATTRIBUTE__XML_PATH: + setXmlPath(XML_PATH_EDEFAULT); + return; + case OxmPackage.EXML_ATTRIBUTE__XML_ABSTRACT_NULL_POLICY: + setXmlAbstractNullPolicy((EAbstractXmlNullPolicy)null); + return; + case OxmPackage.EXML_ATTRIBUTE__XML_SCHEMA_TYPE: + setXmlSchemaType((EXmlSchemaType)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case OxmPackage.EXML_ATTRIBUTE__XML_ACCESS_METHODS: + return xmlAccessMethods != null; + case OxmPackage.EXML_ATTRIBUTE__XML_JAVA_TYPE_ADAPTER: + return xmlJavaTypeAdapter != null; + case OxmPackage.EXML_ATTRIBUTE__CONTAINER_TYPE: + return CONTAINER_TYPE_EDEFAULT == null ? containerType != null : !CONTAINER_TYPE_EDEFAULT.equals(containerType); + case OxmPackage.EXML_ATTRIBUTE__READ_ONLY: + return readOnly != READ_ONLY_EDEFAULT; + case OxmPackage.EXML_ATTRIBUTE__WRITE_ONLY: + return writeOnly != WRITE_ONLY_EDEFAULT; + case OxmPackage.EXML_ATTRIBUTE__TYPE: + return TYPE_EDEFAULT == null ? type != null : !TYPE_EDEFAULT.equals(type); + case OxmPackage.EXML_ATTRIBUTE__XML_PROPERTIES: + return xmlProperties != null && !xmlProperties.isEmpty(); + case OxmPackage.EXML_ATTRIBUTE__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case OxmPackage.EXML_ATTRIBUTE__NAMESPACE: + return NAMESPACE_EDEFAULT == null ? namespace != null : !NAMESPACE_EDEFAULT.equals(namespace); + case OxmPackage.EXML_ATTRIBUTE__REQUIRED: + return required != REQUIRED_EDEFAULT; + case OxmPackage.EXML_ATTRIBUTE__XML_ID: + return xmlId != XML_ID_EDEFAULT; + case OxmPackage.EXML_ATTRIBUTE__XML_ID_REF: + return xmlIdRef != XML_ID_REF_EDEFAULT; + case OxmPackage.EXML_ATTRIBUTE__XML_KEY: + return xmlKey != XML_KEY_EDEFAULT; + case OxmPackage.EXML_ATTRIBUTE__XML_LIST: + return xmlList != XML_LIST_EDEFAULT; + case OxmPackage.EXML_ATTRIBUTE__XML_INLINE_BINARY_DATA: + return xmlInlineBinaryData != XML_INLINE_BINARY_DATA_EDEFAULT; + case OxmPackage.EXML_ATTRIBUTE__XML_ATTACHMENT_REF: + return xmlAttachmentRef != XML_ATTACHMENT_REF_EDEFAULT; + case OxmPackage.EXML_ATTRIBUTE__XML_MIME_TYPE: + return XML_MIME_TYPE_EDEFAULT == null ? xmlMimeType != null : !XML_MIME_TYPE_EDEFAULT.equals(xmlMimeType); + case OxmPackage.EXML_ATTRIBUTE__XML_PATH: + return XML_PATH_EDEFAULT == null ? xmlPath != null : !XML_PATH_EDEFAULT.equals(xmlPath); + case OxmPackage.EXML_ATTRIBUTE__XML_ABSTRACT_NULL_POLICY: + return xmlAbstractNullPolicy != null; + case OxmPackage.EXML_ATTRIBUTE__XML_SCHEMA_TYPE: + return xmlSchemaType != null; + } + return super.eIsSet(featureID); + } + + + /** + * + * + * @generated + */ + @Override + public int eBaseStructuralFeatureID(int derivedFeatureID, Class baseClass) + { + if (baseClass == EAccessibleJavaAttribute.class) + { + switch (derivedFeatureID) + { + case OxmPackage.EXML_ATTRIBUTE__XML_ACCESS_METHODS: return OxmPackage.EACCESSIBLE_JAVA_ATTRIBUTE__XML_ACCESS_METHODS; + default: return -1; + } + } + if (baseClass == EAdaptableJavaAttribute.class) + { + switch (derivedFeatureID) + { + case OxmPackage.EXML_ATTRIBUTE__XML_JAVA_TYPE_ADAPTER: return OxmPackage.EADAPTABLE_JAVA_ATTRIBUTE__XML_JAVA_TYPE_ADAPTER; + default: return -1; + } + } + if (baseClass == EContainerJavaAttribute.class) + { + switch (derivedFeatureID) + { + case OxmPackage.EXML_ATTRIBUTE__CONTAINER_TYPE: return OxmPackage.ECONTAINER_JAVA_ATTRIBUTE__CONTAINER_TYPE; + default: return -1; + } + } + if (baseClass == EReadWriteJavaAttribute.class) + { + switch (derivedFeatureID) + { + case OxmPackage.EXML_ATTRIBUTE__READ_ONLY: return OxmPackage.EREAD_WRITE_JAVA_ATTRIBUTE__READ_ONLY; + case OxmPackage.EXML_ATTRIBUTE__WRITE_ONLY: return OxmPackage.EREAD_WRITE_JAVA_ATTRIBUTE__WRITE_ONLY; + default: return -1; + } + } + if (baseClass == ETypedJavaAttribute.class) + { + switch (derivedFeatureID) + { + case OxmPackage.EXML_ATTRIBUTE__TYPE: return OxmPackage.ETYPED_JAVA_ATTRIBUTE__TYPE; + default: return -1; + } + } + if (baseClass == EPropertyHolder.class) + { + switch (derivedFeatureID) + { + case OxmPackage.EXML_ATTRIBUTE__XML_PROPERTIES: return OxmPackage.EPROPERTY_HOLDER__XML_PROPERTIES; + default: return -1; + } + } + return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); + } + + /** + * + * + * @generated + */ + @Override + public int eDerivedStructuralFeatureID(int baseFeatureID, Class baseClass) + { + if (baseClass == EAccessibleJavaAttribute.class) + { + switch (baseFeatureID) + { + case OxmPackage.EACCESSIBLE_JAVA_ATTRIBUTE__XML_ACCESS_METHODS: return OxmPackage.EXML_ATTRIBUTE__XML_ACCESS_METHODS; + default: return -1; + } + } + if (baseClass == EAdaptableJavaAttribute.class) + { + switch (baseFeatureID) + { + case OxmPackage.EADAPTABLE_JAVA_ATTRIBUTE__XML_JAVA_TYPE_ADAPTER: return OxmPackage.EXML_ATTRIBUTE__XML_JAVA_TYPE_ADAPTER; + default: return -1; + } + } + if (baseClass == EContainerJavaAttribute.class) + { + switch (baseFeatureID) + { + case OxmPackage.ECONTAINER_JAVA_ATTRIBUTE__CONTAINER_TYPE: return OxmPackage.EXML_ATTRIBUTE__CONTAINER_TYPE; + default: return -1; + } + } + if (baseClass == EReadWriteJavaAttribute.class) + { + switch (baseFeatureID) + { + case OxmPackage.EREAD_WRITE_JAVA_ATTRIBUTE__READ_ONLY: return OxmPackage.EXML_ATTRIBUTE__READ_ONLY; + case OxmPackage.EREAD_WRITE_JAVA_ATTRIBUTE__WRITE_ONLY: return OxmPackage.EXML_ATTRIBUTE__WRITE_ONLY; + default: return -1; + } + } + if (baseClass == ETypedJavaAttribute.class) + { + switch (baseFeatureID) + { + case OxmPackage.ETYPED_JAVA_ATTRIBUTE__TYPE: return OxmPackage.EXML_ATTRIBUTE__TYPE; + default: return -1; + } + } + if (baseClass == EPropertyHolder.class) + { + switch (baseFeatureID) + { + case OxmPackage.EPROPERTY_HOLDER__XML_PROPERTIES: return OxmPackage.EXML_ATTRIBUTE__XML_PROPERTIES; + default: return -1; + } + } + return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); + } + + /** + * + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (containerType: "); + result.append(containerType); + result.append(", readOnly: "); + result.append(readOnly); + result.append(", writeOnly: "); + result.append(writeOnly); + result.append(", type: "); + result.append(type); + result.append(", name: "); + result.append(name); + result.append(", namespace: "); + result.append(namespace); + result.append(", required: "); + result.append(required); + result.append(", xmlId: "); + result.append(xmlId); + result.append(", xmlIdRef: "); + result.append(xmlIdRef); + result.append(", xmlKey: "); + result.append(xmlKey); + result.append(", xmlList: "); + result.append(xmlList); + result.append(", xmlInlineBinaryData: "); + result.append(xmlInlineBinaryData); + result.append(", xmlAttachmentRef: "); + result.append(xmlAttachmentRef); + result.append(", xmlMimeType: "); + result.append(xmlMimeType); + result.append(", xmlPath: "); + result.append(xmlPath); + result.append(')'); + return result.toString(); + } + + + // ***** translators ***** + + static class XmlAttributeTranslator + extends AbstractJavaAttributeTranslator { + + XmlAttributeTranslator(String domPathAndName, EStructuralFeature eStructuralFeature) { + super(domPathAndName, eStructuralFeature, buildTranslatorChildren()); + } + + private static Translator[] buildTranslatorChildren() { + return new Translator[] { + new EAbstractXmlNullPolicy.AbstractXmlNullPolicyTranslator() + }; + } + + @Override + public EObject createEMFObject(String nodeName, String readAheadName) { + return OxmFactory.eINSTANCE.createEXmlAttribute(); + } + } +} diff --git a/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlBindings.java b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlBindings.java new file mode 100644 index 0000000000..4a9bdbbf61 --- /dev/null +++ b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlBindings.java @@ -0,0 +1,969 @@ +/******************************************************************************* + * Copyright (c) 2012 Oracle. All rights reserved. + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v1.0, which accompanies this distribution + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Oracle - initial API and implementation + *******************************************************************************/ +package org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm; + +import java.util.Collection; +import org.eclipse.emf.common.notify.Notification; +import java.util.HashMap; +import org.eclipse.core.runtime.content.IContentType; +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.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.jpt.common.core.internal.utility.translators.SimpleRootTranslator; +import org.eclipse.jpt.common.core.resource.xml.ERootObjectImpl; +import org.eclipse.jpt.jaxb.eclipselink.core.internal.plugin.JptJaxbEclipseLinkCorePlugin; +import org.eclipse.wst.common.internal.emf.resource.Translator; + +/** + * + * A representation of the model object 'EXml Bindings'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlBindings#getXmlAccessorType Xml Accessor Type}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlBindings#getXmlAccessorOrder Xml Accessor Order}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlBindings#isXmlMappingMetadataComplete Xml Mapping Metadata Complete}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlBindings#getPackageName Package Name}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlBindings#getXmlNameTransformer Xml Name Transformer}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlBindings#getXmlSchema Xml Schema}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlBindings#getXmlSchemaType Xml Schema Type}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlBindings#getXmlSchemaTypes Xml Schema Types}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlBindings#getXmlJavaTypeAdapters Xml Java Type Adapters}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlBindings#getXmlRegistries Xml Registries}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlBindings#getXmlEnums Xml Enums}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlBindings#getJavaTypes Java Types}
  • + *
+ *

+ * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlBindings() + * @model kind="class" + * @generated + */ +public class EXmlBindings extends ERootObjectImpl +{ + /** + * The default value of the '{@link #getXmlAccessorType() Xml Accessor Type}' attribute. + * + * + * @see #getXmlAccessorType() + * @generated + * @ordered + */ + protected static final EXmlAccessType XML_ACCESSOR_TYPE_EDEFAULT = EXmlAccessType.FIELD; + + + /** + * The cached value of the '{@link #getXmlAccessorType() Xml Accessor Type}' attribute. + * + * + * @see #getXmlAccessorType() + * @generated + * @ordered + */ + protected EXmlAccessType xmlAccessorType = XML_ACCESSOR_TYPE_EDEFAULT; + + + /** + * The default value of the '{@link #getXmlAccessorOrder() Xml Accessor Order}' attribute. + * + * + * @see #getXmlAccessorOrder() + * @generated + * @ordered + */ + protected static final EXmlAccessOrder XML_ACCESSOR_ORDER_EDEFAULT = EXmlAccessOrder.ALPHABETICAL; + + + /** + * The cached value of the '{@link #getXmlAccessorOrder() Xml Accessor Order}' attribute. + * + * + * @see #getXmlAccessorOrder() + * @generated + * @ordered + */ + protected EXmlAccessOrder xmlAccessorOrder = XML_ACCESSOR_ORDER_EDEFAULT; + + + /** + * The default value of the '{@link #isXmlMappingMetadataComplete() Xml Mapping Metadata Complete}' attribute. + * + * + * @see #isXmlMappingMetadataComplete() + * @generated + * @ordered + */ + protected static final boolean XML_MAPPING_METADATA_COMPLETE_EDEFAULT = false; + + + /** + * The cached value of the '{@link #isXmlMappingMetadataComplete() Xml Mapping Metadata Complete}' attribute. + * + * + * @see #isXmlMappingMetadataComplete() + * @generated + * @ordered + */ + protected boolean xmlMappingMetadataComplete = XML_MAPPING_METADATA_COMPLETE_EDEFAULT; + + + /** + * The default value of the '{@link #getPackageName() Package Name}' attribute. + * + * + * @see #getPackageName() + * @generated + * @ordered + */ + protected static final String PACKAGE_NAME_EDEFAULT = null; + + + /** + * The cached value of the '{@link #getPackageName() Package Name}' attribute. + * + * + * @see #getPackageName() + * @generated + * @ordered + */ + protected String packageName = PACKAGE_NAME_EDEFAULT; + + + /** + * The default value of the '{@link #getXmlNameTransformer() Xml Name Transformer}' attribute. + * + * + * @see #getXmlNameTransformer() + * @generated + * @ordered + */ + protected static final String XML_NAME_TRANSFORMER_EDEFAULT = null; + + + /** + * The cached value of the '{@link #getXmlNameTransformer() Xml Name Transformer}' attribute. + * + * + * @see #getXmlNameTransformer() + * @generated + * @ordered + */ + protected String xmlNameTransformer = XML_NAME_TRANSFORMER_EDEFAULT; + + + /** + * The cached value of the '{@link #getXmlSchema() Xml Schema}' containment reference. + * + * + * @see #getXmlSchema() + * @generated + * @ordered + */ + protected EXmlSchema xmlSchema; + + + /** + * The cached value of the '{@link #getXmlSchemaType() Xml Schema Type}' containment reference. + * + * + * @see #getXmlSchemaType() + * @generated + * @ordered + */ + protected EXmlSchemaType xmlSchemaType; + + + /** + * The cached value of the '{@link #getXmlSchemaTypes() Xml Schema Types}' containment reference list. + * + * + * @see #getXmlSchemaTypes() + * @generated + * @ordered + */ + protected EList xmlSchemaTypes; + + + /** + * The cached value of the '{@link #getXmlJavaTypeAdapters() Xml Java Type Adapters}' containment reference list. + * + * + * @see #getXmlJavaTypeAdapters() + * @generated + * @ordered + */ + protected EList xmlJavaTypeAdapters; + + + /** + * The cached value of the '{@link #getXmlRegistries() Xml Registries}' containment reference list. + * + * + * @see #getXmlRegistries() + * @generated + * @ordered + */ + protected EList xmlRegistries; + + + /** + * The cached value of the '{@link #getXmlEnums() Xml Enums}' containment reference list. + * + * + * @see #getXmlEnums() + * @generated + * @ordered + */ + protected EList xmlEnums; + + + /** + * The cached value of the '{@link #getJavaTypes() Java Types}' containment reference list. + * + * + * @see #getJavaTypes() + * @generated + * @ordered + */ + protected EList javaTypes; + + /** + * + * + * @generated + */ + protected EXmlBindings() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return OxmPackage.Literals.EXML_BINDINGS; + } + + /** + * Returns the value of the 'Xml Accessor Type' attribute. + * The literals are from the enumeration {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAccessType}. + * + *

+ * If the meaning of the 'Xml Accessor Type' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Accessor Type' attribute. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAccessType + * @see #setXmlAccessorType(EXmlAccessType) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlBindings_XmlAccessorType() + * @model + * @generated + */ + public EXmlAccessType getXmlAccessorType() + { + return xmlAccessorType; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlBindings#getXmlAccessorType Xml Accessor Type}' attribute. + * + * + * @param value the new value of the 'Xml Accessor Type' attribute. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAccessType + * @see #getXmlAccessorType() + * @generated + */ + public void setXmlAccessorType(EXmlAccessType newXmlAccessorType) + { + EXmlAccessType oldXmlAccessorType = xmlAccessorType; + xmlAccessorType = newXmlAccessorType == null ? XML_ACCESSOR_TYPE_EDEFAULT : newXmlAccessorType; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_BINDINGS__XML_ACCESSOR_TYPE, oldXmlAccessorType, xmlAccessorType)); + } + + /** + * Returns the value of the 'Xml Accessor Order' attribute. + * The literals are from the enumeration {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAccessOrder}. + * + *

+ * If the meaning of the 'Xml Accessor Order' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Accessor Order' attribute. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAccessOrder + * @see #setXmlAccessorOrder(EXmlAccessOrder) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlBindings_XmlAccessorOrder() + * @model + * @generated + */ + public EXmlAccessOrder getXmlAccessorOrder() + { + return xmlAccessorOrder; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlBindings#getXmlAccessorOrder Xml Accessor Order}' attribute. + * + * + * @param value the new value of the 'Xml Accessor Order' attribute. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAccessOrder + * @see #getXmlAccessorOrder() + * @generated + */ + public void setXmlAccessorOrder(EXmlAccessOrder newXmlAccessorOrder) + { + EXmlAccessOrder oldXmlAccessorOrder = xmlAccessorOrder; + xmlAccessorOrder = newXmlAccessorOrder == null ? XML_ACCESSOR_ORDER_EDEFAULT : newXmlAccessorOrder; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_BINDINGS__XML_ACCESSOR_ORDER, oldXmlAccessorOrder, xmlAccessorOrder)); + } + + /** + * Returns the value of the 'Xml Mapping Metadata Complete' attribute. + * + *

+ * If the meaning of the 'Xml Mapping Metadata Complete' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Mapping Metadata Complete' attribute. + * @see #setXmlMappingMetadataComplete(boolean) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlBindings_XmlMappingMetadataComplete() + * @model + * @generated + */ + public boolean isXmlMappingMetadataComplete() + { + return xmlMappingMetadataComplete; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlBindings#isXmlMappingMetadataComplete Xml Mapping Metadata Complete}' attribute. + * + * + * @param value the new value of the 'Xml Mapping Metadata Complete' attribute. + * @see #isXmlMappingMetadataComplete() + * @generated + */ + public void setXmlMappingMetadataComplete(boolean newXmlMappingMetadataComplete) + { + boolean oldXmlMappingMetadataComplete = xmlMappingMetadataComplete; + xmlMappingMetadataComplete = newXmlMappingMetadataComplete; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_BINDINGS__XML_MAPPING_METADATA_COMPLETE, oldXmlMappingMetadataComplete, xmlMappingMetadataComplete)); + } + + /** + * Returns the value of the 'Package Name' attribute. + * + *

+ * If the meaning of the 'Package Name' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Package Name' attribute. + * @see #setPackageName(String) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlBindings_PackageName() + * @model + * @generated + */ + public String getPackageName() + { + return packageName; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlBindings#getPackageName Package Name}' attribute. + * + * + * @param value the new value of the 'Package Name' attribute. + * @see #getPackageName() + * @generated + */ + public void setPackageName(String newPackageName) + { + String oldPackageName = packageName; + packageName = newPackageName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_BINDINGS__PACKAGE_NAME, oldPackageName, packageName)); + } + + /** + * Returns the value of the 'Xml Name Transformer' attribute. + * + *

+ * If the meaning of the 'Xml Name Transformer' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Name Transformer' attribute. + * @see #setXmlNameTransformer(String) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlBindings_XmlNameTransformer() + * @model + * @generated + */ + public String getXmlNameTransformer() + { + return xmlNameTransformer; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlBindings#getXmlNameTransformer Xml Name Transformer}' attribute. + * + * + * @param value the new value of the 'Xml Name Transformer' attribute. + * @see #getXmlNameTransformer() + * @generated + */ + public void setXmlNameTransformer(String newXmlNameTransformer) + { + String oldXmlNameTransformer = xmlNameTransformer; + xmlNameTransformer = newXmlNameTransformer; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_BINDINGS__XML_NAME_TRANSFORMER, oldXmlNameTransformer, xmlNameTransformer)); + } + + /** + * Returns the value of the 'Xml Schema' containment reference. + * + *

+ * If the meaning of the 'Xml Schema' containment reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Schema' containment reference. + * @see #setXmlSchema(EXmlSchema) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlBindings_XmlSchema() + * @model containment="true" + * @generated + */ + public EXmlSchema getXmlSchema() + { + return xmlSchema; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetXmlSchema(EXmlSchema newXmlSchema, NotificationChain msgs) + { + EXmlSchema oldXmlSchema = xmlSchema; + xmlSchema = newXmlSchema; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_BINDINGS__XML_SCHEMA, oldXmlSchema, newXmlSchema); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlBindings#getXmlSchema Xml Schema}' containment reference. + * + * + * @param value the new value of the 'Xml Schema' containment reference. + * @see #getXmlSchema() + * @generated + */ + public void setXmlSchema(EXmlSchema newXmlSchema) + { + if (newXmlSchema != xmlSchema) + { + NotificationChain msgs = null; + if (xmlSchema != null) + msgs = ((InternalEObject)xmlSchema).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OxmPackage.EXML_BINDINGS__XML_SCHEMA, null, msgs); + if (newXmlSchema != null) + msgs = ((InternalEObject)newXmlSchema).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OxmPackage.EXML_BINDINGS__XML_SCHEMA, null, msgs); + msgs = basicSetXmlSchema(newXmlSchema, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_BINDINGS__XML_SCHEMA, newXmlSchema, newXmlSchema)); + } + + /** + * Returns the value of the 'Xml Schema Type' containment reference. + * + *

+ * If the meaning of the 'Xml Schema Type' containment reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Schema Type' containment reference. + * @see #setXmlSchemaType(EXmlSchemaType) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlBindings_XmlSchemaType() + * @model containment="true" + * @generated + */ + public EXmlSchemaType getXmlSchemaType() + { + return xmlSchemaType; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetXmlSchemaType(EXmlSchemaType newXmlSchemaType, NotificationChain msgs) + { + EXmlSchemaType oldXmlSchemaType = xmlSchemaType; + xmlSchemaType = newXmlSchemaType; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_BINDINGS__XML_SCHEMA_TYPE, oldXmlSchemaType, newXmlSchemaType); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlBindings#getXmlSchemaType Xml Schema Type}' containment reference. + * + * + * @param value the new value of the 'Xml Schema Type' containment reference. + * @see #getXmlSchemaType() + * @generated + */ + public void setXmlSchemaType(EXmlSchemaType newXmlSchemaType) + { + if (newXmlSchemaType != xmlSchemaType) + { + NotificationChain msgs = null; + if (xmlSchemaType != null) + msgs = ((InternalEObject)xmlSchemaType).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OxmPackage.EXML_BINDINGS__XML_SCHEMA_TYPE, null, msgs); + if (newXmlSchemaType != null) + msgs = ((InternalEObject)newXmlSchemaType).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OxmPackage.EXML_BINDINGS__XML_SCHEMA_TYPE, null, msgs); + msgs = basicSetXmlSchemaType(newXmlSchemaType, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_BINDINGS__XML_SCHEMA_TYPE, newXmlSchemaType, newXmlSchemaType)); + } + + /** + * Returns the value of the 'Xml Schema Types' containment reference list. + * The list contents are of type {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlSchemaType}. + * + *

+ * If the meaning of the 'Xml Schema Types' containment reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Schema Types' containment reference list. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlBindings_XmlSchemaTypes() + * @model containment="true" + * @generated + */ + public EList getXmlSchemaTypes() + { + if (xmlSchemaTypes == null) + { + xmlSchemaTypes = new EObjectContainmentEList(EXmlSchemaType.class, this, OxmPackage.EXML_BINDINGS__XML_SCHEMA_TYPES); + } + return xmlSchemaTypes; + } + + /** + * Returns the value of the 'Xml Java Type Adapters' containment reference list. + * The list contents are of type {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlJavaTypeAdapter}. + * + *

+ * If the meaning of the 'Xml Java Type Adapters' containment reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Java Type Adapters' containment reference list. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlBindings_XmlJavaTypeAdapters() + * @model containment="true" + * @generated + */ + public EList getXmlJavaTypeAdapters() + { + if (xmlJavaTypeAdapters == null) + { + xmlJavaTypeAdapters = new EObjectContainmentEList(EXmlJavaTypeAdapter.class, this, OxmPackage.EXML_BINDINGS__XML_JAVA_TYPE_ADAPTERS); + } + return xmlJavaTypeAdapters; + } + + /** + * Returns the value of the 'Xml Registries' containment reference list. + * The list contents are of type {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlRegistry}. + * + *

+ * If the meaning of the 'Xml Registries' containment reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Registries' containment reference list. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlBindings_XmlRegistries() + * @model containment="true" + * @generated + */ + public EList getXmlRegistries() + { + if (xmlRegistries == null) + { + xmlRegistries = new EObjectContainmentEList(EXmlRegistry.class, this, OxmPackage.EXML_BINDINGS__XML_REGISTRIES); + } + return xmlRegistries; + } + + /** + * Returns the value of the 'Xml Enums' containment reference list. + * The list contents are of type {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlEnum}. + * + *

+ * If the meaning of the 'Xml Enums' containment reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Enums' containment reference list. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlBindings_XmlEnums() + * @model containment="true" + * @generated + */ + public EList getXmlEnums() + { + if (xmlEnums == null) + { + xmlEnums = new EObjectContainmentEList(EXmlEnum.class, this, OxmPackage.EXML_BINDINGS__XML_ENUMS); + } + return xmlEnums; + } + + /** + * Returns the value of the 'Java Types' containment reference list. + * The list contents are of type {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EJavaType}. + * + *

+ * If the meaning of the 'Java Types' containment reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Java Types' containment reference list. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlBindings_JavaTypes() + * @model containment="true" + * @generated + */ + public EList getJavaTypes() + { + if (javaTypes == null) + { + javaTypes = new EObjectContainmentEList(EJavaType.class, this, OxmPackage.EXML_BINDINGS__JAVA_TYPES); + } + return javaTypes; + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case OxmPackage.EXML_BINDINGS__XML_SCHEMA: + return basicSetXmlSchema(null, msgs); + case OxmPackage.EXML_BINDINGS__XML_SCHEMA_TYPE: + return basicSetXmlSchemaType(null, msgs); + case OxmPackage.EXML_BINDINGS__XML_SCHEMA_TYPES: + return ((InternalEList)getXmlSchemaTypes()).basicRemove(otherEnd, msgs); + case OxmPackage.EXML_BINDINGS__XML_JAVA_TYPE_ADAPTERS: + return ((InternalEList)getXmlJavaTypeAdapters()).basicRemove(otherEnd, msgs); + case OxmPackage.EXML_BINDINGS__XML_REGISTRIES: + return ((InternalEList)getXmlRegistries()).basicRemove(otherEnd, msgs); + case OxmPackage.EXML_BINDINGS__XML_ENUMS: + return ((InternalEList)getXmlEnums()).basicRemove(otherEnd, msgs); + case OxmPackage.EXML_BINDINGS__JAVA_TYPES: + return ((InternalEList)getJavaTypes()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case OxmPackage.EXML_BINDINGS__XML_ACCESSOR_TYPE: + return getXmlAccessorType(); + case OxmPackage.EXML_BINDINGS__XML_ACCESSOR_ORDER: + return getXmlAccessorOrder(); + case OxmPackage.EXML_BINDINGS__XML_MAPPING_METADATA_COMPLETE: + return isXmlMappingMetadataComplete(); + case OxmPackage.EXML_BINDINGS__PACKAGE_NAME: + return getPackageName(); + case OxmPackage.EXML_BINDINGS__XML_NAME_TRANSFORMER: + return getXmlNameTransformer(); + case OxmPackage.EXML_BINDINGS__XML_SCHEMA: + return getXmlSchema(); + case OxmPackage.EXML_BINDINGS__XML_SCHEMA_TYPE: + return getXmlSchemaType(); + case OxmPackage.EXML_BINDINGS__XML_SCHEMA_TYPES: + return getXmlSchemaTypes(); + case OxmPackage.EXML_BINDINGS__XML_JAVA_TYPE_ADAPTERS: + return getXmlJavaTypeAdapters(); + case OxmPackage.EXML_BINDINGS__XML_REGISTRIES: + return getXmlRegistries(); + case OxmPackage.EXML_BINDINGS__XML_ENUMS: + return getXmlEnums(); + case OxmPackage.EXML_BINDINGS__JAVA_TYPES: + return getJavaTypes(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case OxmPackage.EXML_BINDINGS__XML_ACCESSOR_TYPE: + setXmlAccessorType((EXmlAccessType)newValue); + return; + case OxmPackage.EXML_BINDINGS__XML_ACCESSOR_ORDER: + setXmlAccessorOrder((EXmlAccessOrder)newValue); + return; + case OxmPackage.EXML_BINDINGS__XML_MAPPING_METADATA_COMPLETE: + setXmlMappingMetadataComplete((Boolean)newValue); + return; + case OxmPackage.EXML_BINDINGS__PACKAGE_NAME: + setPackageName((String)newValue); + return; + case OxmPackage.EXML_BINDINGS__XML_NAME_TRANSFORMER: + setXmlNameTransformer((String)newValue); + return; + case OxmPackage.EXML_BINDINGS__XML_SCHEMA: + setXmlSchema((EXmlSchema)newValue); + return; + case OxmPackage.EXML_BINDINGS__XML_SCHEMA_TYPE: + setXmlSchemaType((EXmlSchemaType)newValue); + return; + case OxmPackage.EXML_BINDINGS__XML_SCHEMA_TYPES: + getXmlSchemaTypes().clear(); + getXmlSchemaTypes().addAll((Collection)newValue); + return; + case OxmPackage.EXML_BINDINGS__XML_JAVA_TYPE_ADAPTERS: + getXmlJavaTypeAdapters().clear(); + getXmlJavaTypeAdapters().addAll((Collection)newValue); + return; + case OxmPackage.EXML_BINDINGS__XML_REGISTRIES: + getXmlRegistries().clear(); + getXmlRegistries().addAll((Collection)newValue); + return; + case OxmPackage.EXML_BINDINGS__XML_ENUMS: + getXmlEnums().clear(); + getXmlEnums().addAll((Collection)newValue); + return; + case OxmPackage.EXML_BINDINGS__JAVA_TYPES: + getJavaTypes().clear(); + getJavaTypes().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case OxmPackage.EXML_BINDINGS__XML_ACCESSOR_TYPE: + setXmlAccessorType(XML_ACCESSOR_TYPE_EDEFAULT); + return; + case OxmPackage.EXML_BINDINGS__XML_ACCESSOR_ORDER: + setXmlAccessorOrder(XML_ACCESSOR_ORDER_EDEFAULT); + return; + case OxmPackage.EXML_BINDINGS__XML_MAPPING_METADATA_COMPLETE: + setXmlMappingMetadataComplete(XML_MAPPING_METADATA_COMPLETE_EDEFAULT); + return; + case OxmPackage.EXML_BINDINGS__PACKAGE_NAME: + setPackageName(PACKAGE_NAME_EDEFAULT); + return; + case OxmPackage.EXML_BINDINGS__XML_NAME_TRANSFORMER: + setXmlNameTransformer(XML_NAME_TRANSFORMER_EDEFAULT); + return; + case OxmPackage.EXML_BINDINGS__XML_SCHEMA: + setXmlSchema((EXmlSchema)null); + return; + case OxmPackage.EXML_BINDINGS__XML_SCHEMA_TYPE: + setXmlSchemaType((EXmlSchemaType)null); + return; + case OxmPackage.EXML_BINDINGS__XML_SCHEMA_TYPES: + getXmlSchemaTypes().clear(); + return; + case OxmPackage.EXML_BINDINGS__XML_JAVA_TYPE_ADAPTERS: + getXmlJavaTypeAdapters().clear(); + return; + case OxmPackage.EXML_BINDINGS__XML_REGISTRIES: + getXmlRegistries().clear(); + return; + case OxmPackage.EXML_BINDINGS__XML_ENUMS: + getXmlEnums().clear(); + return; + case OxmPackage.EXML_BINDINGS__JAVA_TYPES: + getJavaTypes().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case OxmPackage.EXML_BINDINGS__XML_ACCESSOR_TYPE: + return xmlAccessorType != XML_ACCESSOR_TYPE_EDEFAULT; + case OxmPackage.EXML_BINDINGS__XML_ACCESSOR_ORDER: + return xmlAccessorOrder != XML_ACCESSOR_ORDER_EDEFAULT; + case OxmPackage.EXML_BINDINGS__XML_MAPPING_METADATA_COMPLETE: + return xmlMappingMetadataComplete != XML_MAPPING_METADATA_COMPLETE_EDEFAULT; + case OxmPackage.EXML_BINDINGS__PACKAGE_NAME: + return PACKAGE_NAME_EDEFAULT == null ? packageName != null : !PACKAGE_NAME_EDEFAULT.equals(packageName); + case OxmPackage.EXML_BINDINGS__XML_NAME_TRANSFORMER: + return XML_NAME_TRANSFORMER_EDEFAULT == null ? xmlNameTransformer != null : !XML_NAME_TRANSFORMER_EDEFAULT.equals(xmlNameTransformer); + case OxmPackage.EXML_BINDINGS__XML_SCHEMA: + return xmlSchema != null; + case OxmPackage.EXML_BINDINGS__XML_SCHEMA_TYPE: + return xmlSchemaType != null; + case OxmPackage.EXML_BINDINGS__XML_SCHEMA_TYPES: + return xmlSchemaTypes != null && !xmlSchemaTypes.isEmpty(); + case OxmPackage.EXML_BINDINGS__XML_JAVA_TYPE_ADAPTERS: + return xmlJavaTypeAdapters != null && !xmlJavaTypeAdapters.isEmpty(); + case OxmPackage.EXML_BINDINGS__XML_REGISTRIES: + return xmlRegistries != null && !xmlRegistries.isEmpty(); + case OxmPackage.EXML_BINDINGS__XML_ENUMS: + return xmlEnums != null && !xmlEnums.isEmpty(); + case OxmPackage.EXML_BINDINGS__JAVA_TYPES: + return javaTypes != null && !javaTypes.isEmpty(); + } + return super.eIsSet(featureID); + } + + + /** + * + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (xmlAccessorType: "); + result.append(xmlAccessorType); + result.append(", xmlAccessorOrder: "); + result.append(xmlAccessorOrder); + result.append(", xmlMappingMetadataComplete: "); + result.append(xmlMappingMetadataComplete); + result.append(", packageName: "); + result.append(packageName); + result.append(", xmlNameTransformer: "); + result.append(xmlNameTransformer); + result.append(')'); + return result.toString(); + } + + // ********** version -> schema location mapping ********** + + @Override + protected String getNamespace() { + return EclipseLink.SCHEMA_NAMESPACE; + } + + @Override + protected String getSchemaLocationForVersion(String schemaVersion) { + return SCHEMA_LOCATIONS.get(schemaVersion); + } + + private static HashMap SCHEMA_LOCATIONS = buildSchemaLocations(); + + private static HashMap buildSchemaLocations() { + HashMap map = new HashMap(); + map.put(EclipseLink.SCHEMA_VERSION_2_1, EclipseLink.SCHEMA_LOCATION_2_1); + map.put(EclipseLink.SCHEMA_VERSION_2_2, EclipseLink.SCHEMA_LOCATION_2_2); + map.put(EclipseLink.SCHEMA_VERSION_2_3, EclipseLink.SCHEMA_LOCATION_2_3); + map.put(EclipseLink.SCHEMA_VERSION_2_4, EclipseLink.SCHEMA_LOCATION_2_4); + return map; + } + + + // ********** content type ********** + + /** + * The content type for oxm.xml mapping files. + */ + public static final IContentType CONTENT_TYPE = JptJaxbEclipseLinkCorePlugin.instance().getContentType("oxm"); //$NON-NLS-1$ + + + // ********** translators ********** + + private static final Translator ROOT_TRANSLATOR = buildRootTranslator(); + + public static Translator getRootTranslator() { + return ROOT_TRANSLATOR; + } + + private static Translator buildRootTranslator() { + return new SimpleRootTranslator(EclipseLink.XML_BINDINGS, OxmPackage.eINSTANCE.getEXmlBindings(), buildTranslatorChildren()); + } + + private static Translator[] buildTranslatorChildren() { + return new Translator[] { + buildVersionTranslator(SCHEMA_LOCATIONS), + buildNamespaceTranslator(EclipseLink.SCHEMA_NAMESPACE), + buildSchemaNamespaceTranslator(), + buildSchemaLocationTranslator(EclipseLink.SCHEMA_NAMESPACE, SCHEMA_LOCATIONS), + EJavaType.buildTranslator() + }; + } +} \ No newline at end of file diff --git a/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlClassExtractor.java b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlClassExtractor.java new file mode 100644 index 0000000000..6fa51d0bae --- /dev/null +++ b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlClassExtractor.java @@ -0,0 +1,192 @@ +/** + */ +package org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.jpt.common.core.resource.xml.EBaseObject; +import org.eclipse.jpt.common.core.resource.xml.EBaseObjectImpl; + +/** + * + * A representation of the model object 'EXml Class Extractor'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlClassExtractor#getClassName Class Name}
  • + *
+ *

+ * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlClassExtractor() + * @model kind="class" + * @extends EBaseObject + * @generated + */ +public class EXmlClassExtractor extends EBaseObjectImpl implements EBaseObject +{ + /** + * The default value of the '{@link #getClassName() Class Name}' attribute. + * + * + * @see #getClassName() + * @generated + * @ordered + */ + protected static final String CLASS_NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getClassName() Class Name}' attribute. + * + * + * @see #getClassName() + * @generated + * @ordered + */ + protected String className = CLASS_NAME_EDEFAULT; + + /** + * + * + * @generated + */ + protected EXmlClassExtractor() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return OxmPackage.Literals.EXML_CLASS_EXTRACTOR; + } + + /** + * Returns the value of the 'Class Name' attribute. + * + *

+ * If the meaning of the 'Class Name' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Class Name' attribute. + * @see #setClassName(String) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlClassExtractor_ClassName() + * @model + * @generated + */ + public String getClassName() + { + return className; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlClassExtractor#getClassName Class Name}' attribute. + * + * + * @param value the new value of the 'Class Name' attribute. + * @see #getClassName() + * @generated + */ + public void setClassName(String newClassName) + { + String oldClassName = className; + className = newClassName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_CLASS_EXTRACTOR__CLASS_NAME, oldClassName, className)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case OxmPackage.EXML_CLASS_EXTRACTOR__CLASS_NAME: + return getClassName(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case OxmPackage.EXML_CLASS_EXTRACTOR__CLASS_NAME: + setClassName((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case OxmPackage.EXML_CLASS_EXTRACTOR__CLASS_NAME: + setClassName(CLASS_NAME_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case OxmPackage.EXML_CLASS_EXTRACTOR__CLASS_NAME: + return CLASS_NAME_EDEFAULT == null ? className != null : !CLASS_NAME_EDEFAULT.equals(className); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (className: "); + result.append(className); + result.append(')'); + return result.toString(); + } + +} // EXmlClassExtractor diff --git a/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlElement.java b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlElement.java new file mode 100644 index 0000000000..c9156f3981 --- /dev/null +++ b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlElement.java @@ -0,0 +1,1996 @@ +/******************************************************************************* + * Copyright (c) 2012 Oracle. All rights reserved. + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v1.0, which accompanies this distribution + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Oracle - initial API and implementation + *******************************************************************************/ +package org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm; + +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.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.emf.ecore.EObject; +import org.eclipse.emf.ecore.EStructuralFeature; +import org.eclipse.wst.common.internal.emf.resource.Translator; + +/** + * + * A representation of the model object 'EXml Element'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElement#getName Name}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElement#getNamespace Namespace}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElement#getDefaultValue Default Value}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElement#isNillable Nillable}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElement#isRequired Required}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElement#isXmlId Xml Id}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElement#isXmlIdRef Xml Id Ref}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElement#isXmlKey Xml Key}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElement#isXmlList Xml List}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElement#isXmlInlineBinaryData Xml Inline Binary Data}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElement#isXmlAttachmentRef Xml Attachment Ref}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElement#getXmlMimeType Xml Mime Type}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElement#isCdata Cdata}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElement#getXmlPath Xml Path}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElement#isXmlLocation Xml Location}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElement#getXmlAbstractNullPolicy Xml Abstract Null Policy}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElement#getXmlElementWrapper Xml Element Wrapper}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElement#getXmlMap Xml Map}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElement#getXmlSchemaType Xml Schema Type}
  • + *
+ *

+ * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlElement() + * @model kind="class" + * @generated + */ +public class EXmlElement extends EJavaAttribute implements EAccessibleJavaAttribute, EAdaptableJavaAttribute, EContainerJavaAttribute, EPropertyHolder, EReadWriteJavaAttribute +{ + /** + * The cached value of the '{@link #getXmlAccessMethods() Xml Access Methods}' containment reference. + * + * + * @see #getXmlAccessMethods() + * @generated + * @ordered + */ + protected EXmlAccessMethods xmlAccessMethods; + /** + * The cached value of the '{@link #getXmlJavaTypeAdapter() Xml Java Type Adapter}' containment reference. + * + * + * @see #getXmlJavaTypeAdapter() + * @generated + * @ordered + */ + protected EXmlJavaTypeAdapter xmlJavaTypeAdapter; + /** + * The default value of the '{@link #getContainerType() Container Type}' attribute. + * + * + * @see #getContainerType() + * @generated + * @ordered + */ + protected static final String CONTAINER_TYPE_EDEFAULT = null; + /** + * The cached value of the '{@link #getContainerType() Container Type}' attribute. + * + * + * @see #getContainerType() + * @generated + * @ordered + */ + protected String containerType = CONTAINER_TYPE_EDEFAULT; + /** + * The cached value of the '{@link #getXmlProperties() Xml Properties}' containment reference list. + * + * + * @see #getXmlProperties() + * @generated + * @ordered + */ + protected EList xmlProperties; + /** + * The default value of the '{@link #isReadOnly() Read Only}' attribute. + * + * + * @see #isReadOnly() + * @generated + * @ordered + */ + protected static final boolean READ_ONLY_EDEFAULT = false; + /** + * The cached value of the '{@link #isReadOnly() Read Only}' attribute. + * + * + * @see #isReadOnly() + * @generated + * @ordered + */ + protected boolean readOnly = READ_ONLY_EDEFAULT; + /** + * The default value of the '{@link #isWriteOnly() Write Only}' attribute. + * + * + * @see #isWriteOnly() + * @generated + * @ordered + */ + protected static final boolean WRITE_ONLY_EDEFAULT = false; + /** + * The cached value of the '{@link #isWriteOnly() Write Only}' attribute. + * + * + * @see #isWriteOnly() + * @generated + * @ordered + */ + protected boolean writeOnly = WRITE_ONLY_EDEFAULT; + /** + * The default value of the '{@link #getName() Name}' attribute. + * + * + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + /** + * The cached value of the '{@link #getName() Name}' attribute. + * + * + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + /** + * The default value of the '{@link #getNamespace() Namespace}' attribute. + * + * + * @see #getNamespace() + * @generated + * @ordered + */ + protected static final String NAMESPACE_EDEFAULT = null; + /** + * The cached value of the '{@link #getNamespace() Namespace}' attribute. + * + * + * @see #getNamespace() + * @generated + * @ordered + */ + protected String namespace = NAMESPACE_EDEFAULT; + /** + * The default value of the '{@link #getDefaultValue() Default Value}' attribute. + * + * + * @see #getDefaultValue() + * @generated + * @ordered + */ + protected static final String DEFAULT_VALUE_EDEFAULT = null; + /** + * The cached value of the '{@link #getDefaultValue() Default Value}' attribute. + * + * + * @see #getDefaultValue() + * @generated + * @ordered + */ + protected String defaultValue = DEFAULT_VALUE_EDEFAULT; + /** + * The default value of the '{@link #isNillable() Nillable}' attribute. + * + * + * @see #isNillable() + * @generated + * @ordered + */ + protected static final boolean NILLABLE_EDEFAULT = false; + /** + * The cached value of the '{@link #isNillable() Nillable}' attribute. + * + * + * @see #isNillable() + * @generated + * @ordered + */ + protected boolean nillable = NILLABLE_EDEFAULT; + /** + * The default value of the '{@link #isRequired() Required}' attribute. + * + * + * @see #isRequired() + * @generated + * @ordered + */ + protected static final boolean REQUIRED_EDEFAULT = false; + /** + * The cached value of the '{@link #isRequired() Required}' attribute. + * + * + * @see #isRequired() + * @generated + * @ordered + */ + protected boolean required = REQUIRED_EDEFAULT; + /** + * The default value of the '{@link #isXmlId() Xml Id}' attribute. + * + * + * @see #isXmlId() + * @generated + * @ordered + */ + protected static final boolean XML_ID_EDEFAULT = false; + /** + * The cached value of the '{@link #isXmlId() Xml Id}' attribute. + * + * + * @see #isXmlId() + * @generated + * @ordered + */ + protected boolean xmlId = XML_ID_EDEFAULT; + /** + * The default value of the '{@link #isXmlIdRef() Xml Id Ref}' attribute. + * + * + * @see #isXmlIdRef() + * @generated + * @ordered + */ + protected static final boolean XML_ID_REF_EDEFAULT = false; + /** + * The cached value of the '{@link #isXmlIdRef() Xml Id Ref}' attribute. + * + * + * @see #isXmlIdRef() + * @generated + * @ordered + */ + protected boolean xmlIdRef = XML_ID_REF_EDEFAULT; + /** + * The default value of the '{@link #isXmlKey() Xml Key}' attribute. + * + * + * @see #isXmlKey() + * @generated + * @ordered + */ + protected static final boolean XML_KEY_EDEFAULT = false; + /** + * The cached value of the '{@link #isXmlKey() Xml Key}' attribute. + * + * + * @see #isXmlKey() + * @generated + * @ordered + */ + protected boolean xmlKey = XML_KEY_EDEFAULT; + /** + * The default value of the '{@link #isXmlList() Xml List}' attribute. + * + * + * @see #isXmlList() + * @generated + * @ordered + */ + protected static final boolean XML_LIST_EDEFAULT = false; + /** + * The cached value of the '{@link #isXmlList() Xml List}' attribute. + * + * + * @see #isXmlList() + * @generated + * @ordered + */ + protected boolean xmlList = XML_LIST_EDEFAULT; + /** + * The default value of the '{@link #isXmlInlineBinaryData() Xml Inline Binary Data}' attribute. + * + * + * @see #isXmlInlineBinaryData() + * @generated + * @ordered + */ + protected static final boolean XML_INLINE_BINARY_DATA_EDEFAULT = false; + /** + * The cached value of the '{@link #isXmlInlineBinaryData() Xml Inline Binary Data}' attribute. + * + * + * @see #isXmlInlineBinaryData() + * @generated + * @ordered + */ + protected boolean xmlInlineBinaryData = XML_INLINE_BINARY_DATA_EDEFAULT; + /** + * The default value of the '{@link #isXmlAttachmentRef() Xml Attachment Ref}' attribute. + * + * + * @see #isXmlAttachmentRef() + * @generated + * @ordered + */ + protected static final boolean XML_ATTACHMENT_REF_EDEFAULT = false; + /** + * The cached value of the '{@link #isXmlAttachmentRef() Xml Attachment Ref}' attribute. + * + * + * @see #isXmlAttachmentRef() + * @generated + * @ordered + */ + protected boolean xmlAttachmentRef = XML_ATTACHMENT_REF_EDEFAULT; + /** + * The default value of the '{@link #getXmlMimeType() Xml Mime Type}' attribute. + * + * + * @see #getXmlMimeType() + * @generated + * @ordered + */ + protected static final String XML_MIME_TYPE_EDEFAULT = null; + /** + * The cached value of the '{@link #getXmlMimeType() Xml Mime Type}' attribute. + * + * + * @see #getXmlMimeType() + * @generated + * @ordered + */ + protected String xmlMimeType = XML_MIME_TYPE_EDEFAULT; + /** + * The default value of the '{@link #isCdata() Cdata}' attribute. + * + * + * @see #isCdata() + * @generated + * @ordered + */ + protected static final boolean CDATA_EDEFAULT = false; + /** + * The cached value of the '{@link #isCdata() Cdata}' attribute. + * + * + * @see #isCdata() + * @generated + * @ordered + */ + protected boolean cdata = CDATA_EDEFAULT; + /** + * The default value of the '{@link #getXmlPath() Xml Path}' attribute. + * + * + * @see #getXmlPath() + * @generated + * @ordered + */ + protected static final String XML_PATH_EDEFAULT = null; + /** + * The cached value of the '{@link #getXmlPath() Xml Path}' attribute. + * + * + * @see #getXmlPath() + * @generated + * @ordered + */ + protected String xmlPath = XML_PATH_EDEFAULT; + /** + * The default value of the '{@link #isXmlLocation() Xml Location}' attribute. + * + * + * @see #isXmlLocation() + * @generated + * @ordered + */ + protected static final boolean XML_LOCATION_EDEFAULT = false; + /** + * The cached value of the '{@link #isXmlLocation() Xml Location}' attribute. + * + * + * @see #isXmlLocation() + * @generated + * @ordered + */ + protected boolean xmlLocation = XML_LOCATION_EDEFAULT; + /** + * The cached value of the '{@link #getXmlAbstractNullPolicy() Xml Abstract Null Policy}' containment reference. + * + * + * @see #getXmlAbstractNullPolicy() + * @generated + * @ordered + */ + protected EAbstractXmlNullPolicy xmlAbstractNullPolicy; + /** + * The cached value of the '{@link #getXmlElementWrapper() Xml Element Wrapper}' containment reference. + * + * + * @see #getXmlElementWrapper() + * @generated + * @ordered + */ + protected EXmlElementWrapper xmlElementWrapper; + /** + * The cached value of the '{@link #getXmlMap() Xml Map}' containment reference. + * + * + * @see #getXmlMap() + * @generated + * @ordered + */ + protected EXmlElementWrapper xmlMap; + /** + * The cached value of the '{@link #getXmlSchemaType() Xml Schema Type}' containment reference. + * + * + * @see #getXmlSchemaType() + * @generated + * @ordered + */ + protected EXmlSchemaType xmlSchemaType; + + + /** + * + * + * @generated + */ + protected EXmlElement() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return OxmPackage.Literals.EXML_ELEMENT; + } + + + /** + * Returns the value of the 'Xml Access Methods' containment reference. + * + *

+ * If the meaning of the 'Xml Access Methods' containment reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Access Methods' containment reference. + * @see #setXmlAccessMethods(EXmlAccessMethods) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEAccessibleJavaAttribute_XmlAccessMethods() + * @model containment="true" + * @generated + */ + public EXmlAccessMethods getXmlAccessMethods() + { + return xmlAccessMethods; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetXmlAccessMethods(EXmlAccessMethods newXmlAccessMethods, NotificationChain msgs) + { + EXmlAccessMethods oldXmlAccessMethods = xmlAccessMethods; + xmlAccessMethods = newXmlAccessMethods; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ELEMENT__XML_ACCESS_METHODS, oldXmlAccessMethods, newXmlAccessMethods); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElement#getXmlAccessMethods Xml Access Methods}' containment reference. + * + * + * @param value the new value of the 'Xml Access Methods' containment reference. + * @see #getXmlAccessMethods() + * @generated + */ + public void setXmlAccessMethods(EXmlAccessMethods newXmlAccessMethods) + { + if (newXmlAccessMethods != xmlAccessMethods) + { + NotificationChain msgs = null; + if (xmlAccessMethods != null) + msgs = ((InternalEObject)xmlAccessMethods).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OxmPackage.EXML_ELEMENT__XML_ACCESS_METHODS, null, msgs); + if (newXmlAccessMethods != null) + msgs = ((InternalEObject)newXmlAccessMethods).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OxmPackage.EXML_ELEMENT__XML_ACCESS_METHODS, null, msgs); + msgs = basicSetXmlAccessMethods(newXmlAccessMethods, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ELEMENT__XML_ACCESS_METHODS, newXmlAccessMethods, newXmlAccessMethods)); + } + + /** + * Returns the value of the 'Xml Java Type Adapter' containment reference. + * + *

+ * If the meaning of the 'Xml Java Type Adapter' containment reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Java Type Adapter' containment reference. + * @see #setXmlJavaTypeAdapter(EXmlJavaTypeAdapter) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEAdaptableJavaAttribute_XmlJavaTypeAdapter() + * @model containment="true" + * @generated + */ + public EXmlJavaTypeAdapter getXmlJavaTypeAdapter() + { + return xmlJavaTypeAdapter; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetXmlJavaTypeAdapter(EXmlJavaTypeAdapter newXmlJavaTypeAdapter, NotificationChain msgs) + { + EXmlJavaTypeAdapter oldXmlJavaTypeAdapter = xmlJavaTypeAdapter; + xmlJavaTypeAdapter = newXmlJavaTypeAdapter; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ELEMENT__XML_JAVA_TYPE_ADAPTER, oldXmlJavaTypeAdapter, newXmlJavaTypeAdapter); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElement#getXmlJavaTypeAdapter Xml Java Type Adapter}' containment reference. + * + * + * @param value the new value of the 'Xml Java Type Adapter' containment reference. + * @see #getXmlJavaTypeAdapter() + * @generated + */ + public void setXmlJavaTypeAdapter(EXmlJavaTypeAdapter newXmlJavaTypeAdapter) + { + if (newXmlJavaTypeAdapter != xmlJavaTypeAdapter) + { + NotificationChain msgs = null; + if (xmlJavaTypeAdapter != null) + msgs = ((InternalEObject)xmlJavaTypeAdapter).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OxmPackage.EXML_ELEMENT__XML_JAVA_TYPE_ADAPTER, null, msgs); + if (newXmlJavaTypeAdapter != null) + msgs = ((InternalEObject)newXmlJavaTypeAdapter).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OxmPackage.EXML_ELEMENT__XML_JAVA_TYPE_ADAPTER, null, msgs); + msgs = basicSetXmlJavaTypeAdapter(newXmlJavaTypeAdapter, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ELEMENT__XML_JAVA_TYPE_ADAPTER, newXmlJavaTypeAdapter, newXmlJavaTypeAdapter)); + } + + /** + * Returns the value of the 'Container Type' attribute. + * + *

+ * If the meaning of the 'Container Type' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Container Type' attribute. + * @see #setContainerType(String) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEContainerJavaAttribute_ContainerType() + * @model + * @generated + */ + public String getContainerType() + { + return containerType; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElement#getContainerType Container Type}' attribute. + * + * + * @param value the new value of the 'Container Type' attribute. + * @see #getContainerType() + * @generated + */ + public void setContainerType(String newContainerType) + { + String oldContainerType = containerType; + containerType = newContainerType; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ELEMENT__CONTAINER_TYPE, oldContainerType, containerType)); + } + + /** + * Returns the value of the 'Xml Properties' containment reference list. + * The list contents are of type {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlProperty}. + * + *

+ * If the meaning of the 'Xml Properties' containment reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Properties' containment reference list. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEPropertyHolder_XmlProperties() + * @model containment="true" + * @generated + */ + public EList getXmlProperties() + { + if (xmlProperties == null) + { + xmlProperties = new EObjectContainmentEList(EXmlProperty.class, this, OxmPackage.EXML_ELEMENT__XML_PROPERTIES); + } + return xmlProperties; + } + + /** + * Returns the value of the 'Read Only' attribute. + * + *

+ * If the meaning of the 'Read Only' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Read Only' attribute. + * @see #setReadOnly(boolean) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEReadWriteJavaAttribute_ReadOnly() + * @model + * @generated + */ + public boolean isReadOnly() + { + return readOnly; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElement#isReadOnly Read Only}' attribute. + * + * + * @param value the new value of the 'Read Only' attribute. + * @see #isReadOnly() + * @generated + */ + public void setReadOnly(boolean newReadOnly) + { + boolean oldReadOnly = readOnly; + readOnly = newReadOnly; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ELEMENT__READ_ONLY, oldReadOnly, readOnly)); + } + + /** + * Returns the value of the 'Write Only' attribute. + * + *

+ * If the meaning of the 'Write Only' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Write Only' attribute. + * @see #setWriteOnly(boolean) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEReadWriteJavaAttribute_WriteOnly() + * @model + * @generated + */ + public boolean isWriteOnly() + { + return writeOnly; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElement#isWriteOnly Write Only}' attribute. + * + * + * @param value the new value of the 'Write Only' attribute. + * @see #isWriteOnly() + * @generated + */ + public void setWriteOnly(boolean newWriteOnly) + { + boolean oldWriteOnly = writeOnly; + writeOnly = newWriteOnly; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ELEMENT__WRITE_ONLY, oldWriteOnly, writeOnly)); + } + + /** + * Returns the value of the 'Name' attribute. + * + *

+ * If the meaning of the 'Name' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Name' attribute. + * @see #setName(String) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlElement_Name() + * @model + * @generated + */ + public String getName() + { + return name; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElement#getName Name}' attribute. + * + * + * @param value the new value of the 'Name' attribute. + * @see #getName() + * @generated + */ + public void setName(String newName) + { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ELEMENT__NAME, oldName, name)); + } + + /** + * Returns the value of the 'Namespace' attribute. + * + *

+ * If the meaning of the 'Namespace' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Namespace' attribute. + * @see #setNamespace(String) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlElement_Namespace() + * @model + * @generated + */ + public String getNamespace() + { + return namespace; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElement#getNamespace Namespace}' attribute. + * + * + * @param value the new value of the 'Namespace' attribute. + * @see #getNamespace() + * @generated + */ + public void setNamespace(String newNamespace) + { + String oldNamespace = namespace; + namespace = newNamespace; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ELEMENT__NAMESPACE, oldNamespace, namespace)); + } + + /** + * Returns the value of the 'Default Value' attribute. + * + *

+ * If the meaning of the 'Default Value' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Default Value' attribute. + * @see #setDefaultValue(String) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlElement_DefaultValue() + * @model + * @generated + */ + public String getDefaultValue() + { + return defaultValue; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElement#getDefaultValue Default Value}' attribute. + * + * + * @param value the new value of the 'Default Value' attribute. + * @see #getDefaultValue() + * @generated + */ + public void setDefaultValue(String newDefaultValue) + { + String oldDefaultValue = defaultValue; + defaultValue = newDefaultValue; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ELEMENT__DEFAULT_VALUE, oldDefaultValue, defaultValue)); + } + + /** + * Returns the value of the 'Nillable' attribute. + * + *

+ * If the meaning of the 'Nillable' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Nillable' attribute. + * @see #setNillable(boolean) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlElement_Nillable() + * @model + * @generated + */ + public boolean isNillable() + { + return nillable; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElement#isNillable Nillable}' attribute. + * + * + * @param value the new value of the 'Nillable' attribute. + * @see #isNillable() + * @generated + */ + public void setNillable(boolean newNillable) + { + boolean oldNillable = nillable; + nillable = newNillable; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ELEMENT__NILLABLE, oldNillable, nillable)); + } + + /** + * Returns the value of the 'Required' attribute. + * + *

+ * If the meaning of the 'Required' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Required' attribute. + * @see #setRequired(boolean) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlElement_Required() + * @model + * @generated + */ + public boolean isRequired() + { + return required; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElement#isRequired Required}' attribute. + * + * + * @param value the new value of the 'Required' attribute. + * @see #isRequired() + * @generated + */ + public void setRequired(boolean newRequired) + { + boolean oldRequired = required; + required = newRequired; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ELEMENT__REQUIRED, oldRequired, required)); + } + + /** + * Returns the value of the 'Xml Id' attribute. + * + *

+ * If the meaning of the 'Xml Id' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Id' attribute. + * @see #setXmlId(boolean) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlElement_XmlId() + * @model + * @generated + */ + public boolean isXmlId() + { + return xmlId; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElement#isXmlId Xml Id}' attribute. + * + * + * @param value the new value of the 'Xml Id' attribute. + * @see #isXmlId() + * @generated + */ + public void setXmlId(boolean newXmlId) + { + boolean oldXmlId = xmlId; + xmlId = newXmlId; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ELEMENT__XML_ID, oldXmlId, xmlId)); + } + + /** + * Returns the value of the 'Xml Id Ref' attribute. + * + *

+ * If the meaning of the 'Xml Id Ref' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Id Ref' attribute. + * @see #setXmlIdRef(boolean) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlElement_XmlIdRef() + * @model + * @generated + */ + public boolean isXmlIdRef() + { + return xmlIdRef; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElement#isXmlIdRef Xml Id Ref}' attribute. + * + * + * @param value the new value of the 'Xml Id Ref' attribute. + * @see #isXmlIdRef() + * @generated + */ + public void setXmlIdRef(boolean newXmlIdRef) + { + boolean oldXmlIdRef = xmlIdRef; + xmlIdRef = newXmlIdRef; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ELEMENT__XML_ID_REF, oldXmlIdRef, xmlIdRef)); + } + + /** + * Returns the value of the 'Xml Key' attribute. + * + *

+ * If the meaning of the 'Xml Key' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Key' attribute. + * @see #setXmlKey(boolean) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlElement_XmlKey() + * @model + * @generated + */ + public boolean isXmlKey() + { + return xmlKey; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElement#isXmlKey Xml Key}' attribute. + * + * + * @param value the new value of the 'Xml Key' attribute. + * @see #isXmlKey() + * @generated + */ + public void setXmlKey(boolean newXmlKey) + { + boolean oldXmlKey = xmlKey; + xmlKey = newXmlKey; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ELEMENT__XML_KEY, oldXmlKey, xmlKey)); + } + + /** + * Returns the value of the 'Xml List' attribute. + * + *

+ * If the meaning of the 'Xml List' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml List' attribute. + * @see #setXmlList(boolean) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlElement_XmlList() + * @model + * @generated + */ + public boolean isXmlList() + { + return xmlList; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElement#isXmlList Xml List}' attribute. + * + * + * @param value the new value of the 'Xml List' attribute. + * @see #isXmlList() + * @generated + */ + public void setXmlList(boolean newXmlList) + { + boolean oldXmlList = xmlList; + xmlList = newXmlList; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ELEMENT__XML_LIST, oldXmlList, xmlList)); + } + + /** + * Returns the value of the 'Xml Inline Binary Data' attribute. + * + *

+ * If the meaning of the 'Xml Inline Binary Data' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Inline Binary Data' attribute. + * @see #setXmlInlineBinaryData(boolean) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlElement_XmlInlineBinaryData() + * @model + * @generated + */ + public boolean isXmlInlineBinaryData() + { + return xmlInlineBinaryData; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElement#isXmlInlineBinaryData Xml Inline Binary Data}' attribute. + * + * + * @param value the new value of the 'Xml Inline Binary Data' attribute. + * @see #isXmlInlineBinaryData() + * @generated + */ + public void setXmlInlineBinaryData(boolean newXmlInlineBinaryData) + { + boolean oldXmlInlineBinaryData = xmlInlineBinaryData; + xmlInlineBinaryData = newXmlInlineBinaryData; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ELEMENT__XML_INLINE_BINARY_DATA, oldXmlInlineBinaryData, xmlInlineBinaryData)); + } + + /** + * Returns the value of the 'Xml Attachment Ref' attribute. + * + *

+ * If the meaning of the 'Xml Attachment Ref' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Attachment Ref' attribute. + * @see #setXmlAttachmentRef(boolean) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlElement_XmlAttachmentRef() + * @model + * @generated + */ + public boolean isXmlAttachmentRef() + { + return xmlAttachmentRef; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElement#isXmlAttachmentRef Xml Attachment Ref}' attribute. + * + * + * @param value the new value of the 'Xml Attachment Ref' attribute. + * @see #isXmlAttachmentRef() + * @generated + */ + public void setXmlAttachmentRef(boolean newXmlAttachmentRef) + { + boolean oldXmlAttachmentRef = xmlAttachmentRef; + xmlAttachmentRef = newXmlAttachmentRef; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ELEMENT__XML_ATTACHMENT_REF, oldXmlAttachmentRef, xmlAttachmentRef)); + } + + /** + * Returns the value of the 'Xml Mime Type' attribute. + * + *

+ * If the meaning of the 'Xml Mime Type' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Mime Type' attribute. + * @see #setXmlMimeType(String) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlElement_XmlMimeType() + * @model + * @generated + */ + public String getXmlMimeType() + { + return xmlMimeType; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElement#getXmlMimeType Xml Mime Type}' attribute. + * + * + * @param value the new value of the 'Xml Mime Type' attribute. + * @see #getXmlMimeType() + * @generated + */ + public void setXmlMimeType(String newXmlMimeType) + { + String oldXmlMimeType = xmlMimeType; + xmlMimeType = newXmlMimeType; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ELEMENT__XML_MIME_TYPE, oldXmlMimeType, xmlMimeType)); + } + + /** + * Returns the value of the 'Cdata' attribute. + * + *

+ * If the meaning of the 'Cdata' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Cdata' attribute. + * @see #setCdata(boolean) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlElement_Cdata() + * @model + * @generated + */ + public boolean isCdata() + { + return cdata; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElement#isCdata Cdata}' attribute. + * + * + * @param value the new value of the 'Cdata' attribute. + * @see #isCdata() + * @generated + */ + public void setCdata(boolean newCdata) + { + boolean oldCdata = cdata; + cdata = newCdata; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ELEMENT__CDATA, oldCdata, cdata)); + } + + /** + * Returns the value of the 'Xml Path' attribute. + * + *

+ * If the meaning of the 'Xml Path' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Path' attribute. + * @see #setXmlPath(String) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlElement_XmlPath() + * @model + * @generated + */ + public String getXmlPath() + { + return xmlPath; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElement#getXmlPath Xml Path}' attribute. + * + * + * @param value the new value of the 'Xml Path' attribute. + * @see #getXmlPath() + * @generated + */ + public void setXmlPath(String newXmlPath) + { + String oldXmlPath = xmlPath; + xmlPath = newXmlPath; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ELEMENT__XML_PATH, oldXmlPath, xmlPath)); + } + + /** + * Returns the value of the 'Xml Location' attribute. + * + *

+ * If the meaning of the 'Xml Location' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Location' attribute. + * @see #setXmlLocation(boolean) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlElement_XmlLocation() + * @model + * @generated + */ + public boolean isXmlLocation() + { + return xmlLocation; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElement#isXmlLocation Xml Location}' attribute. + * + * + * @param value the new value of the 'Xml Location' attribute. + * @see #isXmlLocation() + * @generated + */ + public void setXmlLocation(boolean newXmlLocation) + { + boolean oldXmlLocation = xmlLocation; + xmlLocation = newXmlLocation; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ELEMENT__XML_LOCATION, oldXmlLocation, xmlLocation)); + } + + /** + * Returns the value of the 'Xml Abstract Null Policy' containment reference. + * + *

+ * If the meaning of the 'Xml Abstract Null Policy' containment reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Abstract Null Policy' containment reference. + * @see #setXmlAbstractNullPolicy(EAbstractXmlNullPolicy) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlElement_XmlAbstractNullPolicy() + * @model containment="true" + * @generated + */ + public EAbstractXmlNullPolicy getXmlAbstractNullPolicy() + { + return xmlAbstractNullPolicy; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetXmlAbstractNullPolicy(EAbstractXmlNullPolicy newXmlAbstractNullPolicy, NotificationChain msgs) + { + EAbstractXmlNullPolicy oldXmlAbstractNullPolicy = xmlAbstractNullPolicy; + xmlAbstractNullPolicy = newXmlAbstractNullPolicy; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ELEMENT__XML_ABSTRACT_NULL_POLICY, oldXmlAbstractNullPolicy, newXmlAbstractNullPolicy); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElement#getXmlAbstractNullPolicy Xml Abstract Null Policy}' containment reference. + * + * + * @param value the new value of the 'Xml Abstract Null Policy' containment reference. + * @see #getXmlAbstractNullPolicy() + * @generated + */ + public void setXmlAbstractNullPolicy(EAbstractXmlNullPolicy newXmlAbstractNullPolicy) + { + if (newXmlAbstractNullPolicy != xmlAbstractNullPolicy) + { + NotificationChain msgs = null; + if (xmlAbstractNullPolicy != null) + msgs = ((InternalEObject)xmlAbstractNullPolicy).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OxmPackage.EXML_ELEMENT__XML_ABSTRACT_NULL_POLICY, null, msgs); + if (newXmlAbstractNullPolicy != null) + msgs = ((InternalEObject)newXmlAbstractNullPolicy).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OxmPackage.EXML_ELEMENT__XML_ABSTRACT_NULL_POLICY, null, msgs); + msgs = basicSetXmlAbstractNullPolicy(newXmlAbstractNullPolicy, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ELEMENT__XML_ABSTRACT_NULL_POLICY, newXmlAbstractNullPolicy, newXmlAbstractNullPolicy)); + } + + /** + * Returns the value of the 'Xml Element Wrapper' containment reference. + * + *

+ * If the meaning of the 'Xml Element Wrapper' containment reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Element Wrapper' containment reference. + * @see #setXmlElementWrapper(EXmlElementWrapper) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlElement_XmlElementWrapper() + * @model containment="true" + * @generated + */ + public EXmlElementWrapper getXmlElementWrapper() + { + return xmlElementWrapper; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetXmlElementWrapper(EXmlElementWrapper newXmlElementWrapper, NotificationChain msgs) + { + EXmlElementWrapper oldXmlElementWrapper = xmlElementWrapper; + xmlElementWrapper = newXmlElementWrapper; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ELEMENT__XML_ELEMENT_WRAPPER, oldXmlElementWrapper, newXmlElementWrapper); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElement#getXmlElementWrapper Xml Element Wrapper}' containment reference. + * + * + * @param value the new value of the 'Xml Element Wrapper' containment reference. + * @see #getXmlElementWrapper() + * @generated + */ + public void setXmlElementWrapper(EXmlElementWrapper newXmlElementWrapper) + { + if (newXmlElementWrapper != xmlElementWrapper) + { + NotificationChain msgs = null; + if (xmlElementWrapper != null) + msgs = ((InternalEObject)xmlElementWrapper).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OxmPackage.EXML_ELEMENT__XML_ELEMENT_WRAPPER, null, msgs); + if (newXmlElementWrapper != null) + msgs = ((InternalEObject)newXmlElementWrapper).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OxmPackage.EXML_ELEMENT__XML_ELEMENT_WRAPPER, null, msgs); + msgs = basicSetXmlElementWrapper(newXmlElementWrapper, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ELEMENT__XML_ELEMENT_WRAPPER, newXmlElementWrapper, newXmlElementWrapper)); + } + + /** + * Returns the value of the 'Xml Map' containment reference. + * + *

+ * If the meaning of the 'Xml Map' containment reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Map' containment reference. + * @see #setXmlMap(EXmlElementWrapper) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlElement_XmlMap() + * @model containment="true" + * @generated + */ + public EXmlElementWrapper getXmlMap() + { + return xmlMap; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetXmlMap(EXmlElementWrapper newXmlMap, NotificationChain msgs) + { + EXmlElementWrapper oldXmlMap = xmlMap; + xmlMap = newXmlMap; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ELEMENT__XML_MAP, oldXmlMap, newXmlMap); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElement#getXmlMap Xml Map}' containment reference. + * + * + * @param value the new value of the 'Xml Map' containment reference. + * @see #getXmlMap() + * @generated + */ + public void setXmlMap(EXmlElementWrapper newXmlMap) + { + if (newXmlMap != xmlMap) + { + NotificationChain msgs = null; + if (xmlMap != null) + msgs = ((InternalEObject)xmlMap).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OxmPackage.EXML_ELEMENT__XML_MAP, null, msgs); + if (newXmlMap != null) + msgs = ((InternalEObject)newXmlMap).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OxmPackage.EXML_ELEMENT__XML_MAP, null, msgs); + msgs = basicSetXmlMap(newXmlMap, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ELEMENT__XML_MAP, newXmlMap, newXmlMap)); + } + + /** + * Returns the value of the 'Xml Schema Type' containment reference. + * + *

+ * If the meaning of the 'Xml Schema Type' containment reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Schema Type' containment reference. + * @see #setXmlSchemaType(EXmlSchemaType) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlElement_XmlSchemaType() + * @model containment="true" + * @generated + */ + public EXmlSchemaType getXmlSchemaType() + { + return xmlSchemaType; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetXmlSchemaType(EXmlSchemaType newXmlSchemaType, NotificationChain msgs) + { + EXmlSchemaType oldXmlSchemaType = xmlSchemaType; + xmlSchemaType = newXmlSchemaType; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ELEMENT__XML_SCHEMA_TYPE, oldXmlSchemaType, newXmlSchemaType); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElement#getXmlSchemaType Xml Schema Type}' containment reference. + * + * + * @param value the new value of the 'Xml Schema Type' containment reference. + * @see #getXmlSchemaType() + * @generated + */ + public void setXmlSchemaType(EXmlSchemaType newXmlSchemaType) + { + if (newXmlSchemaType != xmlSchemaType) + { + NotificationChain msgs = null; + if (xmlSchemaType != null) + msgs = ((InternalEObject)xmlSchemaType).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OxmPackage.EXML_ELEMENT__XML_SCHEMA_TYPE, null, msgs); + if (newXmlSchemaType != null) + msgs = ((InternalEObject)newXmlSchemaType).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OxmPackage.EXML_ELEMENT__XML_SCHEMA_TYPE, null, msgs); + msgs = basicSetXmlSchemaType(newXmlSchemaType, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ELEMENT__XML_SCHEMA_TYPE, newXmlSchemaType, newXmlSchemaType)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case OxmPackage.EXML_ELEMENT__XML_ACCESS_METHODS: + return basicSetXmlAccessMethods(null, msgs); + case OxmPackage.EXML_ELEMENT__XML_JAVA_TYPE_ADAPTER: + return basicSetXmlJavaTypeAdapter(null, msgs); + case OxmPackage.EXML_ELEMENT__XML_PROPERTIES: + return ((InternalEList)getXmlProperties()).basicRemove(otherEnd, msgs); + case OxmPackage.EXML_ELEMENT__XML_ABSTRACT_NULL_POLICY: + return basicSetXmlAbstractNullPolicy(null, msgs); + case OxmPackage.EXML_ELEMENT__XML_ELEMENT_WRAPPER: + return basicSetXmlElementWrapper(null, msgs); + case OxmPackage.EXML_ELEMENT__XML_MAP: + return basicSetXmlMap(null, msgs); + case OxmPackage.EXML_ELEMENT__XML_SCHEMA_TYPE: + return basicSetXmlSchemaType(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case OxmPackage.EXML_ELEMENT__XML_ACCESS_METHODS: + return getXmlAccessMethods(); + case OxmPackage.EXML_ELEMENT__XML_JAVA_TYPE_ADAPTER: + return getXmlJavaTypeAdapter(); + case OxmPackage.EXML_ELEMENT__CONTAINER_TYPE: + return getContainerType(); + case OxmPackage.EXML_ELEMENT__XML_PROPERTIES: + return getXmlProperties(); + case OxmPackage.EXML_ELEMENT__READ_ONLY: + return isReadOnly(); + case OxmPackage.EXML_ELEMENT__WRITE_ONLY: + return isWriteOnly(); + case OxmPackage.EXML_ELEMENT__NAME: + return getName(); + case OxmPackage.EXML_ELEMENT__NAMESPACE: + return getNamespace(); + case OxmPackage.EXML_ELEMENT__DEFAULT_VALUE: + return getDefaultValue(); + case OxmPackage.EXML_ELEMENT__NILLABLE: + return isNillable(); + case OxmPackage.EXML_ELEMENT__REQUIRED: + return isRequired(); + case OxmPackage.EXML_ELEMENT__XML_ID: + return isXmlId(); + case OxmPackage.EXML_ELEMENT__XML_ID_REF: + return isXmlIdRef(); + case OxmPackage.EXML_ELEMENT__XML_KEY: + return isXmlKey(); + case OxmPackage.EXML_ELEMENT__XML_LIST: + return isXmlList(); + case OxmPackage.EXML_ELEMENT__XML_INLINE_BINARY_DATA: + return isXmlInlineBinaryData(); + case OxmPackage.EXML_ELEMENT__XML_ATTACHMENT_REF: + return isXmlAttachmentRef(); + case OxmPackage.EXML_ELEMENT__XML_MIME_TYPE: + return getXmlMimeType(); + case OxmPackage.EXML_ELEMENT__CDATA: + return isCdata(); + case OxmPackage.EXML_ELEMENT__XML_PATH: + return getXmlPath(); + case OxmPackage.EXML_ELEMENT__XML_LOCATION: + return isXmlLocation(); + case OxmPackage.EXML_ELEMENT__XML_ABSTRACT_NULL_POLICY: + return getXmlAbstractNullPolicy(); + case OxmPackage.EXML_ELEMENT__XML_ELEMENT_WRAPPER: + return getXmlElementWrapper(); + case OxmPackage.EXML_ELEMENT__XML_MAP: + return getXmlMap(); + case OxmPackage.EXML_ELEMENT__XML_SCHEMA_TYPE: + return getXmlSchemaType(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case OxmPackage.EXML_ELEMENT__XML_ACCESS_METHODS: + setXmlAccessMethods((EXmlAccessMethods)newValue); + return; + case OxmPackage.EXML_ELEMENT__XML_JAVA_TYPE_ADAPTER: + setXmlJavaTypeAdapter((EXmlJavaTypeAdapter)newValue); + return; + case OxmPackage.EXML_ELEMENT__CONTAINER_TYPE: + setContainerType((String)newValue); + return; + case OxmPackage.EXML_ELEMENT__XML_PROPERTIES: + getXmlProperties().clear(); + getXmlProperties().addAll((Collection)newValue); + return; + case OxmPackage.EXML_ELEMENT__READ_ONLY: + setReadOnly((Boolean)newValue); + return; + case OxmPackage.EXML_ELEMENT__WRITE_ONLY: + setWriteOnly((Boolean)newValue); + return; + case OxmPackage.EXML_ELEMENT__NAME: + setName((String)newValue); + return; + case OxmPackage.EXML_ELEMENT__NAMESPACE: + setNamespace((String)newValue); + return; + case OxmPackage.EXML_ELEMENT__DEFAULT_VALUE: + setDefaultValue((String)newValue); + return; + case OxmPackage.EXML_ELEMENT__NILLABLE: + setNillable((Boolean)newValue); + return; + case OxmPackage.EXML_ELEMENT__REQUIRED: + setRequired((Boolean)newValue); + return; + case OxmPackage.EXML_ELEMENT__XML_ID: + setXmlId((Boolean)newValue); + return; + case OxmPackage.EXML_ELEMENT__XML_ID_REF: + setXmlIdRef((Boolean)newValue); + return; + case OxmPackage.EXML_ELEMENT__XML_KEY: + setXmlKey((Boolean)newValue); + return; + case OxmPackage.EXML_ELEMENT__XML_LIST: + setXmlList((Boolean)newValue); + return; + case OxmPackage.EXML_ELEMENT__XML_INLINE_BINARY_DATA: + setXmlInlineBinaryData((Boolean)newValue); + return; + case OxmPackage.EXML_ELEMENT__XML_ATTACHMENT_REF: + setXmlAttachmentRef((Boolean)newValue); + return; + case OxmPackage.EXML_ELEMENT__XML_MIME_TYPE: + setXmlMimeType((String)newValue); + return; + case OxmPackage.EXML_ELEMENT__CDATA: + setCdata((Boolean)newValue); + return; + case OxmPackage.EXML_ELEMENT__XML_PATH: + setXmlPath((String)newValue); + return; + case OxmPackage.EXML_ELEMENT__XML_LOCATION: + setXmlLocation((Boolean)newValue); + return; + case OxmPackage.EXML_ELEMENT__XML_ABSTRACT_NULL_POLICY: + setXmlAbstractNullPolicy((EAbstractXmlNullPolicy)newValue); + return; + case OxmPackage.EXML_ELEMENT__XML_ELEMENT_WRAPPER: + setXmlElementWrapper((EXmlElementWrapper)newValue); + return; + case OxmPackage.EXML_ELEMENT__XML_MAP: + setXmlMap((EXmlElementWrapper)newValue); + return; + case OxmPackage.EXML_ELEMENT__XML_SCHEMA_TYPE: + setXmlSchemaType((EXmlSchemaType)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case OxmPackage.EXML_ELEMENT__XML_ACCESS_METHODS: + setXmlAccessMethods((EXmlAccessMethods)null); + return; + case OxmPackage.EXML_ELEMENT__XML_JAVA_TYPE_ADAPTER: + setXmlJavaTypeAdapter((EXmlJavaTypeAdapter)null); + return; + case OxmPackage.EXML_ELEMENT__CONTAINER_TYPE: + setContainerType(CONTAINER_TYPE_EDEFAULT); + return; + case OxmPackage.EXML_ELEMENT__XML_PROPERTIES: + getXmlProperties().clear(); + return; + case OxmPackage.EXML_ELEMENT__READ_ONLY: + setReadOnly(READ_ONLY_EDEFAULT); + return; + case OxmPackage.EXML_ELEMENT__WRITE_ONLY: + setWriteOnly(WRITE_ONLY_EDEFAULT); + return; + case OxmPackage.EXML_ELEMENT__NAME: + setName(NAME_EDEFAULT); + return; + case OxmPackage.EXML_ELEMENT__NAMESPACE: + setNamespace(NAMESPACE_EDEFAULT); + return; + case OxmPackage.EXML_ELEMENT__DEFAULT_VALUE: + setDefaultValue(DEFAULT_VALUE_EDEFAULT); + return; + case OxmPackage.EXML_ELEMENT__NILLABLE: + setNillable(NILLABLE_EDEFAULT); + return; + case OxmPackage.EXML_ELEMENT__REQUIRED: + setRequired(REQUIRED_EDEFAULT); + return; + case OxmPackage.EXML_ELEMENT__XML_ID: + setXmlId(XML_ID_EDEFAULT); + return; + case OxmPackage.EXML_ELEMENT__XML_ID_REF: + setXmlIdRef(XML_ID_REF_EDEFAULT); + return; + case OxmPackage.EXML_ELEMENT__XML_KEY: + setXmlKey(XML_KEY_EDEFAULT); + return; + case OxmPackage.EXML_ELEMENT__XML_LIST: + setXmlList(XML_LIST_EDEFAULT); + return; + case OxmPackage.EXML_ELEMENT__XML_INLINE_BINARY_DATA: + setXmlInlineBinaryData(XML_INLINE_BINARY_DATA_EDEFAULT); + return; + case OxmPackage.EXML_ELEMENT__XML_ATTACHMENT_REF: + setXmlAttachmentRef(XML_ATTACHMENT_REF_EDEFAULT); + return; + case OxmPackage.EXML_ELEMENT__XML_MIME_TYPE: + setXmlMimeType(XML_MIME_TYPE_EDEFAULT); + return; + case OxmPackage.EXML_ELEMENT__CDATA: + setCdata(CDATA_EDEFAULT); + return; + case OxmPackage.EXML_ELEMENT__XML_PATH: + setXmlPath(XML_PATH_EDEFAULT); + return; + case OxmPackage.EXML_ELEMENT__XML_LOCATION: + setXmlLocation(XML_LOCATION_EDEFAULT); + return; + case OxmPackage.EXML_ELEMENT__XML_ABSTRACT_NULL_POLICY: + setXmlAbstractNullPolicy((EAbstractXmlNullPolicy)null); + return; + case OxmPackage.EXML_ELEMENT__XML_ELEMENT_WRAPPER: + setXmlElementWrapper((EXmlElementWrapper)null); + return; + case OxmPackage.EXML_ELEMENT__XML_MAP: + setXmlMap((EXmlElementWrapper)null); + return; + case OxmPackage.EXML_ELEMENT__XML_SCHEMA_TYPE: + setXmlSchemaType((EXmlSchemaType)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case OxmPackage.EXML_ELEMENT__XML_ACCESS_METHODS: + return xmlAccessMethods != null; + case OxmPackage.EXML_ELEMENT__XML_JAVA_TYPE_ADAPTER: + return xmlJavaTypeAdapter != null; + case OxmPackage.EXML_ELEMENT__CONTAINER_TYPE: + return CONTAINER_TYPE_EDEFAULT == null ? containerType != null : !CONTAINER_TYPE_EDEFAULT.equals(containerType); + case OxmPackage.EXML_ELEMENT__XML_PROPERTIES: + return xmlProperties != null && !xmlProperties.isEmpty(); + case OxmPackage.EXML_ELEMENT__READ_ONLY: + return readOnly != READ_ONLY_EDEFAULT; + case OxmPackage.EXML_ELEMENT__WRITE_ONLY: + return writeOnly != WRITE_ONLY_EDEFAULT; + case OxmPackage.EXML_ELEMENT__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case OxmPackage.EXML_ELEMENT__NAMESPACE: + return NAMESPACE_EDEFAULT == null ? namespace != null : !NAMESPACE_EDEFAULT.equals(namespace); + case OxmPackage.EXML_ELEMENT__DEFAULT_VALUE: + return DEFAULT_VALUE_EDEFAULT == null ? defaultValue != null : !DEFAULT_VALUE_EDEFAULT.equals(defaultValue); + case OxmPackage.EXML_ELEMENT__NILLABLE: + return nillable != NILLABLE_EDEFAULT; + case OxmPackage.EXML_ELEMENT__REQUIRED: + return required != REQUIRED_EDEFAULT; + case OxmPackage.EXML_ELEMENT__XML_ID: + return xmlId != XML_ID_EDEFAULT; + case OxmPackage.EXML_ELEMENT__XML_ID_REF: + return xmlIdRef != XML_ID_REF_EDEFAULT; + case OxmPackage.EXML_ELEMENT__XML_KEY: + return xmlKey != XML_KEY_EDEFAULT; + case OxmPackage.EXML_ELEMENT__XML_LIST: + return xmlList != XML_LIST_EDEFAULT; + case OxmPackage.EXML_ELEMENT__XML_INLINE_BINARY_DATA: + return xmlInlineBinaryData != XML_INLINE_BINARY_DATA_EDEFAULT; + case OxmPackage.EXML_ELEMENT__XML_ATTACHMENT_REF: + return xmlAttachmentRef != XML_ATTACHMENT_REF_EDEFAULT; + case OxmPackage.EXML_ELEMENT__XML_MIME_TYPE: + return XML_MIME_TYPE_EDEFAULT == null ? xmlMimeType != null : !XML_MIME_TYPE_EDEFAULT.equals(xmlMimeType); + case OxmPackage.EXML_ELEMENT__CDATA: + return cdata != CDATA_EDEFAULT; + case OxmPackage.EXML_ELEMENT__XML_PATH: + return XML_PATH_EDEFAULT == null ? xmlPath != null : !XML_PATH_EDEFAULT.equals(xmlPath); + case OxmPackage.EXML_ELEMENT__XML_LOCATION: + return xmlLocation != XML_LOCATION_EDEFAULT; + case OxmPackage.EXML_ELEMENT__XML_ABSTRACT_NULL_POLICY: + return xmlAbstractNullPolicy != null; + case OxmPackage.EXML_ELEMENT__XML_ELEMENT_WRAPPER: + return xmlElementWrapper != null; + case OxmPackage.EXML_ELEMENT__XML_MAP: + return xmlMap != null; + case OxmPackage.EXML_ELEMENT__XML_SCHEMA_TYPE: + return xmlSchemaType != null; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public int eBaseStructuralFeatureID(int derivedFeatureID, Class baseClass) + { + if (baseClass == EAccessibleJavaAttribute.class) + { + switch (derivedFeatureID) + { + case OxmPackage.EXML_ELEMENT__XML_ACCESS_METHODS: return OxmPackage.EACCESSIBLE_JAVA_ATTRIBUTE__XML_ACCESS_METHODS; + default: return -1; + } + } + if (baseClass == EAdaptableJavaAttribute.class) + { + switch (derivedFeatureID) + { + case OxmPackage.EXML_ELEMENT__XML_JAVA_TYPE_ADAPTER: return OxmPackage.EADAPTABLE_JAVA_ATTRIBUTE__XML_JAVA_TYPE_ADAPTER; + default: return -1; + } + } + if (baseClass == EContainerJavaAttribute.class) + { + switch (derivedFeatureID) + { + case OxmPackage.EXML_ELEMENT__CONTAINER_TYPE: return OxmPackage.ECONTAINER_JAVA_ATTRIBUTE__CONTAINER_TYPE; + default: return -1; + } + } + if (baseClass == EPropertyHolder.class) + { + switch (derivedFeatureID) + { + case OxmPackage.EXML_ELEMENT__XML_PROPERTIES: return OxmPackage.EPROPERTY_HOLDER__XML_PROPERTIES; + default: return -1; + } + } + if (baseClass == EReadWriteJavaAttribute.class) + { + switch (derivedFeatureID) + { + case OxmPackage.EXML_ELEMENT__READ_ONLY: return OxmPackage.EREAD_WRITE_JAVA_ATTRIBUTE__READ_ONLY; + case OxmPackage.EXML_ELEMENT__WRITE_ONLY: return OxmPackage.EREAD_WRITE_JAVA_ATTRIBUTE__WRITE_ONLY; + default: return -1; + } + } + return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); + } + + /** + * + * + * @generated + */ + @Override + public int eDerivedStructuralFeatureID(int baseFeatureID, Class baseClass) + { + if (baseClass == EAccessibleJavaAttribute.class) + { + switch (baseFeatureID) + { + case OxmPackage.EACCESSIBLE_JAVA_ATTRIBUTE__XML_ACCESS_METHODS: return OxmPackage.EXML_ELEMENT__XML_ACCESS_METHODS; + default: return -1; + } + } + if (baseClass == EAdaptableJavaAttribute.class) + { + switch (baseFeatureID) + { + case OxmPackage.EADAPTABLE_JAVA_ATTRIBUTE__XML_JAVA_TYPE_ADAPTER: return OxmPackage.EXML_ELEMENT__XML_JAVA_TYPE_ADAPTER; + default: return -1; + } + } + if (baseClass == EContainerJavaAttribute.class) + { + switch (baseFeatureID) + { + case OxmPackage.ECONTAINER_JAVA_ATTRIBUTE__CONTAINER_TYPE: return OxmPackage.EXML_ELEMENT__CONTAINER_TYPE; + default: return -1; + } + } + if (baseClass == EPropertyHolder.class) + { + switch (baseFeatureID) + { + case OxmPackage.EPROPERTY_HOLDER__XML_PROPERTIES: return OxmPackage.EXML_ELEMENT__XML_PROPERTIES; + default: return -1; + } + } + if (baseClass == EReadWriteJavaAttribute.class) + { + switch (baseFeatureID) + { + case OxmPackage.EREAD_WRITE_JAVA_ATTRIBUTE__READ_ONLY: return OxmPackage.EXML_ELEMENT__READ_ONLY; + case OxmPackage.EREAD_WRITE_JAVA_ATTRIBUTE__WRITE_ONLY: return OxmPackage.EXML_ELEMENT__WRITE_ONLY; + default: return -1; + } + } + return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); + } + + /** + * + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (containerType: "); + result.append(containerType); + result.append(", readOnly: "); + result.append(readOnly); + result.append(", writeOnly: "); + result.append(writeOnly); + result.append(", name: "); + result.append(name); + result.append(", namespace: "); + result.append(namespace); + result.append(", defaultValue: "); + result.append(defaultValue); + result.append(", nillable: "); + result.append(nillable); + result.append(", required: "); + result.append(required); + result.append(", xmlId: "); + result.append(xmlId); + result.append(", xmlIdRef: "); + result.append(xmlIdRef); + result.append(", xmlKey: "); + result.append(xmlKey); + result.append(", xmlList: "); + result.append(xmlList); + result.append(", xmlInlineBinaryData: "); + result.append(xmlInlineBinaryData); + result.append(", xmlAttachmentRef: "); + result.append(xmlAttachmentRef); + result.append(", xmlMimeType: "); + result.append(xmlMimeType); + result.append(", cdata: "); + result.append(cdata); + result.append(", xmlPath: "); + result.append(xmlPath); + result.append(", xmlLocation: "); + result.append(xmlLocation); + result.append(')'); + return result.toString(); + } + + + // ***** translators ***** + + static class XmlElementTranslator + extends AbstractJavaAttributeTranslator { + + XmlElementTranslator(String domPathAndName, EStructuralFeature eStructuralFeature) { + super(domPathAndName, eStructuralFeature, buildTranslatorChildren()); + } + + private static Translator[] buildTranslatorChildren() { + return new Translator[] { + }; + } + + @Override + public EObject createEMFObject(String nodeName, String readAheadName) { + return OxmFactory.eINSTANCE.createEXmlElement(); + } + } +} diff --git a/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlElementDecl.java b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlElementDecl.java new file mode 100644 index 0000000000..b92d912570 --- /dev/null +++ b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlElementDecl.java @@ -0,0 +1,651 @@ +/** + */ +package org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.jpt.common.core.resource.xml.EBaseObject; +import org.eclipse.jpt.common.core.resource.xml.EBaseObjectImpl; + +/** + * + * A representation of the model object 'EXml Element Decl'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementDecl#getJavaMethod Java Method}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementDecl#getName Name}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementDecl#getNamespace Namespace}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementDecl#getDefaultValue Default Value}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementDecl#getScope Scope}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementDecl#getSubstitutionHeadName Substitution Head Name}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementDecl#getSubstitutionHeadNamespace Substitution Head Namespace}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementDecl#getType Type}
  • + *
+ *

+ * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlElementDecl() + * @model kind="class" + * @extends EBaseObject + * @generated + */ +public class EXmlElementDecl extends EBaseObjectImpl implements EBaseObject +{ + /** + * The default value of the '{@link #getJavaMethod() Java Method}' attribute. + * + * + * @see #getJavaMethod() + * @generated + * @ordered + */ + protected static final String JAVA_METHOD_EDEFAULT = null; + /** + * The cached value of the '{@link #getJavaMethod() Java Method}' attribute. + * + * + * @see #getJavaMethod() + * @generated + * @ordered + */ + protected String javaMethod = JAVA_METHOD_EDEFAULT; + /** + * The default value of the '{@link #getName() Name}' attribute. + * + * + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + /** + * The cached value of the '{@link #getName() Name}' attribute. + * + * + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + /** + * The default value of the '{@link #getNamespace() Namespace}' attribute. + * + * + * @see #getNamespace() + * @generated + * @ordered + */ + protected static final String NAMESPACE_EDEFAULT = null; + /** + * The cached value of the '{@link #getNamespace() Namespace}' attribute. + * + * + * @see #getNamespace() + * @generated + * @ordered + */ + protected String namespace = NAMESPACE_EDEFAULT; + /** + * The default value of the '{@link #getDefaultValue() Default Value}' attribute. + * + * + * @see #getDefaultValue() + * @generated + * @ordered + */ + protected static final String DEFAULT_VALUE_EDEFAULT = null; + /** + * The cached value of the '{@link #getDefaultValue() Default Value}' attribute. + * + * + * @see #getDefaultValue() + * @generated + * @ordered + */ + protected String defaultValue = DEFAULT_VALUE_EDEFAULT; + /** + * The default value of the '{@link #getScope() Scope}' attribute. + * + * + * @see #getScope() + * @generated + * @ordered + */ + protected static final String SCOPE_EDEFAULT = null; + /** + * The cached value of the '{@link #getScope() Scope}' attribute. + * + * + * @see #getScope() + * @generated + * @ordered + */ + protected String scope = SCOPE_EDEFAULT; + /** + * The default value of the '{@link #getSubstitutionHeadName() Substitution Head Name}' attribute. + * + * + * @see #getSubstitutionHeadName() + * @generated + * @ordered + */ + protected static final String SUBSTITUTION_HEAD_NAME_EDEFAULT = null; + /** + * The cached value of the '{@link #getSubstitutionHeadName() Substitution Head Name}' attribute. + * + * + * @see #getSubstitutionHeadName() + * @generated + * @ordered + */ + protected String substitutionHeadName = SUBSTITUTION_HEAD_NAME_EDEFAULT; + /** + * The default value of the '{@link #getSubstitutionHeadNamespace() Substitution Head Namespace}' attribute. + * + * + * @see #getSubstitutionHeadNamespace() + * @generated + * @ordered + */ + protected static final String SUBSTITUTION_HEAD_NAMESPACE_EDEFAULT = null; + /** + * The cached value of the '{@link #getSubstitutionHeadNamespace() Substitution Head Namespace}' attribute. + * + * + * @see #getSubstitutionHeadNamespace() + * @generated + * @ordered + */ + protected String substitutionHeadNamespace = SUBSTITUTION_HEAD_NAMESPACE_EDEFAULT; + /** + * The default value of the '{@link #getType() Type}' attribute. + * + * + * @see #getType() + * @generated + * @ordered + */ + protected static final String TYPE_EDEFAULT = null; + /** + * The cached value of the '{@link #getType() Type}' attribute. + * + * + * @see #getType() + * @generated + * @ordered + */ + protected String type = TYPE_EDEFAULT; + + /** + * + * + * @generated + */ + protected EXmlElementDecl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return OxmPackage.Literals.EXML_ELEMENT_DECL; + } + + /** + * Returns the value of the 'Java Method' attribute. + * + *

+ * If the meaning of the 'Java Method' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Java Method' attribute. + * @see #setJavaMethod(String) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlElementDecl_JavaMethod() + * @model + * @generated + */ + public String getJavaMethod() + { + return javaMethod; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementDecl#getJavaMethod Java Method}' attribute. + * + * + * @param value the new value of the 'Java Method' attribute. + * @see #getJavaMethod() + * @generated + */ + public void setJavaMethod(String newJavaMethod) + { + String oldJavaMethod = javaMethod; + javaMethod = newJavaMethod; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ELEMENT_DECL__JAVA_METHOD, oldJavaMethod, javaMethod)); + } + + /** + * Returns the value of the 'Name' attribute. + * + *

+ * If the meaning of the 'Name' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Name' attribute. + * @see #setName(String) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlElementDecl_Name() + * @model + * @generated + */ + public String getName() + { + return name; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementDecl#getName Name}' attribute. + * + * + * @param value the new value of the 'Name' attribute. + * @see #getName() + * @generated + */ + public void setName(String newName) + { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ELEMENT_DECL__NAME, oldName, name)); + } + + /** + * Returns the value of the 'Namespace' attribute. + * + *

+ * If the meaning of the 'Namespace' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Namespace' attribute. + * @see #setNamespace(String) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlElementDecl_Namespace() + * @model + * @generated + */ + public String getNamespace() + { + return namespace; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementDecl#getNamespace Namespace}' attribute. + * + * + * @param value the new value of the 'Namespace' attribute. + * @see #getNamespace() + * @generated + */ + public void setNamespace(String newNamespace) + { + String oldNamespace = namespace; + namespace = newNamespace; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ELEMENT_DECL__NAMESPACE, oldNamespace, namespace)); + } + + /** + * Returns the value of the 'Default Value' attribute. + * + *

+ * If the meaning of the 'Default Value' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Default Value' attribute. + * @see #setDefaultValue(String) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlElementDecl_DefaultValue() + * @model + * @generated + */ + public String getDefaultValue() + { + return defaultValue; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementDecl#getDefaultValue Default Value}' attribute. + * + * + * @param value the new value of the 'Default Value' attribute. + * @see #getDefaultValue() + * @generated + */ + public void setDefaultValue(String newDefaultValue) + { + String oldDefaultValue = defaultValue; + defaultValue = newDefaultValue; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ELEMENT_DECL__DEFAULT_VALUE, oldDefaultValue, defaultValue)); + } + + /** + * Returns the value of the 'Scope' attribute. + * + *

+ * If the meaning of the 'Scope' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Scope' attribute. + * @see #setScope(String) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlElementDecl_Scope() + * @model + * @generated + */ + public String getScope() + { + return scope; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementDecl#getScope Scope}' attribute. + * + * + * @param value the new value of the 'Scope' attribute. + * @see #getScope() + * @generated + */ + public void setScope(String newScope) + { + String oldScope = scope; + scope = newScope; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ELEMENT_DECL__SCOPE, oldScope, scope)); + } + + /** + * Returns the value of the 'Substitution Head Name' attribute. + * + *

+ * If the meaning of the 'Substitution Head Name' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Substitution Head Name' attribute. + * @see #setSubstitutionHeadName(String) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlElementDecl_SubstitutionHeadName() + * @model + * @generated + */ + public String getSubstitutionHeadName() + { + return substitutionHeadName; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementDecl#getSubstitutionHeadName Substitution Head Name}' attribute. + * + * + * @param value the new value of the 'Substitution Head Name' attribute. + * @see #getSubstitutionHeadName() + * @generated + */ + public void setSubstitutionHeadName(String newSubstitutionHeadName) + { + String oldSubstitutionHeadName = substitutionHeadName; + substitutionHeadName = newSubstitutionHeadName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ELEMENT_DECL__SUBSTITUTION_HEAD_NAME, oldSubstitutionHeadName, substitutionHeadName)); + } + + /** + * Returns the value of the 'Substitution Head Namespace' attribute. + * + *

+ * If the meaning of the 'Substitution Head Namespace' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Substitution Head Namespace' attribute. + * @see #setSubstitutionHeadNamespace(String) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlElementDecl_SubstitutionHeadNamespace() + * @model + * @generated + */ + public String getSubstitutionHeadNamespace() + { + return substitutionHeadNamespace; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementDecl#getSubstitutionHeadNamespace Substitution Head Namespace}' attribute. + * + * + * @param value the new value of the 'Substitution Head Namespace' attribute. + * @see #getSubstitutionHeadNamespace() + * @generated + */ + public void setSubstitutionHeadNamespace(String newSubstitutionHeadNamespace) + { + String oldSubstitutionHeadNamespace = substitutionHeadNamespace; + substitutionHeadNamespace = newSubstitutionHeadNamespace; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ELEMENT_DECL__SUBSTITUTION_HEAD_NAMESPACE, oldSubstitutionHeadNamespace, substitutionHeadNamespace)); + } + + /** + * Returns the value of the 'Type' attribute. + * + *

+ * If the meaning of the 'Type' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Type' attribute. + * @see #setType(String) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlElementDecl_Type() + * @model + * @generated + */ + public String getType() + { + return type; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementDecl#getType Type}' attribute. + * + * + * @param value the new value of the 'Type' attribute. + * @see #getType() + * @generated + */ + public void setType(String newType) + { + String oldType = type; + type = newType; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ELEMENT_DECL__TYPE, oldType, type)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case OxmPackage.EXML_ELEMENT_DECL__JAVA_METHOD: + return getJavaMethod(); + case OxmPackage.EXML_ELEMENT_DECL__NAME: + return getName(); + case OxmPackage.EXML_ELEMENT_DECL__NAMESPACE: + return getNamespace(); + case OxmPackage.EXML_ELEMENT_DECL__DEFAULT_VALUE: + return getDefaultValue(); + case OxmPackage.EXML_ELEMENT_DECL__SCOPE: + return getScope(); + case OxmPackage.EXML_ELEMENT_DECL__SUBSTITUTION_HEAD_NAME: + return getSubstitutionHeadName(); + case OxmPackage.EXML_ELEMENT_DECL__SUBSTITUTION_HEAD_NAMESPACE: + return getSubstitutionHeadNamespace(); + case OxmPackage.EXML_ELEMENT_DECL__TYPE: + return getType(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case OxmPackage.EXML_ELEMENT_DECL__JAVA_METHOD: + setJavaMethod((String)newValue); + return; + case OxmPackage.EXML_ELEMENT_DECL__NAME: + setName((String)newValue); + return; + case OxmPackage.EXML_ELEMENT_DECL__NAMESPACE: + setNamespace((String)newValue); + return; + case OxmPackage.EXML_ELEMENT_DECL__DEFAULT_VALUE: + setDefaultValue((String)newValue); + return; + case OxmPackage.EXML_ELEMENT_DECL__SCOPE: + setScope((String)newValue); + return; + case OxmPackage.EXML_ELEMENT_DECL__SUBSTITUTION_HEAD_NAME: + setSubstitutionHeadName((String)newValue); + return; + case OxmPackage.EXML_ELEMENT_DECL__SUBSTITUTION_HEAD_NAMESPACE: + setSubstitutionHeadNamespace((String)newValue); + return; + case OxmPackage.EXML_ELEMENT_DECL__TYPE: + setType((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case OxmPackage.EXML_ELEMENT_DECL__JAVA_METHOD: + setJavaMethod(JAVA_METHOD_EDEFAULT); + return; + case OxmPackage.EXML_ELEMENT_DECL__NAME: + setName(NAME_EDEFAULT); + return; + case OxmPackage.EXML_ELEMENT_DECL__NAMESPACE: + setNamespace(NAMESPACE_EDEFAULT); + return; + case OxmPackage.EXML_ELEMENT_DECL__DEFAULT_VALUE: + setDefaultValue(DEFAULT_VALUE_EDEFAULT); + return; + case OxmPackage.EXML_ELEMENT_DECL__SCOPE: + setScope(SCOPE_EDEFAULT); + return; + case OxmPackage.EXML_ELEMENT_DECL__SUBSTITUTION_HEAD_NAME: + setSubstitutionHeadName(SUBSTITUTION_HEAD_NAME_EDEFAULT); + return; + case OxmPackage.EXML_ELEMENT_DECL__SUBSTITUTION_HEAD_NAMESPACE: + setSubstitutionHeadNamespace(SUBSTITUTION_HEAD_NAMESPACE_EDEFAULT); + return; + case OxmPackage.EXML_ELEMENT_DECL__TYPE: + setType(TYPE_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case OxmPackage.EXML_ELEMENT_DECL__JAVA_METHOD: + return JAVA_METHOD_EDEFAULT == null ? javaMethod != null : !JAVA_METHOD_EDEFAULT.equals(javaMethod); + case OxmPackage.EXML_ELEMENT_DECL__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case OxmPackage.EXML_ELEMENT_DECL__NAMESPACE: + return NAMESPACE_EDEFAULT == null ? namespace != null : !NAMESPACE_EDEFAULT.equals(namespace); + case OxmPackage.EXML_ELEMENT_DECL__DEFAULT_VALUE: + return DEFAULT_VALUE_EDEFAULT == null ? defaultValue != null : !DEFAULT_VALUE_EDEFAULT.equals(defaultValue); + case OxmPackage.EXML_ELEMENT_DECL__SCOPE: + return SCOPE_EDEFAULT == null ? scope != null : !SCOPE_EDEFAULT.equals(scope); + case OxmPackage.EXML_ELEMENT_DECL__SUBSTITUTION_HEAD_NAME: + return SUBSTITUTION_HEAD_NAME_EDEFAULT == null ? substitutionHeadName != null : !SUBSTITUTION_HEAD_NAME_EDEFAULT.equals(substitutionHeadName); + case OxmPackage.EXML_ELEMENT_DECL__SUBSTITUTION_HEAD_NAMESPACE: + return SUBSTITUTION_HEAD_NAMESPACE_EDEFAULT == null ? substitutionHeadNamespace != null : !SUBSTITUTION_HEAD_NAMESPACE_EDEFAULT.equals(substitutionHeadNamespace); + case OxmPackage.EXML_ELEMENT_DECL__TYPE: + return TYPE_EDEFAULT == null ? type != null : !TYPE_EDEFAULT.equals(type); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (javaMethod: "); + result.append(javaMethod); + result.append(", name: "); + result.append(name); + result.append(", namespace: "); + result.append(namespace); + result.append(", defaultValue: "); + result.append(defaultValue); + result.append(", scope: "); + result.append(scope); + result.append(", substitutionHeadName: "); + result.append(substitutionHeadName); + result.append(", substitutionHeadNamespace: "); + result.append(substitutionHeadNamespace); + result.append(", type: "); + result.append(type); + result.append(')'); + return result.toString(); + } + +} // EXmlElementDecl diff --git a/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlElementRef.java b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlElementRef.java new file mode 100644 index 0000000000..87425ab555 --- /dev/null +++ b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlElementRef.java @@ -0,0 +1,1039 @@ +/******************************************************************************* + * Copyright (c) 2012 Oracle. All rights reserved. + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v1.0, which accompanies this distribution + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Oracle - initial API and implementation + *******************************************************************************/ +package org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm; + +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.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.emf.ecore.EObject; +import org.eclipse.emf.ecore.EStructuralFeature; +import org.eclipse.wst.common.internal.emf.resource.Translator; + +/** + * + * A representation of the model object 'EXml Element Ref'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementRef#getName Name}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementRef#getNamespace Namespace}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementRef#isXmlMixed Xml Mixed}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementRef#getXmlElementWrapper Xml Element Wrapper}
  • + *
+ *

+ * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlElementRef() + * @model kind="class" + * @generated + */ +public class EXmlElementRef extends EJavaAttribute implements EAccessibleJavaAttribute, EAdaptableJavaAttribute, EContainerJavaAttribute, EReadWriteJavaAttribute, ETypedJavaAttribute, EPropertyHolder +{ + /** + * The cached value of the '{@link #getXmlAccessMethods() Xml Access Methods}' containment reference. + * + * + * @see #getXmlAccessMethods() + * @generated + * @ordered + */ + protected EXmlAccessMethods xmlAccessMethods; + /** + * The cached value of the '{@link #getXmlJavaTypeAdapter() Xml Java Type Adapter}' containment reference. + * + * + * @see #getXmlJavaTypeAdapter() + * @generated + * @ordered + */ + protected EXmlJavaTypeAdapter xmlJavaTypeAdapter; + /** + * The default value of the '{@link #getContainerType() Container Type}' attribute. + * + * + * @see #getContainerType() + * @generated + * @ordered + */ + protected static final String CONTAINER_TYPE_EDEFAULT = null; + /** + * The cached value of the '{@link #getContainerType() Container Type}' attribute. + * + * + * @see #getContainerType() + * @generated + * @ordered + */ + protected String containerType = CONTAINER_TYPE_EDEFAULT; + /** + * The default value of the '{@link #isReadOnly() Read Only}' attribute. + * + * + * @see #isReadOnly() + * @generated + * @ordered + */ + protected static final boolean READ_ONLY_EDEFAULT = false; + /** + * The cached value of the '{@link #isReadOnly() Read Only}' attribute. + * + * + * @see #isReadOnly() + * @generated + * @ordered + */ + protected boolean readOnly = READ_ONLY_EDEFAULT; + /** + * The default value of the '{@link #isWriteOnly() Write Only}' attribute. + * + * + * @see #isWriteOnly() + * @generated + * @ordered + */ + protected static final boolean WRITE_ONLY_EDEFAULT = false; + /** + * The cached value of the '{@link #isWriteOnly() Write Only}' attribute. + * + * + * @see #isWriteOnly() + * @generated + * @ordered + */ + protected boolean writeOnly = WRITE_ONLY_EDEFAULT; + /** + * The default value of the '{@link #getType() Type}' attribute. + * + * + * @see #getType() + * @generated + * @ordered + */ + protected static final String TYPE_EDEFAULT = null; + /** + * The cached value of the '{@link #getType() Type}' attribute. + * + * + * @see #getType() + * @generated + * @ordered + */ + protected String type = TYPE_EDEFAULT; + /** + * The cached value of the '{@link #getXmlProperties() Xml Properties}' containment reference list. + * + * + * @see #getXmlProperties() + * @generated + * @ordered + */ + protected EList xmlProperties; + /** + * The default value of the '{@link #getName() Name}' attribute. + * + * + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + /** + * The cached value of the '{@link #getName() Name}' attribute. + * + * + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + /** + * The default value of the '{@link #getNamespace() Namespace}' attribute. + * + * + * @see #getNamespace() + * @generated + * @ordered + */ + protected static final String NAMESPACE_EDEFAULT = null; + /** + * The cached value of the '{@link #getNamespace() Namespace}' attribute. + * + * + * @see #getNamespace() + * @generated + * @ordered + */ + protected String namespace = NAMESPACE_EDEFAULT; + /** + * The default value of the '{@link #isXmlMixed() Xml Mixed}' attribute. + * + * + * @see #isXmlMixed() + * @generated + * @ordered + */ + protected static final boolean XML_MIXED_EDEFAULT = false; + /** + * The cached value of the '{@link #isXmlMixed() Xml Mixed}' attribute. + * + * + * @see #isXmlMixed() + * @generated + * @ordered + */ + protected boolean xmlMixed = XML_MIXED_EDEFAULT; + /** + * The cached value of the '{@link #getXmlElementWrapper() Xml Element Wrapper}' containment reference. + * + * + * @see #getXmlElementWrapper() + * @generated + * @ordered + */ + protected EXmlElementWrapper xmlElementWrapper; + + + /** + * + * + * @generated + */ + protected EXmlElementRef() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return OxmPackage.Literals.EXML_ELEMENT_REF; + } + + + /** + * Returns the value of the 'Xml Access Methods' containment reference. + * + *

+ * If the meaning of the 'Xml Access Methods' containment reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Access Methods' containment reference. + * @see #setXmlAccessMethods(EXmlAccessMethods) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEAccessibleJavaAttribute_XmlAccessMethods() + * @model containment="true" + * @generated + */ + public EXmlAccessMethods getXmlAccessMethods() + { + return xmlAccessMethods; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetXmlAccessMethods(EXmlAccessMethods newXmlAccessMethods, NotificationChain msgs) + { + EXmlAccessMethods oldXmlAccessMethods = xmlAccessMethods; + xmlAccessMethods = newXmlAccessMethods; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ELEMENT_REF__XML_ACCESS_METHODS, oldXmlAccessMethods, newXmlAccessMethods); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementRef#getXmlAccessMethods Xml Access Methods}' containment reference. + * + * + * @param value the new value of the 'Xml Access Methods' containment reference. + * @see #getXmlAccessMethods() + * @generated + */ + public void setXmlAccessMethods(EXmlAccessMethods newXmlAccessMethods) + { + if (newXmlAccessMethods != xmlAccessMethods) + { + NotificationChain msgs = null; + if (xmlAccessMethods != null) + msgs = ((InternalEObject)xmlAccessMethods).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OxmPackage.EXML_ELEMENT_REF__XML_ACCESS_METHODS, null, msgs); + if (newXmlAccessMethods != null) + msgs = ((InternalEObject)newXmlAccessMethods).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OxmPackage.EXML_ELEMENT_REF__XML_ACCESS_METHODS, null, msgs); + msgs = basicSetXmlAccessMethods(newXmlAccessMethods, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ELEMENT_REF__XML_ACCESS_METHODS, newXmlAccessMethods, newXmlAccessMethods)); + } + + /** + * Returns the value of the 'Xml Java Type Adapter' containment reference. + * + *

+ * If the meaning of the 'Xml Java Type Adapter' containment reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Java Type Adapter' containment reference. + * @see #setXmlJavaTypeAdapter(EXmlJavaTypeAdapter) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEAdaptableJavaAttribute_XmlJavaTypeAdapter() + * @model containment="true" + * @generated + */ + public EXmlJavaTypeAdapter getXmlJavaTypeAdapter() + { + return xmlJavaTypeAdapter; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetXmlJavaTypeAdapter(EXmlJavaTypeAdapter newXmlJavaTypeAdapter, NotificationChain msgs) + { + EXmlJavaTypeAdapter oldXmlJavaTypeAdapter = xmlJavaTypeAdapter; + xmlJavaTypeAdapter = newXmlJavaTypeAdapter; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ELEMENT_REF__XML_JAVA_TYPE_ADAPTER, oldXmlJavaTypeAdapter, newXmlJavaTypeAdapter); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementRef#getXmlJavaTypeAdapter Xml Java Type Adapter}' containment reference. + * + * + * @param value the new value of the 'Xml Java Type Adapter' containment reference. + * @see #getXmlJavaTypeAdapter() + * @generated + */ + public void setXmlJavaTypeAdapter(EXmlJavaTypeAdapter newXmlJavaTypeAdapter) + { + if (newXmlJavaTypeAdapter != xmlJavaTypeAdapter) + { + NotificationChain msgs = null; + if (xmlJavaTypeAdapter != null) + msgs = ((InternalEObject)xmlJavaTypeAdapter).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OxmPackage.EXML_ELEMENT_REF__XML_JAVA_TYPE_ADAPTER, null, msgs); + if (newXmlJavaTypeAdapter != null) + msgs = ((InternalEObject)newXmlJavaTypeAdapter).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OxmPackage.EXML_ELEMENT_REF__XML_JAVA_TYPE_ADAPTER, null, msgs); + msgs = basicSetXmlJavaTypeAdapter(newXmlJavaTypeAdapter, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ELEMENT_REF__XML_JAVA_TYPE_ADAPTER, newXmlJavaTypeAdapter, newXmlJavaTypeAdapter)); + } + + /** + * Returns the value of the 'Container Type' attribute. + * + *

+ * If the meaning of the 'Container Type' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Container Type' attribute. + * @see #setContainerType(String) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEContainerJavaAttribute_ContainerType() + * @model + * @generated + */ + public String getContainerType() + { + return containerType; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementRef#getContainerType Container Type}' attribute. + * + * + * @param value the new value of the 'Container Type' attribute. + * @see #getContainerType() + * @generated + */ + public void setContainerType(String newContainerType) + { + String oldContainerType = containerType; + containerType = newContainerType; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ELEMENT_REF__CONTAINER_TYPE, oldContainerType, containerType)); + } + + /** + * Returns the value of the 'Read Only' attribute. + * + *

+ * If the meaning of the 'Read Only' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Read Only' attribute. + * @see #setReadOnly(boolean) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEReadWriteJavaAttribute_ReadOnly() + * @model + * @generated + */ + public boolean isReadOnly() + { + return readOnly; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementRef#isReadOnly Read Only}' attribute. + * + * + * @param value the new value of the 'Read Only' attribute. + * @see #isReadOnly() + * @generated + */ + public void setReadOnly(boolean newReadOnly) + { + boolean oldReadOnly = readOnly; + readOnly = newReadOnly; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ELEMENT_REF__READ_ONLY, oldReadOnly, readOnly)); + } + + /** + * Returns the value of the 'Write Only' attribute. + * + *

+ * If the meaning of the 'Write Only' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Write Only' attribute. + * @see #setWriteOnly(boolean) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEReadWriteJavaAttribute_WriteOnly() + * @model + * @generated + */ + public boolean isWriteOnly() + { + return writeOnly; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementRef#isWriteOnly Write Only}' attribute. + * + * + * @param value the new value of the 'Write Only' attribute. + * @see #isWriteOnly() + * @generated + */ + public void setWriteOnly(boolean newWriteOnly) + { + boolean oldWriteOnly = writeOnly; + writeOnly = newWriteOnly; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ELEMENT_REF__WRITE_ONLY, oldWriteOnly, writeOnly)); + } + + /** + * Returns the value of the 'Type' attribute. + * + *

+ * If the meaning of the 'Type' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Type' attribute. + * @see #setType(String) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getETypedJavaAttribute_Type() + * @model + * @generated + */ + public String getType() + { + return type; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementRef#getType Type}' attribute. + * + * + * @param value the new value of the 'Type' attribute. + * @see #getType() + * @generated + */ + public void setType(String newType) + { + String oldType = type; + type = newType; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ELEMENT_REF__TYPE, oldType, type)); + } + + /** + * Returns the value of the 'Xml Properties' containment reference list. + * The list contents are of type {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlProperty}. + * + *

+ * If the meaning of the 'Xml Properties' containment reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Properties' containment reference list. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEPropertyHolder_XmlProperties() + * @model containment="true" + * @generated + */ + public EList getXmlProperties() + { + if (xmlProperties == null) + { + xmlProperties = new EObjectContainmentEList(EXmlProperty.class, this, OxmPackage.EXML_ELEMENT_REF__XML_PROPERTIES); + } + return xmlProperties; + } + + /** + * Returns the value of the 'Name' attribute. + * + *

+ * If the meaning of the 'Name' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Name' attribute. + * @see #setName(String) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlElementRef_Name() + * @model + * @generated + */ + public String getName() + { + return name; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementRef#getName Name}' attribute. + * + * + * @param value the new value of the 'Name' attribute. + * @see #getName() + * @generated + */ + public void setName(String newName) + { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ELEMENT_REF__NAME, oldName, name)); + } + + /** + * Returns the value of the 'Namespace' attribute. + * + *

+ * If the meaning of the 'Namespace' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Namespace' attribute. + * @see #setNamespace(String) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlElementRef_Namespace() + * @model + * @generated + */ + public String getNamespace() + { + return namespace; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementRef#getNamespace Namespace}' attribute. + * + * + * @param value the new value of the 'Namespace' attribute. + * @see #getNamespace() + * @generated + */ + public void setNamespace(String newNamespace) + { + String oldNamespace = namespace; + namespace = newNamespace; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ELEMENT_REF__NAMESPACE, oldNamespace, namespace)); + } + + /** + * Returns the value of the 'Xml Mixed' attribute. + * + *

+ * If the meaning of the 'Xml Mixed' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Mixed' attribute. + * @see #setXmlMixed(boolean) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlElementRef_XmlMixed() + * @model + * @generated + */ + public boolean isXmlMixed() + { + return xmlMixed; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementRef#isXmlMixed Xml Mixed}' attribute. + * + * + * @param value the new value of the 'Xml Mixed' attribute. + * @see #isXmlMixed() + * @generated + */ + public void setXmlMixed(boolean newXmlMixed) + { + boolean oldXmlMixed = xmlMixed; + xmlMixed = newXmlMixed; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ELEMENT_REF__XML_MIXED, oldXmlMixed, xmlMixed)); + } + + /** + * Returns the value of the 'Xml Element Wrapper' containment reference. + * + *

+ * If the meaning of the 'Xml Element Wrapper' containment reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Element Wrapper' containment reference. + * @see #setXmlElementWrapper(EXmlElementWrapper) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlElementRef_XmlElementWrapper() + * @model containment="true" + * @generated + */ + public EXmlElementWrapper getXmlElementWrapper() + { + return xmlElementWrapper; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetXmlElementWrapper(EXmlElementWrapper newXmlElementWrapper, NotificationChain msgs) + { + EXmlElementWrapper oldXmlElementWrapper = xmlElementWrapper; + xmlElementWrapper = newXmlElementWrapper; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ELEMENT_REF__XML_ELEMENT_WRAPPER, oldXmlElementWrapper, newXmlElementWrapper); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementRef#getXmlElementWrapper Xml Element Wrapper}' containment reference. + * + * + * @param value the new value of the 'Xml Element Wrapper' containment reference. + * @see #getXmlElementWrapper() + * @generated + */ + public void setXmlElementWrapper(EXmlElementWrapper newXmlElementWrapper) + { + if (newXmlElementWrapper != xmlElementWrapper) + { + NotificationChain msgs = null; + if (xmlElementWrapper != null) + msgs = ((InternalEObject)xmlElementWrapper).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OxmPackage.EXML_ELEMENT_REF__XML_ELEMENT_WRAPPER, null, msgs); + if (newXmlElementWrapper != null) + msgs = ((InternalEObject)newXmlElementWrapper).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OxmPackage.EXML_ELEMENT_REF__XML_ELEMENT_WRAPPER, null, msgs); + msgs = basicSetXmlElementWrapper(newXmlElementWrapper, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ELEMENT_REF__XML_ELEMENT_WRAPPER, newXmlElementWrapper, newXmlElementWrapper)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case OxmPackage.EXML_ELEMENT_REF__XML_ACCESS_METHODS: + return basicSetXmlAccessMethods(null, msgs); + case OxmPackage.EXML_ELEMENT_REF__XML_JAVA_TYPE_ADAPTER: + return basicSetXmlJavaTypeAdapter(null, msgs); + case OxmPackage.EXML_ELEMENT_REF__XML_PROPERTIES: + return ((InternalEList)getXmlProperties()).basicRemove(otherEnd, msgs); + case OxmPackage.EXML_ELEMENT_REF__XML_ELEMENT_WRAPPER: + return basicSetXmlElementWrapper(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case OxmPackage.EXML_ELEMENT_REF__XML_ACCESS_METHODS: + return getXmlAccessMethods(); + case OxmPackage.EXML_ELEMENT_REF__XML_JAVA_TYPE_ADAPTER: + return getXmlJavaTypeAdapter(); + case OxmPackage.EXML_ELEMENT_REF__CONTAINER_TYPE: + return getContainerType(); + case OxmPackage.EXML_ELEMENT_REF__READ_ONLY: + return isReadOnly(); + case OxmPackage.EXML_ELEMENT_REF__WRITE_ONLY: + return isWriteOnly(); + case OxmPackage.EXML_ELEMENT_REF__TYPE: + return getType(); + case OxmPackage.EXML_ELEMENT_REF__XML_PROPERTIES: + return getXmlProperties(); + case OxmPackage.EXML_ELEMENT_REF__NAME: + return getName(); + case OxmPackage.EXML_ELEMENT_REF__NAMESPACE: + return getNamespace(); + case OxmPackage.EXML_ELEMENT_REF__XML_MIXED: + return isXmlMixed(); + case OxmPackage.EXML_ELEMENT_REF__XML_ELEMENT_WRAPPER: + return getXmlElementWrapper(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case OxmPackage.EXML_ELEMENT_REF__XML_ACCESS_METHODS: + setXmlAccessMethods((EXmlAccessMethods)newValue); + return; + case OxmPackage.EXML_ELEMENT_REF__XML_JAVA_TYPE_ADAPTER: + setXmlJavaTypeAdapter((EXmlJavaTypeAdapter)newValue); + return; + case OxmPackage.EXML_ELEMENT_REF__CONTAINER_TYPE: + setContainerType((String)newValue); + return; + case OxmPackage.EXML_ELEMENT_REF__READ_ONLY: + setReadOnly((Boolean)newValue); + return; + case OxmPackage.EXML_ELEMENT_REF__WRITE_ONLY: + setWriteOnly((Boolean)newValue); + return; + case OxmPackage.EXML_ELEMENT_REF__TYPE: + setType((String)newValue); + return; + case OxmPackage.EXML_ELEMENT_REF__XML_PROPERTIES: + getXmlProperties().clear(); + getXmlProperties().addAll((Collection)newValue); + return; + case OxmPackage.EXML_ELEMENT_REF__NAME: + setName((String)newValue); + return; + case OxmPackage.EXML_ELEMENT_REF__NAMESPACE: + setNamespace((String)newValue); + return; + case OxmPackage.EXML_ELEMENT_REF__XML_MIXED: + setXmlMixed((Boolean)newValue); + return; + case OxmPackage.EXML_ELEMENT_REF__XML_ELEMENT_WRAPPER: + setXmlElementWrapper((EXmlElementWrapper)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case OxmPackage.EXML_ELEMENT_REF__XML_ACCESS_METHODS: + setXmlAccessMethods((EXmlAccessMethods)null); + return; + case OxmPackage.EXML_ELEMENT_REF__XML_JAVA_TYPE_ADAPTER: + setXmlJavaTypeAdapter((EXmlJavaTypeAdapter)null); + return; + case OxmPackage.EXML_ELEMENT_REF__CONTAINER_TYPE: + setContainerType(CONTAINER_TYPE_EDEFAULT); + return; + case OxmPackage.EXML_ELEMENT_REF__READ_ONLY: + setReadOnly(READ_ONLY_EDEFAULT); + return; + case OxmPackage.EXML_ELEMENT_REF__WRITE_ONLY: + setWriteOnly(WRITE_ONLY_EDEFAULT); + return; + case OxmPackage.EXML_ELEMENT_REF__TYPE: + setType(TYPE_EDEFAULT); + return; + case OxmPackage.EXML_ELEMENT_REF__XML_PROPERTIES: + getXmlProperties().clear(); + return; + case OxmPackage.EXML_ELEMENT_REF__NAME: + setName(NAME_EDEFAULT); + return; + case OxmPackage.EXML_ELEMENT_REF__NAMESPACE: + setNamespace(NAMESPACE_EDEFAULT); + return; + case OxmPackage.EXML_ELEMENT_REF__XML_MIXED: + setXmlMixed(XML_MIXED_EDEFAULT); + return; + case OxmPackage.EXML_ELEMENT_REF__XML_ELEMENT_WRAPPER: + setXmlElementWrapper((EXmlElementWrapper)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case OxmPackage.EXML_ELEMENT_REF__XML_ACCESS_METHODS: + return xmlAccessMethods != null; + case OxmPackage.EXML_ELEMENT_REF__XML_JAVA_TYPE_ADAPTER: + return xmlJavaTypeAdapter != null; + case OxmPackage.EXML_ELEMENT_REF__CONTAINER_TYPE: + return CONTAINER_TYPE_EDEFAULT == null ? containerType != null : !CONTAINER_TYPE_EDEFAULT.equals(containerType); + case OxmPackage.EXML_ELEMENT_REF__READ_ONLY: + return readOnly != READ_ONLY_EDEFAULT; + case OxmPackage.EXML_ELEMENT_REF__WRITE_ONLY: + return writeOnly != WRITE_ONLY_EDEFAULT; + case OxmPackage.EXML_ELEMENT_REF__TYPE: + return TYPE_EDEFAULT == null ? type != null : !TYPE_EDEFAULT.equals(type); + case OxmPackage.EXML_ELEMENT_REF__XML_PROPERTIES: + return xmlProperties != null && !xmlProperties.isEmpty(); + case OxmPackage.EXML_ELEMENT_REF__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case OxmPackage.EXML_ELEMENT_REF__NAMESPACE: + return NAMESPACE_EDEFAULT == null ? namespace != null : !NAMESPACE_EDEFAULT.equals(namespace); + case OxmPackage.EXML_ELEMENT_REF__XML_MIXED: + return xmlMixed != XML_MIXED_EDEFAULT; + case OxmPackage.EXML_ELEMENT_REF__XML_ELEMENT_WRAPPER: + return xmlElementWrapper != null; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public int eBaseStructuralFeatureID(int derivedFeatureID, Class baseClass) + { + if (baseClass == EAccessibleJavaAttribute.class) + { + switch (derivedFeatureID) + { + case OxmPackage.EXML_ELEMENT_REF__XML_ACCESS_METHODS: return OxmPackage.EACCESSIBLE_JAVA_ATTRIBUTE__XML_ACCESS_METHODS; + default: return -1; + } + } + if (baseClass == EAdaptableJavaAttribute.class) + { + switch (derivedFeatureID) + { + case OxmPackage.EXML_ELEMENT_REF__XML_JAVA_TYPE_ADAPTER: return OxmPackage.EADAPTABLE_JAVA_ATTRIBUTE__XML_JAVA_TYPE_ADAPTER; + default: return -1; + } + } + if (baseClass == EContainerJavaAttribute.class) + { + switch (derivedFeatureID) + { + case OxmPackage.EXML_ELEMENT_REF__CONTAINER_TYPE: return OxmPackage.ECONTAINER_JAVA_ATTRIBUTE__CONTAINER_TYPE; + default: return -1; + } + } + if (baseClass == EReadWriteJavaAttribute.class) + { + switch (derivedFeatureID) + { + case OxmPackage.EXML_ELEMENT_REF__READ_ONLY: return OxmPackage.EREAD_WRITE_JAVA_ATTRIBUTE__READ_ONLY; + case OxmPackage.EXML_ELEMENT_REF__WRITE_ONLY: return OxmPackage.EREAD_WRITE_JAVA_ATTRIBUTE__WRITE_ONLY; + default: return -1; + } + } + if (baseClass == ETypedJavaAttribute.class) + { + switch (derivedFeatureID) + { + case OxmPackage.EXML_ELEMENT_REF__TYPE: return OxmPackage.ETYPED_JAVA_ATTRIBUTE__TYPE; + default: return -1; + } + } + if (baseClass == EPropertyHolder.class) + { + switch (derivedFeatureID) + { + case OxmPackage.EXML_ELEMENT_REF__XML_PROPERTIES: return OxmPackage.EPROPERTY_HOLDER__XML_PROPERTIES; + default: return -1; + } + } + return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); + } + + /** + * + * + * @generated + */ + @Override + public int eDerivedStructuralFeatureID(int baseFeatureID, Class baseClass) + { + if (baseClass == EAccessibleJavaAttribute.class) + { + switch (baseFeatureID) + { + case OxmPackage.EACCESSIBLE_JAVA_ATTRIBUTE__XML_ACCESS_METHODS: return OxmPackage.EXML_ELEMENT_REF__XML_ACCESS_METHODS; + default: return -1; + } + } + if (baseClass == EAdaptableJavaAttribute.class) + { + switch (baseFeatureID) + { + case OxmPackage.EADAPTABLE_JAVA_ATTRIBUTE__XML_JAVA_TYPE_ADAPTER: return OxmPackage.EXML_ELEMENT_REF__XML_JAVA_TYPE_ADAPTER; + default: return -1; + } + } + if (baseClass == EContainerJavaAttribute.class) + { + switch (baseFeatureID) + { + case OxmPackage.ECONTAINER_JAVA_ATTRIBUTE__CONTAINER_TYPE: return OxmPackage.EXML_ELEMENT_REF__CONTAINER_TYPE; + default: return -1; + } + } + if (baseClass == EReadWriteJavaAttribute.class) + { + switch (baseFeatureID) + { + case OxmPackage.EREAD_WRITE_JAVA_ATTRIBUTE__READ_ONLY: return OxmPackage.EXML_ELEMENT_REF__READ_ONLY; + case OxmPackage.EREAD_WRITE_JAVA_ATTRIBUTE__WRITE_ONLY: return OxmPackage.EXML_ELEMENT_REF__WRITE_ONLY; + default: return -1; + } + } + if (baseClass == ETypedJavaAttribute.class) + { + switch (baseFeatureID) + { + case OxmPackage.ETYPED_JAVA_ATTRIBUTE__TYPE: return OxmPackage.EXML_ELEMENT_REF__TYPE; + default: return -1; + } + } + if (baseClass == EPropertyHolder.class) + { + switch (baseFeatureID) + { + case OxmPackage.EPROPERTY_HOLDER__XML_PROPERTIES: return OxmPackage.EXML_ELEMENT_REF__XML_PROPERTIES; + default: return -1; + } + } + return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); + } + + /** + * + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (containerType: "); + result.append(containerType); + result.append(", readOnly: "); + result.append(readOnly); + result.append(", writeOnly: "); + result.append(writeOnly); + result.append(", type: "); + result.append(type); + result.append(", name: "); + result.append(name); + result.append(", namespace: "); + result.append(namespace); + result.append(", xmlMixed: "); + result.append(xmlMixed); + result.append(')'); + return result.toString(); + } + + + // ***** translators ***** + + static class XmlElementRefTranslator + extends AbstractJavaAttributeTranslator { + + XmlElementRefTranslator(String domPathAndName, EStructuralFeature eStructuralFeature) { + super(domPathAndName, eStructuralFeature, buildTranslatorChildren()); + } + + private static Translator[] buildTranslatorChildren() { + return new Translator[] { + }; + } + + @Override + public EObject createEMFObject(String nodeName, String readAheadName) { + return OxmFactory.eINSTANCE.createEXmlElementRef(); + } + } +} diff --git a/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlElementRefs.java b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlElementRefs.java new file mode 100644 index 0000000000..af98164163 --- /dev/null +++ b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlElementRefs.java @@ -0,0 +1,791 @@ +/******************************************************************************* + * Copyright (c) 2012 Oracle. All rights reserved. + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v1.0, which accompanies this distribution + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Oracle - initial API and implementation + *******************************************************************************/ +package org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm; + +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.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.emf.ecore.EObject; +import org.eclipse.emf.ecore.EStructuralFeature; +import org.eclipse.wst.common.internal.emf.resource.Translator; + +/** + * + * A representation of the model object 'EXml Element Refs'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementRefs#isXmlMixed Xml Mixed}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementRefs#getXmlElementRefs Xml Element Refs}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementRefs#getXmlElementWrapper Xml Element Wrapper}
  • + *
+ *

+ * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlElementRefs() + * @model kind="class" + * @generated + */ +public class EXmlElementRefs extends EJavaAttribute implements EAccessibleJavaAttribute, EAdaptableJavaAttribute, EReadWriteJavaAttribute, EPropertyHolder +{ + /** + * The cached value of the '{@link #getXmlAccessMethods() Xml Access Methods}' containment reference. + * + * + * @see #getXmlAccessMethods() + * @generated + * @ordered + */ + protected EXmlAccessMethods xmlAccessMethods; + /** + * The cached value of the '{@link #getXmlJavaTypeAdapter() Xml Java Type Adapter}' containment reference. + * + * + * @see #getXmlJavaTypeAdapter() + * @generated + * @ordered + */ + protected EXmlJavaTypeAdapter xmlJavaTypeAdapter; + /** + * The default value of the '{@link #isReadOnly() Read Only}' attribute. + * + * + * @see #isReadOnly() + * @generated + * @ordered + */ + protected static final boolean READ_ONLY_EDEFAULT = false; + /** + * The cached value of the '{@link #isReadOnly() Read Only}' attribute. + * + * + * @see #isReadOnly() + * @generated + * @ordered + */ + protected boolean readOnly = READ_ONLY_EDEFAULT; + /** + * The default value of the '{@link #isWriteOnly() Write Only}' attribute. + * + * + * @see #isWriteOnly() + * @generated + * @ordered + */ + protected static final boolean WRITE_ONLY_EDEFAULT = false; + /** + * The cached value of the '{@link #isWriteOnly() Write Only}' attribute. + * + * + * @see #isWriteOnly() + * @generated + * @ordered + */ + protected boolean writeOnly = WRITE_ONLY_EDEFAULT; + /** + * The cached value of the '{@link #getXmlProperties() Xml Properties}' containment reference list. + * + * + * @see #getXmlProperties() + * @generated + * @ordered + */ + protected EList xmlProperties; + /** + * The default value of the '{@link #isXmlMixed() Xml Mixed}' attribute. + * + * + * @see #isXmlMixed() + * @generated + * @ordered + */ + protected static final boolean XML_MIXED_EDEFAULT = false; + /** + * The cached value of the '{@link #isXmlMixed() Xml Mixed}' attribute. + * + * + * @see #isXmlMixed() + * @generated + * @ordered + */ + protected boolean xmlMixed = XML_MIXED_EDEFAULT; + /** + * The cached value of the '{@link #getXmlElementRefs() Xml Element Refs}' containment reference list. + * + * + * @see #getXmlElementRefs() + * @generated + * @ordered + */ + protected EList xmlElementRefs; + /** + * The cached value of the '{@link #getXmlElementWrapper() Xml Element Wrapper}' containment reference. + * + * + * @see #getXmlElementWrapper() + * @generated + * @ordered + */ + protected EXmlElementWrapper xmlElementWrapper; + + + /** + * + * + * @generated + */ + protected EXmlElementRefs() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return OxmPackage.Literals.EXML_ELEMENT_REFS; + } + + + /** + * Returns the value of the 'Xml Access Methods' containment reference. + * + *

+ * If the meaning of the 'Xml Access Methods' containment reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Access Methods' containment reference. + * @see #setXmlAccessMethods(EXmlAccessMethods) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEAccessibleJavaAttribute_XmlAccessMethods() + * @model containment="true" + * @generated + */ + public EXmlAccessMethods getXmlAccessMethods() + { + return xmlAccessMethods; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetXmlAccessMethods(EXmlAccessMethods newXmlAccessMethods, NotificationChain msgs) + { + EXmlAccessMethods oldXmlAccessMethods = xmlAccessMethods; + xmlAccessMethods = newXmlAccessMethods; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ELEMENT_REFS__XML_ACCESS_METHODS, oldXmlAccessMethods, newXmlAccessMethods); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementRefs#getXmlAccessMethods Xml Access Methods}' containment reference. + * + * + * @param value the new value of the 'Xml Access Methods' containment reference. + * @see #getXmlAccessMethods() + * @generated + */ + public void setXmlAccessMethods(EXmlAccessMethods newXmlAccessMethods) + { + if (newXmlAccessMethods != xmlAccessMethods) + { + NotificationChain msgs = null; + if (xmlAccessMethods != null) + msgs = ((InternalEObject)xmlAccessMethods).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OxmPackage.EXML_ELEMENT_REFS__XML_ACCESS_METHODS, null, msgs); + if (newXmlAccessMethods != null) + msgs = ((InternalEObject)newXmlAccessMethods).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OxmPackage.EXML_ELEMENT_REFS__XML_ACCESS_METHODS, null, msgs); + msgs = basicSetXmlAccessMethods(newXmlAccessMethods, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ELEMENT_REFS__XML_ACCESS_METHODS, newXmlAccessMethods, newXmlAccessMethods)); + } + + /** + * Returns the value of the 'Xml Java Type Adapter' containment reference. + * + *

+ * If the meaning of the 'Xml Java Type Adapter' containment reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Java Type Adapter' containment reference. + * @see #setXmlJavaTypeAdapter(EXmlJavaTypeAdapter) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEAdaptableJavaAttribute_XmlJavaTypeAdapter() + * @model containment="true" + * @generated + */ + public EXmlJavaTypeAdapter getXmlJavaTypeAdapter() + { + return xmlJavaTypeAdapter; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetXmlJavaTypeAdapter(EXmlJavaTypeAdapter newXmlJavaTypeAdapter, NotificationChain msgs) + { + EXmlJavaTypeAdapter oldXmlJavaTypeAdapter = xmlJavaTypeAdapter; + xmlJavaTypeAdapter = newXmlJavaTypeAdapter; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ELEMENT_REFS__XML_JAVA_TYPE_ADAPTER, oldXmlJavaTypeAdapter, newXmlJavaTypeAdapter); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementRefs#getXmlJavaTypeAdapter Xml Java Type Adapter}' containment reference. + * + * + * @param value the new value of the 'Xml Java Type Adapter' containment reference. + * @see #getXmlJavaTypeAdapter() + * @generated + */ + public void setXmlJavaTypeAdapter(EXmlJavaTypeAdapter newXmlJavaTypeAdapter) + { + if (newXmlJavaTypeAdapter != xmlJavaTypeAdapter) + { + NotificationChain msgs = null; + if (xmlJavaTypeAdapter != null) + msgs = ((InternalEObject)xmlJavaTypeAdapter).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OxmPackage.EXML_ELEMENT_REFS__XML_JAVA_TYPE_ADAPTER, null, msgs); + if (newXmlJavaTypeAdapter != null) + msgs = ((InternalEObject)newXmlJavaTypeAdapter).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OxmPackage.EXML_ELEMENT_REFS__XML_JAVA_TYPE_ADAPTER, null, msgs); + msgs = basicSetXmlJavaTypeAdapter(newXmlJavaTypeAdapter, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ELEMENT_REFS__XML_JAVA_TYPE_ADAPTER, newXmlJavaTypeAdapter, newXmlJavaTypeAdapter)); + } + + /** + * Returns the value of the 'Read Only' attribute. + * + *

+ * If the meaning of the 'Read Only' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Read Only' attribute. + * @see #setReadOnly(boolean) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEReadWriteJavaAttribute_ReadOnly() + * @model + * @generated + */ + public boolean isReadOnly() + { + return readOnly; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementRefs#isReadOnly Read Only}' attribute. + * + * + * @param value the new value of the 'Read Only' attribute. + * @see #isReadOnly() + * @generated + */ + public void setReadOnly(boolean newReadOnly) + { + boolean oldReadOnly = readOnly; + readOnly = newReadOnly; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ELEMENT_REFS__READ_ONLY, oldReadOnly, readOnly)); + } + + /** + * Returns the value of the 'Write Only' attribute. + * + *

+ * If the meaning of the 'Write Only' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Write Only' attribute. + * @see #setWriteOnly(boolean) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEReadWriteJavaAttribute_WriteOnly() + * @model + * @generated + */ + public boolean isWriteOnly() + { + return writeOnly; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementRefs#isWriteOnly Write Only}' attribute. + * + * + * @param value the new value of the 'Write Only' attribute. + * @see #isWriteOnly() + * @generated + */ + public void setWriteOnly(boolean newWriteOnly) + { + boolean oldWriteOnly = writeOnly; + writeOnly = newWriteOnly; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ELEMENT_REFS__WRITE_ONLY, oldWriteOnly, writeOnly)); + } + + /** + * Returns the value of the 'Xml Properties' containment reference list. + * The list contents are of type {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlProperty}. + * + *

+ * If the meaning of the 'Xml Properties' containment reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Properties' containment reference list. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEPropertyHolder_XmlProperties() + * @model containment="true" + * @generated + */ + public EList getXmlProperties() + { + if (xmlProperties == null) + { + xmlProperties = new EObjectContainmentEList(EXmlProperty.class, this, OxmPackage.EXML_ELEMENT_REFS__XML_PROPERTIES); + } + return xmlProperties; + } + + /** + * Returns the value of the 'Xml Mixed' attribute. + * + *

+ * If the meaning of the 'Xml Mixed' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Mixed' attribute. + * @see #setXmlMixed(boolean) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlElementRefs_XmlMixed() + * @model + * @generated + */ + public boolean isXmlMixed() + { + return xmlMixed; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementRefs#isXmlMixed Xml Mixed}' attribute. + * + * + * @param value the new value of the 'Xml Mixed' attribute. + * @see #isXmlMixed() + * @generated + */ + public void setXmlMixed(boolean newXmlMixed) + { + boolean oldXmlMixed = xmlMixed; + xmlMixed = newXmlMixed; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ELEMENT_REFS__XML_MIXED, oldXmlMixed, xmlMixed)); + } + + /** + * Returns the value of the 'Xml Element Refs' containment reference list. + * The list contents are of type {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementRef}. + * + *

+ * If the meaning of the 'Xml Element Refs' containment reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Element Refs' containment reference list. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlElementRefs_XmlElementRefs() + * @model containment="true" + * @generated + */ + public EList getXmlElementRefs() + { + if (xmlElementRefs == null) + { + xmlElementRefs = new EObjectContainmentEList(EXmlElementRef.class, this, OxmPackage.EXML_ELEMENT_REFS__XML_ELEMENT_REFS); + } + return xmlElementRefs; + } + + /** + * Returns the value of the 'Xml Element Wrapper' containment reference. + * + *

+ * If the meaning of the 'Xml Element Wrapper' containment reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Element Wrapper' containment reference. + * @see #setXmlElementWrapper(EXmlElementWrapper) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlElementRefs_XmlElementWrapper() + * @model containment="true" + * @generated + */ + public EXmlElementWrapper getXmlElementWrapper() + { + return xmlElementWrapper; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetXmlElementWrapper(EXmlElementWrapper newXmlElementWrapper, NotificationChain msgs) + { + EXmlElementWrapper oldXmlElementWrapper = xmlElementWrapper; + xmlElementWrapper = newXmlElementWrapper; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ELEMENT_REFS__XML_ELEMENT_WRAPPER, oldXmlElementWrapper, newXmlElementWrapper); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementRefs#getXmlElementWrapper Xml Element Wrapper}' containment reference. + * + * + * @param value the new value of the 'Xml Element Wrapper' containment reference. + * @see #getXmlElementWrapper() + * @generated + */ + public void setXmlElementWrapper(EXmlElementWrapper newXmlElementWrapper) + { + if (newXmlElementWrapper != xmlElementWrapper) + { + NotificationChain msgs = null; + if (xmlElementWrapper != null) + msgs = ((InternalEObject)xmlElementWrapper).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OxmPackage.EXML_ELEMENT_REFS__XML_ELEMENT_WRAPPER, null, msgs); + if (newXmlElementWrapper != null) + msgs = ((InternalEObject)newXmlElementWrapper).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OxmPackage.EXML_ELEMENT_REFS__XML_ELEMENT_WRAPPER, null, msgs); + msgs = basicSetXmlElementWrapper(newXmlElementWrapper, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ELEMENT_REFS__XML_ELEMENT_WRAPPER, newXmlElementWrapper, newXmlElementWrapper)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case OxmPackage.EXML_ELEMENT_REFS__XML_ACCESS_METHODS: + return basicSetXmlAccessMethods(null, msgs); + case OxmPackage.EXML_ELEMENT_REFS__XML_JAVA_TYPE_ADAPTER: + return basicSetXmlJavaTypeAdapter(null, msgs); + case OxmPackage.EXML_ELEMENT_REFS__XML_PROPERTIES: + return ((InternalEList)getXmlProperties()).basicRemove(otherEnd, msgs); + case OxmPackage.EXML_ELEMENT_REFS__XML_ELEMENT_REFS: + return ((InternalEList)getXmlElementRefs()).basicRemove(otherEnd, msgs); + case OxmPackage.EXML_ELEMENT_REFS__XML_ELEMENT_WRAPPER: + return basicSetXmlElementWrapper(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case OxmPackage.EXML_ELEMENT_REFS__XML_ACCESS_METHODS: + return getXmlAccessMethods(); + case OxmPackage.EXML_ELEMENT_REFS__XML_JAVA_TYPE_ADAPTER: + return getXmlJavaTypeAdapter(); + case OxmPackage.EXML_ELEMENT_REFS__READ_ONLY: + return isReadOnly(); + case OxmPackage.EXML_ELEMENT_REFS__WRITE_ONLY: + return isWriteOnly(); + case OxmPackage.EXML_ELEMENT_REFS__XML_PROPERTIES: + return getXmlProperties(); + case OxmPackage.EXML_ELEMENT_REFS__XML_MIXED: + return isXmlMixed(); + case OxmPackage.EXML_ELEMENT_REFS__XML_ELEMENT_REFS: + return getXmlElementRefs(); + case OxmPackage.EXML_ELEMENT_REFS__XML_ELEMENT_WRAPPER: + return getXmlElementWrapper(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case OxmPackage.EXML_ELEMENT_REFS__XML_ACCESS_METHODS: + setXmlAccessMethods((EXmlAccessMethods)newValue); + return; + case OxmPackage.EXML_ELEMENT_REFS__XML_JAVA_TYPE_ADAPTER: + setXmlJavaTypeAdapter((EXmlJavaTypeAdapter)newValue); + return; + case OxmPackage.EXML_ELEMENT_REFS__READ_ONLY: + setReadOnly((Boolean)newValue); + return; + case OxmPackage.EXML_ELEMENT_REFS__WRITE_ONLY: + setWriteOnly((Boolean)newValue); + return; + case OxmPackage.EXML_ELEMENT_REFS__XML_PROPERTIES: + getXmlProperties().clear(); + getXmlProperties().addAll((Collection)newValue); + return; + case OxmPackage.EXML_ELEMENT_REFS__XML_MIXED: + setXmlMixed((Boolean)newValue); + return; + case OxmPackage.EXML_ELEMENT_REFS__XML_ELEMENT_REFS: + getXmlElementRefs().clear(); + getXmlElementRefs().addAll((Collection)newValue); + return; + case OxmPackage.EXML_ELEMENT_REFS__XML_ELEMENT_WRAPPER: + setXmlElementWrapper((EXmlElementWrapper)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case OxmPackage.EXML_ELEMENT_REFS__XML_ACCESS_METHODS: + setXmlAccessMethods((EXmlAccessMethods)null); + return; + case OxmPackage.EXML_ELEMENT_REFS__XML_JAVA_TYPE_ADAPTER: + setXmlJavaTypeAdapter((EXmlJavaTypeAdapter)null); + return; + case OxmPackage.EXML_ELEMENT_REFS__READ_ONLY: + setReadOnly(READ_ONLY_EDEFAULT); + return; + case OxmPackage.EXML_ELEMENT_REFS__WRITE_ONLY: + setWriteOnly(WRITE_ONLY_EDEFAULT); + return; + case OxmPackage.EXML_ELEMENT_REFS__XML_PROPERTIES: + getXmlProperties().clear(); + return; + case OxmPackage.EXML_ELEMENT_REFS__XML_MIXED: + setXmlMixed(XML_MIXED_EDEFAULT); + return; + case OxmPackage.EXML_ELEMENT_REFS__XML_ELEMENT_REFS: + getXmlElementRefs().clear(); + return; + case OxmPackage.EXML_ELEMENT_REFS__XML_ELEMENT_WRAPPER: + setXmlElementWrapper((EXmlElementWrapper)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case OxmPackage.EXML_ELEMENT_REFS__XML_ACCESS_METHODS: + return xmlAccessMethods != null; + case OxmPackage.EXML_ELEMENT_REFS__XML_JAVA_TYPE_ADAPTER: + return xmlJavaTypeAdapter != null; + case OxmPackage.EXML_ELEMENT_REFS__READ_ONLY: + return readOnly != READ_ONLY_EDEFAULT; + case OxmPackage.EXML_ELEMENT_REFS__WRITE_ONLY: + return writeOnly != WRITE_ONLY_EDEFAULT; + case OxmPackage.EXML_ELEMENT_REFS__XML_PROPERTIES: + return xmlProperties != null && !xmlProperties.isEmpty(); + case OxmPackage.EXML_ELEMENT_REFS__XML_MIXED: + return xmlMixed != XML_MIXED_EDEFAULT; + case OxmPackage.EXML_ELEMENT_REFS__XML_ELEMENT_REFS: + return xmlElementRefs != null && !xmlElementRefs.isEmpty(); + case OxmPackage.EXML_ELEMENT_REFS__XML_ELEMENT_WRAPPER: + return xmlElementWrapper != null; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public int eBaseStructuralFeatureID(int derivedFeatureID, Class baseClass) + { + if (baseClass == EAccessibleJavaAttribute.class) + { + switch (derivedFeatureID) + { + case OxmPackage.EXML_ELEMENT_REFS__XML_ACCESS_METHODS: return OxmPackage.EACCESSIBLE_JAVA_ATTRIBUTE__XML_ACCESS_METHODS; + default: return -1; + } + } + if (baseClass == EAdaptableJavaAttribute.class) + { + switch (derivedFeatureID) + { + case OxmPackage.EXML_ELEMENT_REFS__XML_JAVA_TYPE_ADAPTER: return OxmPackage.EADAPTABLE_JAVA_ATTRIBUTE__XML_JAVA_TYPE_ADAPTER; + default: return -1; + } + } + if (baseClass == EReadWriteJavaAttribute.class) + { + switch (derivedFeatureID) + { + case OxmPackage.EXML_ELEMENT_REFS__READ_ONLY: return OxmPackage.EREAD_WRITE_JAVA_ATTRIBUTE__READ_ONLY; + case OxmPackage.EXML_ELEMENT_REFS__WRITE_ONLY: return OxmPackage.EREAD_WRITE_JAVA_ATTRIBUTE__WRITE_ONLY; + default: return -1; + } + } + if (baseClass == EPropertyHolder.class) + { + switch (derivedFeatureID) + { + case OxmPackage.EXML_ELEMENT_REFS__XML_PROPERTIES: return OxmPackage.EPROPERTY_HOLDER__XML_PROPERTIES; + default: return -1; + } + } + return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); + } + + /** + * + * + * @generated + */ + @Override + public int eDerivedStructuralFeatureID(int baseFeatureID, Class baseClass) + { + if (baseClass == EAccessibleJavaAttribute.class) + { + switch (baseFeatureID) + { + case OxmPackage.EACCESSIBLE_JAVA_ATTRIBUTE__XML_ACCESS_METHODS: return OxmPackage.EXML_ELEMENT_REFS__XML_ACCESS_METHODS; + default: return -1; + } + } + if (baseClass == EAdaptableJavaAttribute.class) + { + switch (baseFeatureID) + { + case OxmPackage.EADAPTABLE_JAVA_ATTRIBUTE__XML_JAVA_TYPE_ADAPTER: return OxmPackage.EXML_ELEMENT_REFS__XML_JAVA_TYPE_ADAPTER; + default: return -1; + } + } + if (baseClass == EReadWriteJavaAttribute.class) + { + switch (baseFeatureID) + { + case OxmPackage.EREAD_WRITE_JAVA_ATTRIBUTE__READ_ONLY: return OxmPackage.EXML_ELEMENT_REFS__READ_ONLY; + case OxmPackage.EREAD_WRITE_JAVA_ATTRIBUTE__WRITE_ONLY: return OxmPackage.EXML_ELEMENT_REFS__WRITE_ONLY; + default: return -1; + } + } + if (baseClass == EPropertyHolder.class) + { + switch (baseFeatureID) + { + case OxmPackage.EPROPERTY_HOLDER__XML_PROPERTIES: return OxmPackage.EXML_ELEMENT_REFS__XML_PROPERTIES; + default: return -1; + } + } + return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); + } + + /** + * + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (readOnly: "); + result.append(readOnly); + result.append(", writeOnly: "); + result.append(writeOnly); + result.append(", xmlMixed: "); + result.append(xmlMixed); + result.append(')'); + return result.toString(); + } + + + // ***** translators ***** + + static class XmlElementRefsTranslator + extends AbstractJavaAttributeTranslator { + + XmlElementRefsTranslator(String domPathAndName, EStructuralFeature eStructuralFeature) { + super(domPathAndName, eStructuralFeature, buildTranslatorChildren()); + } + + private static Translator[] buildTranslatorChildren() { + return new Translator[] { + }; + } + + @Override + public EObject createEMFObject(String nodeName, String readAheadName) { + return OxmFactory.eINSTANCE.createEXmlElementRefs(); + } + } +} diff --git a/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlElementWrapper.java b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlElementWrapper.java new file mode 100644 index 0000000000..85de5a2076 --- /dev/null +++ b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlElementWrapper.java @@ -0,0 +1,396 @@ +/** + */ +package org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.jpt.common.core.resource.xml.EBaseObject; +import org.eclipse.jpt.common.core.resource.xml.EBaseObjectImpl; + +/** + * + * A representation of the model object 'EXml Element Wrapper'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementWrapper#getName Name}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementWrapper#getNamespace Namespace}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementWrapper#isNillable Nillable}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementWrapper#isRequired Required}
  • + *
+ *

+ * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlElementWrapper() + * @model kind="class" + * @extends EBaseObject + * @generated + */ +public class EXmlElementWrapper extends EBaseObjectImpl implements EBaseObject +{ + /** + * The default value of the '{@link #getName() Name}' attribute. + * + * + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() Name}' attribute. + * + * + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * The default value of the '{@link #getNamespace() Namespace}' attribute. + * + * + * @see #getNamespace() + * @generated + * @ordered + */ + protected static final String NAMESPACE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getNamespace() Namespace}' attribute. + * + * + * @see #getNamespace() + * @generated + * @ordered + */ + protected String namespace = NAMESPACE_EDEFAULT; + + /** + * The default value of the '{@link #isNillable() Nillable}' attribute. + * + * + * @see #isNillable() + * @generated + * @ordered + */ + protected static final boolean NILLABLE_EDEFAULT = false; + + /** + * The cached value of the '{@link #isNillable() Nillable}' attribute. + * + * + * @see #isNillable() + * @generated + * @ordered + */ + protected boolean nillable = NILLABLE_EDEFAULT; + + /** + * The default value of the '{@link #isRequired() Required}' attribute. + * + * + * @see #isRequired() + * @generated + * @ordered + */ + protected static final boolean REQUIRED_EDEFAULT = false; + + /** + * The cached value of the '{@link #isRequired() Required}' attribute. + * + * + * @see #isRequired() + * @generated + * @ordered + */ + protected boolean required = REQUIRED_EDEFAULT; + + /** + * + * + * @generated + */ + protected EXmlElementWrapper() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return OxmPackage.Literals.EXML_ELEMENT_WRAPPER; + } + + /** + * Returns the value of the 'Name' attribute. + * + *

+ * If the meaning of the 'Name' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Name' attribute. + * @see #setName(String) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlElementWrapper_Name() + * @model + * @generated + */ + public String getName() + { + return name; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementWrapper#getName Name}' attribute. + * + * + * @param value the new value of the 'Name' attribute. + * @see #getName() + * @generated + */ + public void setName(String newName) + { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ELEMENT_WRAPPER__NAME, oldName, name)); + } + + /** + * Returns the value of the 'Namespace' attribute. + * + *

+ * If the meaning of the 'Namespace' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Namespace' attribute. + * @see #setNamespace(String) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlElementWrapper_Namespace() + * @model + * @generated + */ + public String getNamespace() + { + return namespace; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementWrapper#getNamespace Namespace}' attribute. + * + * + * @param value the new value of the 'Namespace' attribute. + * @see #getNamespace() + * @generated + */ + public void setNamespace(String newNamespace) + { + String oldNamespace = namespace; + namespace = newNamespace; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ELEMENT_WRAPPER__NAMESPACE, oldNamespace, namespace)); + } + + /** + * Returns the value of the 'Nillable' attribute. + * + *

+ * If the meaning of the 'Nillable' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Nillable' attribute. + * @see #setNillable(boolean) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlElementWrapper_Nillable() + * @model + * @generated + */ + public boolean isNillable() + { + return nillable; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementWrapper#isNillable Nillable}' attribute. + * + * + * @param value the new value of the 'Nillable' attribute. + * @see #isNillable() + * @generated + */ + public void setNillable(boolean newNillable) + { + boolean oldNillable = nillable; + nillable = newNillable; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ELEMENT_WRAPPER__NILLABLE, oldNillable, nillable)); + } + + /** + * Returns the value of the 'Required' attribute. + * + *

+ * If the meaning of the 'Required' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Required' attribute. + * @see #setRequired(boolean) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlElementWrapper_Required() + * @model + * @generated + */ + public boolean isRequired() + { + return required; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementWrapper#isRequired Required}' attribute. + * + * + * @param value the new value of the 'Required' attribute. + * @see #isRequired() + * @generated + */ + public void setRequired(boolean newRequired) + { + boolean oldRequired = required; + required = newRequired; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ELEMENT_WRAPPER__REQUIRED, oldRequired, required)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case OxmPackage.EXML_ELEMENT_WRAPPER__NAME: + return getName(); + case OxmPackage.EXML_ELEMENT_WRAPPER__NAMESPACE: + return getNamespace(); + case OxmPackage.EXML_ELEMENT_WRAPPER__NILLABLE: + return isNillable(); + case OxmPackage.EXML_ELEMENT_WRAPPER__REQUIRED: + return isRequired(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case OxmPackage.EXML_ELEMENT_WRAPPER__NAME: + setName((String)newValue); + return; + case OxmPackage.EXML_ELEMENT_WRAPPER__NAMESPACE: + setNamespace((String)newValue); + return; + case OxmPackage.EXML_ELEMENT_WRAPPER__NILLABLE: + setNillable((Boolean)newValue); + return; + case OxmPackage.EXML_ELEMENT_WRAPPER__REQUIRED: + setRequired((Boolean)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case OxmPackage.EXML_ELEMENT_WRAPPER__NAME: + setName(NAME_EDEFAULT); + return; + case OxmPackage.EXML_ELEMENT_WRAPPER__NAMESPACE: + setNamespace(NAMESPACE_EDEFAULT); + return; + case OxmPackage.EXML_ELEMENT_WRAPPER__NILLABLE: + setNillable(NILLABLE_EDEFAULT); + return; + case OxmPackage.EXML_ELEMENT_WRAPPER__REQUIRED: + setRequired(REQUIRED_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case OxmPackage.EXML_ELEMENT_WRAPPER__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case OxmPackage.EXML_ELEMENT_WRAPPER__NAMESPACE: + return NAMESPACE_EDEFAULT == null ? namespace != null : !NAMESPACE_EDEFAULT.equals(namespace); + case OxmPackage.EXML_ELEMENT_WRAPPER__NILLABLE: + return nillable != NILLABLE_EDEFAULT; + case OxmPackage.EXML_ELEMENT_WRAPPER__REQUIRED: + return required != REQUIRED_EDEFAULT; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (name: "); + result.append(name); + result.append(", namespace: "); + result.append(namespace); + result.append(", nillable: "); + result.append(nillable); + result.append(", required: "); + result.append(required); + result.append(')'); + return result.toString(); + } + +} // EXmlElementWrapper diff --git a/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlElements.java b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlElements.java new file mode 100644 index 0000000000..dc61c43200 --- /dev/null +++ b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlElements.java @@ -0,0 +1,887 @@ +/******************************************************************************* + * Copyright (c) 2012 Oracle. All rights reserved. + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v1.0, which accompanies this distribution + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Oracle - initial API and implementation + *******************************************************************************/ +package org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm; + +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.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.emf.ecore.EObject; +import org.eclipse.emf.ecore.EStructuralFeature; +import org.eclipse.wst.common.internal.emf.resource.Translator; + +/** + * + * A representation of the model object 'EXml Elements'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElements#isXmlIdRef Xml Id Ref}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElements#isXmlList Xml List}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElements#getXmlElements Xml Elements}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElements#getXmlElementWrapper Xml Element Wrapper}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElements#getXmlJoinNodes Xml Join Nodes}
  • + *
+ *

+ * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlElements() + * @model kind="class" + * @generated + */ +public class EXmlElements extends EJavaAttribute implements EAccessibleJavaAttribute, EContainerJavaAttribute, EReadWriteJavaAttribute, EPropertyHolder +{ + /** + * The cached value of the '{@link #getXmlAccessMethods() Xml Access Methods}' containment reference. + * + * + * @see #getXmlAccessMethods() + * @generated + * @ordered + */ + protected EXmlAccessMethods xmlAccessMethods; + /** + * The default value of the '{@link #getContainerType() Container Type}' attribute. + * + * + * @see #getContainerType() + * @generated + * @ordered + */ + protected static final String CONTAINER_TYPE_EDEFAULT = null; + /** + * The cached value of the '{@link #getContainerType() Container Type}' attribute. + * + * + * @see #getContainerType() + * @generated + * @ordered + */ + protected String containerType = CONTAINER_TYPE_EDEFAULT; + /** + * The default value of the '{@link #isReadOnly() Read Only}' attribute. + * + * + * @see #isReadOnly() + * @generated + * @ordered + */ + protected static final boolean READ_ONLY_EDEFAULT = false; + /** + * The cached value of the '{@link #isReadOnly() Read Only}' attribute. + * + * + * @see #isReadOnly() + * @generated + * @ordered + */ + protected boolean readOnly = READ_ONLY_EDEFAULT; + /** + * The default value of the '{@link #isWriteOnly() Write Only}' attribute. + * + * + * @see #isWriteOnly() + * @generated + * @ordered + */ + protected static final boolean WRITE_ONLY_EDEFAULT = false; + /** + * The cached value of the '{@link #isWriteOnly() Write Only}' attribute. + * + * + * @see #isWriteOnly() + * @generated + * @ordered + */ + protected boolean writeOnly = WRITE_ONLY_EDEFAULT; + /** + * The cached value of the '{@link #getXmlProperties() Xml Properties}' containment reference list. + * + * + * @see #getXmlProperties() + * @generated + * @ordered + */ + protected EList xmlProperties; + /** + * The default value of the '{@link #isXmlIdRef() Xml Id Ref}' attribute. + * + * + * @see #isXmlIdRef() + * @generated + * @ordered + */ + protected static final boolean XML_ID_REF_EDEFAULT = false; + /** + * The cached value of the '{@link #isXmlIdRef() Xml Id Ref}' attribute. + * + * + * @see #isXmlIdRef() + * @generated + * @ordered + */ + protected boolean xmlIdRef = XML_ID_REF_EDEFAULT; + /** + * The default value of the '{@link #isXmlList() Xml List}' attribute. + * + * + * @see #isXmlList() + * @generated + * @ordered + */ + protected static final boolean XML_LIST_EDEFAULT = false; + /** + * The cached value of the '{@link #isXmlList() Xml List}' attribute. + * + * + * @see #isXmlList() + * @generated + * @ordered + */ + protected boolean xmlList = XML_LIST_EDEFAULT; + /** + * The cached value of the '{@link #getXmlElements() Xml Elements}' containment reference list. + * + * + * @see #getXmlElements() + * @generated + * @ordered + */ + protected EList xmlElements; + /** + * The cached value of the '{@link #getXmlElementWrapper() Xml Element Wrapper}' containment reference. + * + * + * @see #getXmlElementWrapper() + * @generated + * @ordered + */ + protected EXmlElementWrapper xmlElementWrapper; + /** + * The cached value of the '{@link #getXmlJoinNodes() Xml Join Nodes}' containment reference list. + * + * + * @see #getXmlJoinNodes() + * @generated + * @ordered + */ + protected EList xmlJoinNodes; + + + /** + * + * + * @generated + */ + protected EXmlElements() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return OxmPackage.Literals.EXML_ELEMENTS; + } + + + /** + * Returns the value of the 'Xml Access Methods' containment reference. + * + *

+ * If the meaning of the 'Xml Access Methods' containment reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Access Methods' containment reference. + * @see #setXmlAccessMethods(EXmlAccessMethods) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEAccessibleJavaAttribute_XmlAccessMethods() + * @model containment="true" + * @generated + */ + public EXmlAccessMethods getXmlAccessMethods() + { + return xmlAccessMethods; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetXmlAccessMethods(EXmlAccessMethods newXmlAccessMethods, NotificationChain msgs) + { + EXmlAccessMethods oldXmlAccessMethods = xmlAccessMethods; + xmlAccessMethods = newXmlAccessMethods; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ELEMENTS__XML_ACCESS_METHODS, oldXmlAccessMethods, newXmlAccessMethods); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElements#getXmlAccessMethods Xml Access Methods}' containment reference. + * + * + * @param value the new value of the 'Xml Access Methods' containment reference. + * @see #getXmlAccessMethods() + * @generated + */ + public void setXmlAccessMethods(EXmlAccessMethods newXmlAccessMethods) + { + if (newXmlAccessMethods != xmlAccessMethods) + { + NotificationChain msgs = null; + if (xmlAccessMethods != null) + msgs = ((InternalEObject)xmlAccessMethods).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OxmPackage.EXML_ELEMENTS__XML_ACCESS_METHODS, null, msgs); + if (newXmlAccessMethods != null) + msgs = ((InternalEObject)newXmlAccessMethods).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OxmPackage.EXML_ELEMENTS__XML_ACCESS_METHODS, null, msgs); + msgs = basicSetXmlAccessMethods(newXmlAccessMethods, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ELEMENTS__XML_ACCESS_METHODS, newXmlAccessMethods, newXmlAccessMethods)); + } + + /** + * Returns the value of the 'Container Type' attribute. + * + *

+ * If the meaning of the 'Container Type' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Container Type' attribute. + * @see #setContainerType(String) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEContainerJavaAttribute_ContainerType() + * @model + * @generated + */ + public String getContainerType() + { + return containerType; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElements#getContainerType Container Type}' attribute. + * + * + * @param value the new value of the 'Container Type' attribute. + * @see #getContainerType() + * @generated + */ + public void setContainerType(String newContainerType) + { + String oldContainerType = containerType; + containerType = newContainerType; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ELEMENTS__CONTAINER_TYPE, oldContainerType, containerType)); + } + + /** + * Returns the value of the 'Read Only' attribute. + * + *

+ * If the meaning of the 'Read Only' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Read Only' attribute. + * @see #setReadOnly(boolean) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEReadWriteJavaAttribute_ReadOnly() + * @model + * @generated + */ + public boolean isReadOnly() + { + return readOnly; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElements#isReadOnly Read Only}' attribute. + * + * + * @param value the new value of the 'Read Only' attribute. + * @see #isReadOnly() + * @generated + */ + public void setReadOnly(boolean newReadOnly) + { + boolean oldReadOnly = readOnly; + readOnly = newReadOnly; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ELEMENTS__READ_ONLY, oldReadOnly, readOnly)); + } + + /** + * Returns the value of the 'Write Only' attribute. + * + *

+ * If the meaning of the 'Write Only' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Write Only' attribute. + * @see #setWriteOnly(boolean) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEReadWriteJavaAttribute_WriteOnly() + * @model + * @generated + */ + public boolean isWriteOnly() + { + return writeOnly; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElements#isWriteOnly Write Only}' attribute. + * + * + * @param value the new value of the 'Write Only' attribute. + * @see #isWriteOnly() + * @generated + */ + public void setWriteOnly(boolean newWriteOnly) + { + boolean oldWriteOnly = writeOnly; + writeOnly = newWriteOnly; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ELEMENTS__WRITE_ONLY, oldWriteOnly, writeOnly)); + } + + /** + * Returns the value of the 'Xml Properties' containment reference list. + * The list contents are of type {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlProperty}. + * + *

+ * If the meaning of the 'Xml Properties' containment reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Properties' containment reference list. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEPropertyHolder_XmlProperties() + * @model containment="true" + * @generated + */ + public EList getXmlProperties() + { + if (xmlProperties == null) + { + xmlProperties = new EObjectContainmentEList(EXmlProperty.class, this, OxmPackage.EXML_ELEMENTS__XML_PROPERTIES); + } + return xmlProperties; + } + + /** + * Returns the value of the 'Xml Id Ref' attribute. + * + *

+ * If the meaning of the 'Xml Id Ref' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Id Ref' attribute. + * @see #setXmlIdRef(boolean) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlElements_XmlIdRef() + * @model + * @generated + */ + public boolean isXmlIdRef() + { + return xmlIdRef; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElements#isXmlIdRef Xml Id Ref}' attribute. + * + * + * @param value the new value of the 'Xml Id Ref' attribute. + * @see #isXmlIdRef() + * @generated + */ + public void setXmlIdRef(boolean newXmlIdRef) + { + boolean oldXmlIdRef = xmlIdRef; + xmlIdRef = newXmlIdRef; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ELEMENTS__XML_ID_REF, oldXmlIdRef, xmlIdRef)); + } + + /** + * Returns the value of the 'Xml List' attribute. + * + *

+ * If the meaning of the 'Xml List' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml List' attribute. + * @see #setXmlList(boolean) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlElements_XmlList() + * @model + * @generated + */ + public boolean isXmlList() + { + return xmlList; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElements#isXmlList Xml List}' attribute. + * + * + * @param value the new value of the 'Xml List' attribute. + * @see #isXmlList() + * @generated + */ + public void setXmlList(boolean newXmlList) + { + boolean oldXmlList = xmlList; + xmlList = newXmlList; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ELEMENTS__XML_LIST, oldXmlList, xmlList)); + } + + /** + * Returns the value of the 'Xml Elements' containment reference list. + * The list contents are of type {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElement}. + * + *

+ * If the meaning of the 'Xml Elements' containment reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Elements' containment reference list. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlElements_XmlElements() + * @model containment="true" + * @generated + */ + public EList getXmlElements() + { + if (xmlElements == null) + { + xmlElements = new EObjectContainmentEList(EXmlElement.class, this, OxmPackage.EXML_ELEMENTS__XML_ELEMENTS); + } + return xmlElements; + } + + /** + * Returns the value of the 'Xml Element Wrapper' containment reference. + * + *

+ * If the meaning of the 'Xml Element Wrapper' containment reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Element Wrapper' containment reference. + * @see #setXmlElementWrapper(EXmlElementWrapper) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlElements_XmlElementWrapper() + * @model containment="true" + * @generated + */ + public EXmlElementWrapper getXmlElementWrapper() + { + return xmlElementWrapper; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetXmlElementWrapper(EXmlElementWrapper newXmlElementWrapper, NotificationChain msgs) + { + EXmlElementWrapper oldXmlElementWrapper = xmlElementWrapper; + xmlElementWrapper = newXmlElementWrapper; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ELEMENTS__XML_ELEMENT_WRAPPER, oldXmlElementWrapper, newXmlElementWrapper); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElements#getXmlElementWrapper Xml Element Wrapper}' containment reference. + * + * + * @param value the new value of the 'Xml Element Wrapper' containment reference. + * @see #getXmlElementWrapper() + * @generated + */ + public void setXmlElementWrapper(EXmlElementWrapper newXmlElementWrapper) + { + if (newXmlElementWrapper != xmlElementWrapper) + { + NotificationChain msgs = null; + if (xmlElementWrapper != null) + msgs = ((InternalEObject)xmlElementWrapper).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OxmPackage.EXML_ELEMENTS__XML_ELEMENT_WRAPPER, null, msgs); + if (newXmlElementWrapper != null) + msgs = ((InternalEObject)newXmlElementWrapper).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OxmPackage.EXML_ELEMENTS__XML_ELEMENT_WRAPPER, null, msgs); + msgs = basicSetXmlElementWrapper(newXmlElementWrapper, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ELEMENTS__XML_ELEMENT_WRAPPER, newXmlElementWrapper, newXmlElementWrapper)); + } + + /** + * Returns the value of the 'Xml Join Nodes' containment reference list. + * The list contents are of type {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlJoinNodes}. + * + *

+ * If the meaning of the 'Xml Join Nodes' containment reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Join Nodes' containment reference list. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlElements_XmlJoinNodes() + * @model containment="true" + * @generated + */ + public EList getXmlJoinNodes() + { + if (xmlJoinNodes == null) + { + xmlJoinNodes = new EObjectContainmentEList(EXmlJoinNodes.class, this, OxmPackage.EXML_ELEMENTS__XML_JOIN_NODES); + } + return xmlJoinNodes; + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case OxmPackage.EXML_ELEMENTS__XML_ACCESS_METHODS: + return basicSetXmlAccessMethods(null, msgs); + case OxmPackage.EXML_ELEMENTS__XML_PROPERTIES: + return ((InternalEList)getXmlProperties()).basicRemove(otherEnd, msgs); + case OxmPackage.EXML_ELEMENTS__XML_ELEMENTS: + return ((InternalEList)getXmlElements()).basicRemove(otherEnd, msgs); + case OxmPackage.EXML_ELEMENTS__XML_ELEMENT_WRAPPER: + return basicSetXmlElementWrapper(null, msgs); + case OxmPackage.EXML_ELEMENTS__XML_JOIN_NODES: + return ((InternalEList)getXmlJoinNodes()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case OxmPackage.EXML_ELEMENTS__XML_ACCESS_METHODS: + return getXmlAccessMethods(); + case OxmPackage.EXML_ELEMENTS__CONTAINER_TYPE: + return getContainerType(); + case OxmPackage.EXML_ELEMENTS__READ_ONLY: + return isReadOnly(); + case OxmPackage.EXML_ELEMENTS__WRITE_ONLY: + return isWriteOnly(); + case OxmPackage.EXML_ELEMENTS__XML_PROPERTIES: + return getXmlProperties(); + case OxmPackage.EXML_ELEMENTS__XML_ID_REF: + return isXmlIdRef(); + case OxmPackage.EXML_ELEMENTS__XML_LIST: + return isXmlList(); + case OxmPackage.EXML_ELEMENTS__XML_ELEMENTS: + return getXmlElements(); + case OxmPackage.EXML_ELEMENTS__XML_ELEMENT_WRAPPER: + return getXmlElementWrapper(); + case OxmPackage.EXML_ELEMENTS__XML_JOIN_NODES: + return getXmlJoinNodes(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case OxmPackage.EXML_ELEMENTS__XML_ACCESS_METHODS: + setXmlAccessMethods((EXmlAccessMethods)newValue); + return; + case OxmPackage.EXML_ELEMENTS__CONTAINER_TYPE: + setContainerType((String)newValue); + return; + case OxmPackage.EXML_ELEMENTS__READ_ONLY: + setReadOnly((Boolean)newValue); + return; + case OxmPackage.EXML_ELEMENTS__WRITE_ONLY: + setWriteOnly((Boolean)newValue); + return; + case OxmPackage.EXML_ELEMENTS__XML_PROPERTIES: + getXmlProperties().clear(); + getXmlProperties().addAll((Collection)newValue); + return; + case OxmPackage.EXML_ELEMENTS__XML_ID_REF: + setXmlIdRef((Boolean)newValue); + return; + case OxmPackage.EXML_ELEMENTS__XML_LIST: + setXmlList((Boolean)newValue); + return; + case OxmPackage.EXML_ELEMENTS__XML_ELEMENTS: + getXmlElements().clear(); + getXmlElements().addAll((Collection)newValue); + return; + case OxmPackage.EXML_ELEMENTS__XML_ELEMENT_WRAPPER: + setXmlElementWrapper((EXmlElementWrapper)newValue); + return; + case OxmPackage.EXML_ELEMENTS__XML_JOIN_NODES: + getXmlJoinNodes().clear(); + getXmlJoinNodes().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case OxmPackage.EXML_ELEMENTS__XML_ACCESS_METHODS: + setXmlAccessMethods((EXmlAccessMethods)null); + return; + case OxmPackage.EXML_ELEMENTS__CONTAINER_TYPE: + setContainerType(CONTAINER_TYPE_EDEFAULT); + return; + case OxmPackage.EXML_ELEMENTS__READ_ONLY: + setReadOnly(READ_ONLY_EDEFAULT); + return; + case OxmPackage.EXML_ELEMENTS__WRITE_ONLY: + setWriteOnly(WRITE_ONLY_EDEFAULT); + return; + case OxmPackage.EXML_ELEMENTS__XML_PROPERTIES: + getXmlProperties().clear(); + return; + case OxmPackage.EXML_ELEMENTS__XML_ID_REF: + setXmlIdRef(XML_ID_REF_EDEFAULT); + return; + case OxmPackage.EXML_ELEMENTS__XML_LIST: + setXmlList(XML_LIST_EDEFAULT); + return; + case OxmPackage.EXML_ELEMENTS__XML_ELEMENTS: + getXmlElements().clear(); + return; + case OxmPackage.EXML_ELEMENTS__XML_ELEMENT_WRAPPER: + setXmlElementWrapper((EXmlElementWrapper)null); + return; + case OxmPackage.EXML_ELEMENTS__XML_JOIN_NODES: + getXmlJoinNodes().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case OxmPackage.EXML_ELEMENTS__XML_ACCESS_METHODS: + return xmlAccessMethods != null; + case OxmPackage.EXML_ELEMENTS__CONTAINER_TYPE: + return CONTAINER_TYPE_EDEFAULT == null ? containerType != null : !CONTAINER_TYPE_EDEFAULT.equals(containerType); + case OxmPackage.EXML_ELEMENTS__READ_ONLY: + return readOnly != READ_ONLY_EDEFAULT; + case OxmPackage.EXML_ELEMENTS__WRITE_ONLY: + return writeOnly != WRITE_ONLY_EDEFAULT; + case OxmPackage.EXML_ELEMENTS__XML_PROPERTIES: + return xmlProperties != null && !xmlProperties.isEmpty(); + case OxmPackage.EXML_ELEMENTS__XML_ID_REF: + return xmlIdRef != XML_ID_REF_EDEFAULT; + case OxmPackage.EXML_ELEMENTS__XML_LIST: + return xmlList != XML_LIST_EDEFAULT; + case OxmPackage.EXML_ELEMENTS__XML_ELEMENTS: + return xmlElements != null && !xmlElements.isEmpty(); + case OxmPackage.EXML_ELEMENTS__XML_ELEMENT_WRAPPER: + return xmlElementWrapper != null; + case OxmPackage.EXML_ELEMENTS__XML_JOIN_NODES: + return xmlJoinNodes != null && !xmlJoinNodes.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public int eBaseStructuralFeatureID(int derivedFeatureID, Class baseClass) + { + if (baseClass == EAccessibleJavaAttribute.class) + { + switch (derivedFeatureID) + { + case OxmPackage.EXML_ELEMENTS__XML_ACCESS_METHODS: return OxmPackage.EACCESSIBLE_JAVA_ATTRIBUTE__XML_ACCESS_METHODS; + default: return -1; + } + } + if (baseClass == EContainerJavaAttribute.class) + { + switch (derivedFeatureID) + { + case OxmPackage.EXML_ELEMENTS__CONTAINER_TYPE: return OxmPackage.ECONTAINER_JAVA_ATTRIBUTE__CONTAINER_TYPE; + default: return -1; + } + } + if (baseClass == EReadWriteJavaAttribute.class) + { + switch (derivedFeatureID) + { + case OxmPackage.EXML_ELEMENTS__READ_ONLY: return OxmPackage.EREAD_WRITE_JAVA_ATTRIBUTE__READ_ONLY; + case OxmPackage.EXML_ELEMENTS__WRITE_ONLY: return OxmPackage.EREAD_WRITE_JAVA_ATTRIBUTE__WRITE_ONLY; + default: return -1; + } + } + if (baseClass == EPropertyHolder.class) + { + switch (derivedFeatureID) + { + case OxmPackage.EXML_ELEMENTS__XML_PROPERTIES: return OxmPackage.EPROPERTY_HOLDER__XML_PROPERTIES; + default: return -1; + } + } + return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); + } + + /** + * + * + * @generated + */ + @Override + public int eDerivedStructuralFeatureID(int baseFeatureID, Class baseClass) + { + if (baseClass == EAccessibleJavaAttribute.class) + { + switch (baseFeatureID) + { + case OxmPackage.EACCESSIBLE_JAVA_ATTRIBUTE__XML_ACCESS_METHODS: return OxmPackage.EXML_ELEMENTS__XML_ACCESS_METHODS; + default: return -1; + } + } + if (baseClass == EContainerJavaAttribute.class) + { + switch (baseFeatureID) + { + case OxmPackage.ECONTAINER_JAVA_ATTRIBUTE__CONTAINER_TYPE: return OxmPackage.EXML_ELEMENTS__CONTAINER_TYPE; + default: return -1; + } + } + if (baseClass == EReadWriteJavaAttribute.class) + { + switch (baseFeatureID) + { + case OxmPackage.EREAD_WRITE_JAVA_ATTRIBUTE__READ_ONLY: return OxmPackage.EXML_ELEMENTS__READ_ONLY; + case OxmPackage.EREAD_WRITE_JAVA_ATTRIBUTE__WRITE_ONLY: return OxmPackage.EXML_ELEMENTS__WRITE_ONLY; + default: return -1; + } + } + if (baseClass == EPropertyHolder.class) + { + switch (baseFeatureID) + { + case OxmPackage.EPROPERTY_HOLDER__XML_PROPERTIES: return OxmPackage.EXML_ELEMENTS__XML_PROPERTIES; + default: return -1; + } + } + return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); + } + + /** + * + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (containerType: "); + result.append(containerType); + result.append(", readOnly: "); + result.append(readOnly); + result.append(", writeOnly: "); + result.append(writeOnly); + result.append(", xmlIdRef: "); + result.append(xmlIdRef); + result.append(", xmlList: "); + result.append(xmlList); + result.append(')'); + return result.toString(); + } + + + // ***** translators ***** + + static class XmlElementsTranslator + extends AbstractJavaAttributeTranslator { + + XmlElementsTranslator(String domPathAndName, EStructuralFeature eStructuralFeature) { + super(domPathAndName, eStructuralFeature, buildTranslatorChildren()); + } + + private static Translator[] buildTranslatorChildren() { + return new Translator[] { + }; + } + + @Override + public EObject createEMFObject(String nodeName, String readAheadName) { + return OxmFactory.eINSTANCE.createEXmlElements(); + } + } +} diff --git a/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlEnum.java b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlEnum.java new file mode 100644 index 0000000000..33874bebc2 --- /dev/null +++ b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlEnum.java @@ -0,0 +1,331 @@ +/** + */ +package org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm; + +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.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.jpt.common.core.resource.xml.EBaseObject; +import org.eclipse.jpt.common.core.resource.xml.EBaseObjectImpl; + +/** + * + * A representation of the model object 'EXml Enum'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlEnum#getJavaEnum Java Enum}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlEnum#getValue Value}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlEnum#getXmlEnumValues Xml Enum Values}
  • + *
+ *

+ * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlEnum() + * @model kind="class" + * @extends EBaseObject + * @generated + */ +public class EXmlEnum extends EBaseObjectImpl implements EBaseObject +{ + /** + * The default value of the '{@link #getJavaEnum() Java Enum}' attribute. + * + * + * @see #getJavaEnum() + * @generated + * @ordered + */ + protected static final String JAVA_ENUM_EDEFAULT = null; + + /** + * The cached value of the '{@link #getJavaEnum() Java Enum}' attribute. + * + * + * @see #getJavaEnum() + * @generated + * @ordered + */ + protected String javaEnum = JAVA_ENUM_EDEFAULT; + + /** + * The default value of the '{@link #getValue() Value}' attribute. + * + * + * @see #getValue() + * @generated + * @ordered + */ + protected static final String VALUE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getValue() Value}' attribute. + * + * + * @see #getValue() + * @generated + * @ordered + */ + protected String value = VALUE_EDEFAULT; + + /** + * The cached value of the '{@link #getXmlEnumValues() Xml Enum Values}' containment reference list. + * + * + * @see #getXmlEnumValues() + * @generated + * @ordered + */ + protected EList xmlEnumValues; + + /** + * + * + * @generated + */ + protected EXmlEnum() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return OxmPackage.Literals.EXML_ENUM; + } + + /** + * Returns the value of the 'Java Enum' attribute. + * + *

+ * If the meaning of the 'Java Enum' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Java Enum' attribute. + * @see #setJavaEnum(String) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlEnum_JavaEnum() + * @model + * @generated + */ + public String getJavaEnum() + { + return javaEnum; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlEnum#getJavaEnum Java Enum}' attribute. + * + * + * @param value the new value of the 'Java Enum' attribute. + * @see #getJavaEnum() + * @generated + */ + public void setJavaEnum(String newJavaEnum) + { + String oldJavaEnum = javaEnum; + javaEnum = newJavaEnum; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ENUM__JAVA_ENUM, oldJavaEnum, javaEnum)); + } + + /** + * Returns the value of the 'Value' attribute. + * + *

+ * If the meaning of the 'Value' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Value' attribute. + * @see #setValue(String) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlEnum_Value() + * @model + * @generated + */ + public String getValue() + { + return value; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlEnum#getValue Value}' attribute. + * + * + * @param value the new value of the 'Value' attribute. + * @see #getValue() + * @generated + */ + public void setValue(String newValue) + { + String oldValue = value; + value = newValue; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ENUM__VALUE, oldValue, value)); + } + + /** + * Returns the value of the 'Xml Enum Values' containment reference list. + * The list contents are of type {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlEnumValue}. + * + *

+ * If the meaning of the 'Xml Enum Values' containment reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Enum Values' containment reference list. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlEnum_XmlEnumValues() + * @model containment="true" + * @generated + */ + public EList getXmlEnumValues() + { + if (xmlEnumValues == null) + { + xmlEnumValues = new EObjectContainmentEList(EXmlEnumValue.class, this, OxmPackage.EXML_ENUM__XML_ENUM_VALUES); + } + return xmlEnumValues; + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case OxmPackage.EXML_ENUM__XML_ENUM_VALUES: + return ((InternalEList)getXmlEnumValues()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case OxmPackage.EXML_ENUM__JAVA_ENUM: + return getJavaEnum(); + case OxmPackage.EXML_ENUM__VALUE: + return getValue(); + case OxmPackage.EXML_ENUM__XML_ENUM_VALUES: + return getXmlEnumValues(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case OxmPackage.EXML_ENUM__JAVA_ENUM: + setJavaEnum((String)newValue); + return; + case OxmPackage.EXML_ENUM__VALUE: + setValue((String)newValue); + return; + case OxmPackage.EXML_ENUM__XML_ENUM_VALUES: + getXmlEnumValues().clear(); + getXmlEnumValues().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case OxmPackage.EXML_ENUM__JAVA_ENUM: + setJavaEnum(JAVA_ENUM_EDEFAULT); + return; + case OxmPackage.EXML_ENUM__VALUE: + setValue(VALUE_EDEFAULT); + return; + case OxmPackage.EXML_ENUM__XML_ENUM_VALUES: + getXmlEnumValues().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case OxmPackage.EXML_ENUM__JAVA_ENUM: + return JAVA_ENUM_EDEFAULT == null ? javaEnum != null : !JAVA_ENUM_EDEFAULT.equals(javaEnum); + case OxmPackage.EXML_ENUM__VALUE: + return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value); + case OxmPackage.EXML_ENUM__XML_ENUM_VALUES: + return xmlEnumValues != null && !xmlEnumValues.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (javaEnum: "); + result.append(javaEnum); + result.append(", value: "); + result.append(value); + result.append(')'); + return result.toString(); + } + +} // EXmlEnum diff --git a/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlEnumValue.java b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlEnumValue.java new file mode 100644 index 0000000000..536add223d --- /dev/null +++ b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlEnumValue.java @@ -0,0 +1,192 @@ +/** + */ +package org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.jpt.common.core.resource.xml.EBaseObject; +import org.eclipse.jpt.common.core.resource.xml.EBaseObjectImpl; + +/** + * + * A representation of the model object 'EXml Enum Value'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlEnumValue#getJavaEnumValue Java Enum Value}
  • + *
+ *

+ * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlEnumValue() + * @model kind="class" + * @extends EBaseObject + * @generated + */ +public class EXmlEnumValue extends EBaseObjectImpl implements EBaseObject +{ + /** + * The default value of the '{@link #getJavaEnumValue() Java Enum Value}' attribute. + * + * + * @see #getJavaEnumValue() + * @generated + * @ordered + */ + protected static final String JAVA_ENUM_VALUE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getJavaEnumValue() Java Enum Value}' attribute. + * + * + * @see #getJavaEnumValue() + * @generated + * @ordered + */ + protected String javaEnumValue = JAVA_ENUM_VALUE_EDEFAULT; + + /** + * + * + * @generated + */ + protected EXmlEnumValue() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return OxmPackage.Literals.EXML_ENUM_VALUE; + } + + /** + * Returns the value of the 'Java Enum Value' attribute. + * + *

+ * If the meaning of the 'Java Enum Value' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Java Enum Value' attribute. + * @see #setJavaEnumValue(String) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlEnumValue_JavaEnumValue() + * @model + * @generated + */ + public String getJavaEnumValue() + { + return javaEnumValue; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlEnumValue#getJavaEnumValue Java Enum Value}' attribute. + * + * + * @param value the new value of the 'Java Enum Value' attribute. + * @see #getJavaEnumValue() + * @generated + */ + public void setJavaEnumValue(String newJavaEnumValue) + { + String oldJavaEnumValue = javaEnumValue; + javaEnumValue = newJavaEnumValue; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ENUM_VALUE__JAVA_ENUM_VALUE, oldJavaEnumValue, javaEnumValue)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case OxmPackage.EXML_ENUM_VALUE__JAVA_ENUM_VALUE: + return getJavaEnumValue(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case OxmPackage.EXML_ENUM_VALUE__JAVA_ENUM_VALUE: + setJavaEnumValue((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case OxmPackage.EXML_ENUM_VALUE__JAVA_ENUM_VALUE: + setJavaEnumValue(JAVA_ENUM_VALUE_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case OxmPackage.EXML_ENUM_VALUE__JAVA_ENUM_VALUE: + return JAVA_ENUM_VALUE_EDEFAULT == null ? javaEnumValue != null : !JAVA_ENUM_VALUE_EDEFAULT.equals(javaEnumValue); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (javaEnumValue: "); + result.append(javaEnumValue); + result.append(')'); + return result.toString(); + } + +} // EXmlEnumValue diff --git a/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlInverseReference.java b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlInverseReference.java new file mode 100644 index 0000000000..fdf90db7ac --- /dev/null +++ b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlInverseReference.java @@ -0,0 +1,580 @@ +/******************************************************************************* + * Copyright (c) 2012 Oracle. All rights reserved. + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v1.0, which accompanies this distribution + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Oracle - initial API and implementation + *******************************************************************************/ +package org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm; + +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.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.emf.ecore.EObject; +import org.eclipse.emf.ecore.EStructuralFeature; +import org.eclipse.wst.common.internal.emf.resource.Translator; + +/** + * + * A representation of the model object 'EXml Inverse Reference'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlInverseReference#getMappedBy Mapped By}
  • + *
+ *

+ * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlInverseReference() + * @model kind="class" + * @generated + */ +public class EXmlInverseReference extends EJavaAttribute implements EAccessibleJavaAttribute, EContainerJavaAttribute, ETypedJavaAttribute, EPropertyHolder +{ + /** + * The cached value of the '{@link #getXmlAccessMethods() Xml Access Methods}' containment reference. + * + * + * @see #getXmlAccessMethods() + * @generated + * @ordered + */ + protected EXmlAccessMethods xmlAccessMethods; + /** + * The default value of the '{@link #getContainerType() Container Type}' attribute. + * + * + * @see #getContainerType() + * @generated + * @ordered + */ + protected static final String CONTAINER_TYPE_EDEFAULT = null; + /** + * The cached value of the '{@link #getContainerType() Container Type}' attribute. + * + * + * @see #getContainerType() + * @generated + * @ordered + */ + protected String containerType = CONTAINER_TYPE_EDEFAULT; + /** + * The default value of the '{@link #getType() Type}' attribute. + * + * + * @see #getType() + * @generated + * @ordered + */ + protected static final String TYPE_EDEFAULT = null; + /** + * The cached value of the '{@link #getType() Type}' attribute. + * + * + * @see #getType() + * @generated + * @ordered + */ + protected String type = TYPE_EDEFAULT; + /** + * The cached value of the '{@link #getXmlProperties() Xml Properties}' containment reference list. + * + * + * @see #getXmlProperties() + * @generated + * @ordered + */ + protected EList xmlProperties; + /** + * The default value of the '{@link #getMappedBy() Mapped By}' attribute. + * + * + * @see #getMappedBy() + * @generated + * @ordered + */ + protected static final String MAPPED_BY_EDEFAULT = null; + /** + * The cached value of the '{@link #getMappedBy() Mapped By}' attribute. + * + * + * @see #getMappedBy() + * @generated + * @ordered + */ + protected String mappedBy = MAPPED_BY_EDEFAULT; + + + /** + * + * + * @generated + */ + protected EXmlInverseReference() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return OxmPackage.Literals.EXML_INVERSE_REFERENCE; + } + + + /** + * Returns the value of the 'Xml Access Methods' containment reference. + * + *

+ * If the meaning of the 'Xml Access Methods' containment reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Access Methods' containment reference. + * @see #setXmlAccessMethods(EXmlAccessMethods) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEAccessibleJavaAttribute_XmlAccessMethods() + * @model containment="true" + * @generated + */ + public EXmlAccessMethods getXmlAccessMethods() + { + return xmlAccessMethods; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetXmlAccessMethods(EXmlAccessMethods newXmlAccessMethods, NotificationChain msgs) + { + EXmlAccessMethods oldXmlAccessMethods = xmlAccessMethods; + xmlAccessMethods = newXmlAccessMethods; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_INVERSE_REFERENCE__XML_ACCESS_METHODS, oldXmlAccessMethods, newXmlAccessMethods); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlInverseReference#getXmlAccessMethods Xml Access Methods}' containment reference. + * + * + * @param value the new value of the 'Xml Access Methods' containment reference. + * @see #getXmlAccessMethods() + * @generated + */ + public void setXmlAccessMethods(EXmlAccessMethods newXmlAccessMethods) + { + if (newXmlAccessMethods != xmlAccessMethods) + { + NotificationChain msgs = null; + if (xmlAccessMethods != null) + msgs = ((InternalEObject)xmlAccessMethods).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OxmPackage.EXML_INVERSE_REFERENCE__XML_ACCESS_METHODS, null, msgs); + if (newXmlAccessMethods != null) + msgs = ((InternalEObject)newXmlAccessMethods).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OxmPackage.EXML_INVERSE_REFERENCE__XML_ACCESS_METHODS, null, msgs); + msgs = basicSetXmlAccessMethods(newXmlAccessMethods, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_INVERSE_REFERENCE__XML_ACCESS_METHODS, newXmlAccessMethods, newXmlAccessMethods)); + } + + /** + * Returns the value of the 'Container Type' attribute. + * + *

+ * If the meaning of the 'Container Type' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Container Type' attribute. + * @see #setContainerType(String) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEContainerJavaAttribute_ContainerType() + * @model + * @generated + */ + public String getContainerType() + { + return containerType; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlInverseReference#getContainerType Container Type}' attribute. + * + * + * @param value the new value of the 'Container Type' attribute. + * @see #getContainerType() + * @generated + */ + public void setContainerType(String newContainerType) + { + String oldContainerType = containerType; + containerType = newContainerType; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_INVERSE_REFERENCE__CONTAINER_TYPE, oldContainerType, containerType)); + } + + /** + * Returns the value of the 'Type' attribute. + * + *

+ * If the meaning of the 'Type' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Type' attribute. + * @see #setType(String) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getETypedJavaAttribute_Type() + * @model + * @generated + */ + public String getType() + { + return type; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlInverseReference#getType Type}' attribute. + * + * + * @param value the new value of the 'Type' attribute. + * @see #getType() + * @generated + */ + public void setType(String newType) + { + String oldType = type; + type = newType; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_INVERSE_REFERENCE__TYPE, oldType, type)); + } + + /** + * Returns the value of the 'Xml Properties' containment reference list. + * The list contents are of type {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlProperty}. + * + *

+ * If the meaning of the 'Xml Properties' containment reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Properties' containment reference list. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEPropertyHolder_XmlProperties() + * @model containment="true" + * @generated + */ + public EList getXmlProperties() + { + if (xmlProperties == null) + { + xmlProperties = new EObjectContainmentEList(EXmlProperty.class, this, OxmPackage.EXML_INVERSE_REFERENCE__XML_PROPERTIES); + } + return xmlProperties; + } + + /** + * Returns the value of the 'Mapped By' attribute. + * + *

+ * If the meaning of the 'Mapped By' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Mapped By' attribute. + * @see #setMappedBy(String) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlInverseReference_MappedBy() + * @model + * @generated + */ + public String getMappedBy() + { + return mappedBy; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlInverseReference#getMappedBy Mapped By}' attribute. + * + * + * @param value the new value of the 'Mapped By' attribute. + * @see #getMappedBy() + * @generated + */ + public void setMappedBy(String newMappedBy) + { + String oldMappedBy = mappedBy; + mappedBy = newMappedBy; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_INVERSE_REFERENCE__MAPPED_BY, oldMappedBy, mappedBy)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case OxmPackage.EXML_INVERSE_REFERENCE__XML_ACCESS_METHODS: + return basicSetXmlAccessMethods(null, msgs); + case OxmPackage.EXML_INVERSE_REFERENCE__XML_PROPERTIES: + return ((InternalEList)getXmlProperties()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case OxmPackage.EXML_INVERSE_REFERENCE__XML_ACCESS_METHODS: + return getXmlAccessMethods(); + case OxmPackage.EXML_INVERSE_REFERENCE__CONTAINER_TYPE: + return getContainerType(); + case OxmPackage.EXML_INVERSE_REFERENCE__TYPE: + return getType(); + case OxmPackage.EXML_INVERSE_REFERENCE__XML_PROPERTIES: + return getXmlProperties(); + case OxmPackage.EXML_INVERSE_REFERENCE__MAPPED_BY: + return getMappedBy(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case OxmPackage.EXML_INVERSE_REFERENCE__XML_ACCESS_METHODS: + setXmlAccessMethods((EXmlAccessMethods)newValue); + return; + case OxmPackage.EXML_INVERSE_REFERENCE__CONTAINER_TYPE: + setContainerType((String)newValue); + return; + case OxmPackage.EXML_INVERSE_REFERENCE__TYPE: + setType((String)newValue); + return; + case OxmPackage.EXML_INVERSE_REFERENCE__XML_PROPERTIES: + getXmlProperties().clear(); + getXmlProperties().addAll((Collection)newValue); + return; + case OxmPackage.EXML_INVERSE_REFERENCE__MAPPED_BY: + setMappedBy((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case OxmPackage.EXML_INVERSE_REFERENCE__XML_ACCESS_METHODS: + setXmlAccessMethods((EXmlAccessMethods)null); + return; + case OxmPackage.EXML_INVERSE_REFERENCE__CONTAINER_TYPE: + setContainerType(CONTAINER_TYPE_EDEFAULT); + return; + case OxmPackage.EXML_INVERSE_REFERENCE__TYPE: + setType(TYPE_EDEFAULT); + return; + case OxmPackage.EXML_INVERSE_REFERENCE__XML_PROPERTIES: + getXmlProperties().clear(); + return; + case OxmPackage.EXML_INVERSE_REFERENCE__MAPPED_BY: + setMappedBy(MAPPED_BY_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case OxmPackage.EXML_INVERSE_REFERENCE__XML_ACCESS_METHODS: + return xmlAccessMethods != null; + case OxmPackage.EXML_INVERSE_REFERENCE__CONTAINER_TYPE: + return CONTAINER_TYPE_EDEFAULT == null ? containerType != null : !CONTAINER_TYPE_EDEFAULT.equals(containerType); + case OxmPackage.EXML_INVERSE_REFERENCE__TYPE: + return TYPE_EDEFAULT == null ? type != null : !TYPE_EDEFAULT.equals(type); + case OxmPackage.EXML_INVERSE_REFERENCE__XML_PROPERTIES: + return xmlProperties != null && !xmlProperties.isEmpty(); + case OxmPackage.EXML_INVERSE_REFERENCE__MAPPED_BY: + return MAPPED_BY_EDEFAULT == null ? mappedBy != null : !MAPPED_BY_EDEFAULT.equals(mappedBy); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public int eBaseStructuralFeatureID(int derivedFeatureID, Class baseClass) + { + if (baseClass == EAccessibleJavaAttribute.class) + { + switch (derivedFeatureID) + { + case OxmPackage.EXML_INVERSE_REFERENCE__XML_ACCESS_METHODS: return OxmPackage.EACCESSIBLE_JAVA_ATTRIBUTE__XML_ACCESS_METHODS; + default: return -1; + } + } + if (baseClass == EContainerJavaAttribute.class) + { + switch (derivedFeatureID) + { + case OxmPackage.EXML_INVERSE_REFERENCE__CONTAINER_TYPE: return OxmPackage.ECONTAINER_JAVA_ATTRIBUTE__CONTAINER_TYPE; + default: return -1; + } + } + if (baseClass == ETypedJavaAttribute.class) + { + switch (derivedFeatureID) + { + case OxmPackage.EXML_INVERSE_REFERENCE__TYPE: return OxmPackage.ETYPED_JAVA_ATTRIBUTE__TYPE; + default: return -1; + } + } + if (baseClass == EPropertyHolder.class) + { + switch (derivedFeatureID) + { + case OxmPackage.EXML_INVERSE_REFERENCE__XML_PROPERTIES: return OxmPackage.EPROPERTY_HOLDER__XML_PROPERTIES; + default: return -1; + } + } + return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); + } + + /** + * + * + * @generated + */ + @Override + public int eDerivedStructuralFeatureID(int baseFeatureID, Class baseClass) + { + if (baseClass == EAccessibleJavaAttribute.class) + { + switch (baseFeatureID) + { + case OxmPackage.EACCESSIBLE_JAVA_ATTRIBUTE__XML_ACCESS_METHODS: return OxmPackage.EXML_INVERSE_REFERENCE__XML_ACCESS_METHODS; + default: return -1; + } + } + if (baseClass == EContainerJavaAttribute.class) + { + switch (baseFeatureID) + { + case OxmPackage.ECONTAINER_JAVA_ATTRIBUTE__CONTAINER_TYPE: return OxmPackage.EXML_INVERSE_REFERENCE__CONTAINER_TYPE; + default: return -1; + } + } + if (baseClass == ETypedJavaAttribute.class) + { + switch (baseFeatureID) + { + case OxmPackage.ETYPED_JAVA_ATTRIBUTE__TYPE: return OxmPackage.EXML_INVERSE_REFERENCE__TYPE; + default: return -1; + } + } + if (baseClass == EPropertyHolder.class) + { + switch (baseFeatureID) + { + case OxmPackage.EPROPERTY_HOLDER__XML_PROPERTIES: return OxmPackage.EXML_INVERSE_REFERENCE__XML_PROPERTIES; + default: return -1; + } + } + return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); + } + + /** + * + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (containerType: "); + result.append(containerType); + result.append(", type: "); + result.append(type); + result.append(", mappedBy: "); + result.append(mappedBy); + result.append(')'); + return result.toString(); + } + + + // ***** translators ***** + + static class XmlInverseReferenceTranslator + extends AbstractJavaAttributeTranslator { + + XmlInverseReferenceTranslator(String domPathAndName, EStructuralFeature eStructuralFeature) { + super(domPathAndName, eStructuralFeature, buildTranslatorChildren()); + } + + private static Translator[] buildTranslatorChildren() { + return new Translator[] { + }; + } + + @Override + public EObject createEMFObject(String nodeName, String readAheadName) { + return OxmFactory.eINSTANCE.createEXmlInverseReference(); + } + } +} \ No newline at end of file diff --git a/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlIsSetNullPolicy.java b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlIsSetNullPolicy.java new file mode 100644 index 0000000000..ba045419b5 --- /dev/null +++ b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlIsSetNullPolicy.java @@ -0,0 +1,283 @@ +/******************************************************************************* + * Copyright (c) 2012 Oracle. All rights reserved. + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v1.0, which accompanies this distribution + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Oracle - initial API and implementation + *******************************************************************************/ +package org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm; + +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.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.emf.ecore.EObject; +import org.eclipse.wst.common.internal.emf.resource.Translator; + +/** + * + * A representation of the model object 'EXml Is Set Null Policy'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlIsSetNullPolicy#getIsSetMethodName Is Set Method Name}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlIsSetNullPolicy#getXmlIsSetParameters Xml Is Set Parameters}
  • + *
+ *

+ * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlIsSetNullPolicy() + * @model kind="class" + * @generated + */ +public class EXmlIsSetNullPolicy extends EAbstractXmlNullPolicy +{ + /** + * The default value of the '{@link #getIsSetMethodName() Is Set Method Name}' attribute. + * + * + * @see #getIsSetMethodName() + * @generated + * @ordered + */ + protected static final String IS_SET_METHOD_NAME_EDEFAULT = null; + /** + * The cached value of the '{@link #getIsSetMethodName() Is Set Method Name}' attribute. + * + * + * @see #getIsSetMethodName() + * @generated + * @ordered + */ + protected String isSetMethodName = IS_SET_METHOD_NAME_EDEFAULT; + /** + * The cached value of the '{@link #getXmlIsSetParameters() Xml Is Set Parameters}' containment reference list. + * + * + * @see #getXmlIsSetParameters() + * @generated + * @ordered + */ + protected EList xmlIsSetParameters; + + + /** + * + * + * @generated + */ + protected EXmlIsSetNullPolicy() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return OxmPackage.Literals.EXML_IS_SET_NULL_POLICY; + } + + + /** + * Returns the value of the 'Is Set Method Name' attribute. + * + *

+ * If the meaning of the 'Is Set Method Name' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Is Set Method Name' attribute. + * @see #setIsSetMethodName(String) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlIsSetNullPolicy_IsSetMethodName() + * @model + * @generated + */ + public String getIsSetMethodName() + { + return isSetMethodName; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlIsSetNullPolicy#getIsSetMethodName Is Set Method Name}' attribute. + * + * + * @param value the new value of the 'Is Set Method Name' attribute. + * @see #getIsSetMethodName() + * @generated + */ + public void setIsSetMethodName(String newIsSetMethodName) + { + String oldIsSetMethodName = isSetMethodName; + isSetMethodName = newIsSetMethodName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_IS_SET_NULL_POLICY__IS_SET_METHOD_NAME, oldIsSetMethodName, isSetMethodName)); + } + + /** + * Returns the value of the 'Xml Is Set Parameters' containment reference list. + * The list contents are of type {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlIsSetParameter}. + * + *

+ * If the meaning of the 'Xml Is Set Parameters' containment reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Is Set Parameters' containment reference list. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlIsSetNullPolicy_XmlIsSetParameters() + * @model containment="true" + * @generated + */ + public EList getXmlIsSetParameters() + { + if (xmlIsSetParameters == null) + { + xmlIsSetParameters = new EObjectContainmentEList(EXmlIsSetParameter.class, this, OxmPackage.EXML_IS_SET_NULL_POLICY__XML_IS_SET_PARAMETERS); + } + return xmlIsSetParameters; + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case OxmPackage.EXML_IS_SET_NULL_POLICY__XML_IS_SET_PARAMETERS: + return ((InternalEList)getXmlIsSetParameters()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case OxmPackage.EXML_IS_SET_NULL_POLICY__IS_SET_METHOD_NAME: + return getIsSetMethodName(); + case OxmPackage.EXML_IS_SET_NULL_POLICY__XML_IS_SET_PARAMETERS: + return getXmlIsSetParameters(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case OxmPackage.EXML_IS_SET_NULL_POLICY__IS_SET_METHOD_NAME: + setIsSetMethodName((String)newValue); + return; + case OxmPackage.EXML_IS_SET_NULL_POLICY__XML_IS_SET_PARAMETERS: + getXmlIsSetParameters().clear(); + getXmlIsSetParameters().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case OxmPackage.EXML_IS_SET_NULL_POLICY__IS_SET_METHOD_NAME: + setIsSetMethodName(IS_SET_METHOD_NAME_EDEFAULT); + return; + case OxmPackage.EXML_IS_SET_NULL_POLICY__XML_IS_SET_PARAMETERS: + getXmlIsSetParameters().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case OxmPackage.EXML_IS_SET_NULL_POLICY__IS_SET_METHOD_NAME: + return IS_SET_METHOD_NAME_EDEFAULT == null ? isSetMethodName != null : !IS_SET_METHOD_NAME_EDEFAULT.equals(isSetMethodName); + case OxmPackage.EXML_IS_SET_NULL_POLICY__XML_IS_SET_PARAMETERS: + return xmlIsSetParameters != null && !xmlIsSetParameters.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (isSetMethodName: "); + result.append(isSetMethodName); + result.append(')'); + return result.toString(); + } + + + // ***** translators ***** + + static class XmlIsSetNullPolicyTranslator + extends AbstractAbstractXmlNullPolicyTranslator { + + public XmlIsSetNullPolicyTranslator() { + super(EclipseLink.XML_IS_SET_NULL_POLICY, buildTranslatorChildren()); + } + + private static Translator[] buildTranslatorChildren() { + return new Translator[] { + }; + } + + @Override + public EObject createEMFObject(String nodeName, String readAheadName) { + return OxmFactory.eINSTANCE.createEXmlIsSetNullPolicy(); + } + } +} diff --git a/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlIsSetParameter.java b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlIsSetParameter.java new file mode 100644 index 0000000000..616da4d697 --- /dev/null +++ b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlIsSetParameter.java @@ -0,0 +1,260 @@ +/** + */ +package org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.jpt.common.core.resource.xml.EBaseObject; +import org.eclipse.jpt.common.core.resource.xml.EBaseObjectImpl; + +/** + * + * A representation of the model object 'EXml Is Set Parameter'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlIsSetParameter#getValue Value}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlIsSetParameter#getType Type}
  • + *
+ *

+ * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlIsSetParameter() + * @model kind="class" + * @extends EBaseObject + * @generated + */ +public class EXmlIsSetParameter extends EBaseObjectImpl implements EBaseObject +{ + /** + * The default value of the '{@link #getValue() Value}' attribute. + * + * + * @see #getValue() + * @generated + * @ordered + */ + protected static final String VALUE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getValue() Value}' attribute. + * + * + * @see #getValue() + * @generated + * @ordered + */ + protected String value = VALUE_EDEFAULT; + + /** + * The default value of the '{@link #getType() Type}' attribute. + * + * + * @see #getType() + * @generated + * @ordered + */ + protected static final String TYPE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getType() Type}' attribute. + * + * + * @see #getType() + * @generated + * @ordered + */ + protected String type = TYPE_EDEFAULT; + + /** + * + * + * @generated + */ + protected EXmlIsSetParameter() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return OxmPackage.Literals.EXML_IS_SET_PARAMETER; + } + + /** + * Returns the value of the 'Value' attribute. + * + *

+ * If the meaning of the 'Value' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Value' attribute. + * @see #setValue(String) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlIsSetParameter_Value() + * @model + * @generated + */ + public String getValue() + { + return value; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlIsSetParameter#getValue Value}' attribute. + * + * + * @param value the new value of the 'Value' attribute. + * @see #getValue() + * @generated + */ + public void setValue(String newValue) + { + String oldValue = value; + value = newValue; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_IS_SET_PARAMETER__VALUE, oldValue, value)); + } + + /** + * Returns the value of the 'Type' attribute. + * + *

+ * If the meaning of the 'Type' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Type' attribute. + * @see #setType(String) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlIsSetParameter_Type() + * @model + * @generated + */ + public String getType() + { + return type; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlIsSetParameter#getType Type}' attribute. + * + * + * @param value the new value of the 'Type' attribute. + * @see #getType() + * @generated + */ + public void setType(String newType) + { + String oldType = type; + type = newType; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_IS_SET_PARAMETER__TYPE, oldType, type)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case OxmPackage.EXML_IS_SET_PARAMETER__VALUE: + return getValue(); + case OxmPackage.EXML_IS_SET_PARAMETER__TYPE: + return getType(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case OxmPackage.EXML_IS_SET_PARAMETER__VALUE: + setValue((String)newValue); + return; + case OxmPackage.EXML_IS_SET_PARAMETER__TYPE: + setType((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case OxmPackage.EXML_IS_SET_PARAMETER__VALUE: + setValue(VALUE_EDEFAULT); + return; + case OxmPackage.EXML_IS_SET_PARAMETER__TYPE: + setType(TYPE_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case OxmPackage.EXML_IS_SET_PARAMETER__VALUE: + return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value); + case OxmPackage.EXML_IS_SET_PARAMETER__TYPE: + return TYPE_EDEFAULT == null ? type != null : !TYPE_EDEFAULT.equals(type); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (value: "); + result.append(value); + result.append(", type: "); + result.append(type); + result.append(')'); + return result.toString(); + } + +} // EXmlIsSetParameter diff --git a/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlJavaTypeAdapter.java b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlJavaTypeAdapter.java new file mode 100644 index 0000000000..cc2c094037 --- /dev/null +++ b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlJavaTypeAdapter.java @@ -0,0 +1,349 @@ +/******************************************************************************* + * Copyright (c) 2012 Oracle. All rights reserved. + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v1.0, which accompanies this distribution + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Oracle - initial API and implementation + *******************************************************************************/ +package org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EStructuralFeature; +import org.eclipse.wst.common.internal.emf.resource.Translator; + +/** + * + * A representation of the model object 'EXml Java Type Adapter'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlJavaTypeAdapter#getValue Value}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlJavaTypeAdapter#getType Type}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlJavaTypeAdapter#getValueType Value Type}
  • + *
+ *

+ * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlJavaTypeAdapter() + * @model kind="class" + * @generated + */ +public class EXmlJavaTypeAdapter extends EJavaAttribute +{ + /** + * The default value of the '{@link #getValue() Value}' attribute. + * + * + * @see #getValue() + * @generated + * @ordered + */ + protected static final String VALUE_EDEFAULT = null; + /** + * The cached value of the '{@link #getValue() Value}' attribute. + * + * + * @see #getValue() + * @generated + * @ordered + */ + protected String value = VALUE_EDEFAULT; + /** + * The default value of the '{@link #getType() Type}' attribute. + * + * + * @see #getType() + * @generated + * @ordered + */ + protected static final String TYPE_EDEFAULT = null; + /** + * The cached value of the '{@link #getType() Type}' attribute. + * + * + * @see #getType() + * @generated + * @ordered + */ + protected String type = TYPE_EDEFAULT; + /** + * The default value of the '{@link #getValueType() Value Type}' attribute. + * + * + * @see #getValueType() + * @generated + * @ordered + */ + protected static final String VALUE_TYPE_EDEFAULT = null; + /** + * The cached value of the '{@link #getValueType() Value Type}' attribute. + * + * + * @see #getValueType() + * @generated + * @ordered + */ + protected String valueType = VALUE_TYPE_EDEFAULT; + + + /** + * + * + * @generated + */ + protected EXmlJavaTypeAdapter() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return OxmPackage.Literals.EXML_JAVA_TYPE_ADAPTER; + } + + + /** + * Returns the value of the 'Value' attribute. + * + *

+ * If the meaning of the 'Value' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Value' attribute. + * @see #setValue(String) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlJavaTypeAdapter_Value() + * @model + * @generated + */ + public String getValue() + { + return value; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlJavaTypeAdapter#getValue Value}' attribute. + * + * + * @param value the new value of the 'Value' attribute. + * @see #getValue() + * @generated + */ + public void setValue(String newValue) + { + String oldValue = value; + value = newValue; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_JAVA_TYPE_ADAPTER__VALUE, oldValue, value)); + } + + /** + * Returns the value of the 'Type' attribute. + * + *

+ * If the meaning of the 'Type' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Type' attribute. + * @see #setType(String) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlJavaTypeAdapter_Type() + * @model + * @generated + */ + public String getType() + { + return type; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlJavaTypeAdapter#getType Type}' attribute. + * + * + * @param value the new value of the 'Type' attribute. + * @see #getType() + * @generated + */ + public void setType(String newType) + { + String oldType = type; + type = newType; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_JAVA_TYPE_ADAPTER__TYPE, oldType, type)); + } + + /** + * Returns the value of the 'Value Type' attribute. + * + *

+ * If the meaning of the 'Value Type' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Value Type' attribute. + * @see #setValueType(String) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlJavaTypeAdapter_ValueType() + * @model + * @generated + */ + public String getValueType() + { + return valueType; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlJavaTypeAdapter#getValueType Value Type}' attribute. + * + * + * @param value the new value of the 'Value Type' attribute. + * @see #getValueType() + * @generated + */ + public void setValueType(String newValueType) + { + String oldValueType = valueType; + valueType = newValueType; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_JAVA_TYPE_ADAPTER__VALUE_TYPE, oldValueType, valueType)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case OxmPackage.EXML_JAVA_TYPE_ADAPTER__VALUE: + return getValue(); + case OxmPackage.EXML_JAVA_TYPE_ADAPTER__TYPE: + return getType(); + case OxmPackage.EXML_JAVA_TYPE_ADAPTER__VALUE_TYPE: + return getValueType(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case OxmPackage.EXML_JAVA_TYPE_ADAPTER__VALUE: + setValue((String)newValue); + return; + case OxmPackage.EXML_JAVA_TYPE_ADAPTER__TYPE: + setType((String)newValue); + return; + case OxmPackage.EXML_JAVA_TYPE_ADAPTER__VALUE_TYPE: + setValueType((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case OxmPackage.EXML_JAVA_TYPE_ADAPTER__VALUE: + setValue(VALUE_EDEFAULT); + return; + case OxmPackage.EXML_JAVA_TYPE_ADAPTER__TYPE: + setType(TYPE_EDEFAULT); + return; + case OxmPackage.EXML_JAVA_TYPE_ADAPTER__VALUE_TYPE: + setValueType(VALUE_TYPE_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case OxmPackage.EXML_JAVA_TYPE_ADAPTER__VALUE: + return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value); + case OxmPackage.EXML_JAVA_TYPE_ADAPTER__TYPE: + return TYPE_EDEFAULT == null ? type != null : !TYPE_EDEFAULT.equals(type); + case OxmPackage.EXML_JAVA_TYPE_ADAPTER__VALUE_TYPE: + return VALUE_TYPE_EDEFAULT == null ? valueType != null : !VALUE_TYPE_EDEFAULT.equals(valueType); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (value: "); + result.append(value); + result.append(", type: "); + result.append(type); + result.append(", valueType: "); + result.append(valueType); + result.append(')'); + return result.toString(); + } + + + // ***** translators ***** + + static class XmlJavaTypeAdapterTranslator + extends AbstractJavaAttributeTranslator { + + XmlJavaTypeAdapterTranslator(String domPathAndName, EStructuralFeature eStructuralFeature) { + super(domPathAndName, eStructuralFeature, buildTranslatorChildren()); + } + + private static Translator[] buildTranslatorChildren() { + return new Translator[] { + }; + } + + @Override + public EObject createEMFObject(String nodeName, String readAheadName) { + return OxmFactory.eINSTANCE.createEXmlJavaTypeAdapter(); + } + } +} diff --git a/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlJoinNode.java b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlJoinNode.java new file mode 100644 index 0000000000..9710f0cda5 --- /dev/null +++ b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlJoinNode.java @@ -0,0 +1,260 @@ +/** + */ +package org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.jpt.common.core.resource.xml.EBaseObject; +import org.eclipse.jpt.common.core.resource.xml.EBaseObjectImpl; + +/** + * + * A representation of the model object 'EXml Join Node'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlJoinNode#getXmlPath Xml Path}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlJoinNode#getReferencedXmlPath Referenced Xml Path}
  • + *
+ *

+ * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlJoinNode() + * @model kind="class" + * @extends EBaseObject + * @generated + */ +public class EXmlJoinNode extends EBaseObjectImpl implements EBaseObject +{ + /** + * The default value of the '{@link #getXmlPath() Xml Path}' attribute. + * + * + * @see #getXmlPath() + * @generated + * @ordered + */ + protected static final String XML_PATH_EDEFAULT = null; + + /** + * The cached value of the '{@link #getXmlPath() Xml Path}' attribute. + * + * + * @see #getXmlPath() + * @generated + * @ordered + */ + protected String xmlPath = XML_PATH_EDEFAULT; + + /** + * The default value of the '{@link #getReferencedXmlPath() Referenced Xml Path}' attribute. + * + * + * @see #getReferencedXmlPath() + * @generated + * @ordered + */ + protected static final String REFERENCED_XML_PATH_EDEFAULT = null; + + /** + * The cached value of the '{@link #getReferencedXmlPath() Referenced Xml Path}' attribute. + * + * + * @see #getReferencedXmlPath() + * @generated + * @ordered + */ + protected String referencedXmlPath = REFERENCED_XML_PATH_EDEFAULT; + + /** + * + * + * @generated + */ + protected EXmlJoinNode() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return OxmPackage.Literals.EXML_JOIN_NODE; + } + + /** + * Returns the value of the 'Xml Path' attribute. + * + *

+ * If the meaning of the 'Xml Path' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Path' attribute. + * @see #setXmlPath(String) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlJoinNode_XmlPath() + * @model + * @generated + */ + public String getXmlPath() + { + return xmlPath; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlJoinNode#getXmlPath Xml Path}' attribute. + * + * + * @param value the new value of the 'Xml Path' attribute. + * @see #getXmlPath() + * @generated + */ + public void setXmlPath(String newXmlPath) + { + String oldXmlPath = xmlPath; + xmlPath = newXmlPath; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_JOIN_NODE__XML_PATH, oldXmlPath, xmlPath)); + } + + /** + * Returns the value of the 'Referenced Xml Path' attribute. + * + *

+ * If the meaning of the 'Referenced Xml Path' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Referenced Xml Path' attribute. + * @see #setReferencedXmlPath(String) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlJoinNode_ReferencedXmlPath() + * @model + * @generated + */ + public String getReferencedXmlPath() + { + return referencedXmlPath; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlJoinNode#getReferencedXmlPath Referenced Xml Path}' attribute. + * + * + * @param value the new value of the 'Referenced Xml Path' attribute. + * @see #getReferencedXmlPath() + * @generated + */ + public void setReferencedXmlPath(String newReferencedXmlPath) + { + String oldReferencedXmlPath = referencedXmlPath; + referencedXmlPath = newReferencedXmlPath; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_JOIN_NODE__REFERENCED_XML_PATH, oldReferencedXmlPath, referencedXmlPath)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case OxmPackage.EXML_JOIN_NODE__XML_PATH: + return getXmlPath(); + case OxmPackage.EXML_JOIN_NODE__REFERENCED_XML_PATH: + return getReferencedXmlPath(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case OxmPackage.EXML_JOIN_NODE__XML_PATH: + setXmlPath((String)newValue); + return; + case OxmPackage.EXML_JOIN_NODE__REFERENCED_XML_PATH: + setReferencedXmlPath((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case OxmPackage.EXML_JOIN_NODE__XML_PATH: + setXmlPath(XML_PATH_EDEFAULT); + return; + case OxmPackage.EXML_JOIN_NODE__REFERENCED_XML_PATH: + setReferencedXmlPath(REFERENCED_XML_PATH_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case OxmPackage.EXML_JOIN_NODE__XML_PATH: + return XML_PATH_EDEFAULT == null ? xmlPath != null : !XML_PATH_EDEFAULT.equals(xmlPath); + case OxmPackage.EXML_JOIN_NODE__REFERENCED_XML_PATH: + return REFERENCED_XML_PATH_EDEFAULT == null ? referencedXmlPath != null : !REFERENCED_XML_PATH_EDEFAULT.equals(referencedXmlPath); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (xmlPath: "); + result.append(xmlPath); + result.append(", referencedXmlPath: "); + result.append(referencedXmlPath); + result.append(')'); + return result.toString(); + } + +} // EXmlJoinNode diff --git a/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlJoinNodes.java b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlJoinNodes.java new file mode 100644 index 0000000000..a72f279878 --- /dev/null +++ b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlJoinNodes.java @@ -0,0 +1,402 @@ +/******************************************************************************* + * Copyright (c) 2012 Oracle. All rights reserved. + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v1.0, which accompanies this distribution + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Oracle - initial API and implementation + *******************************************************************************/ +package org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm; + +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.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.emf.ecore.EObject; +import org.eclipse.emf.ecore.EStructuralFeature; +import org.eclipse.wst.common.internal.emf.resource.Translator; + +/** + * + * A representation of the model object 'EXml Join Nodes'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlJoinNodes#getXmlJoinNodes Xml Join Nodes}
  • + *
+ *

+ * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlJoinNodes() + * @model kind="class" + * @generated + */ +public class EXmlJoinNodes extends EJavaAttribute implements EContainerJavaAttribute, ETypedJavaAttribute +{ + /** + * The default value of the '{@link #getContainerType() Container Type}' attribute. + * + * + * @see #getContainerType() + * @generated + * @ordered + */ + protected static final String CONTAINER_TYPE_EDEFAULT = null; + /** + * The cached value of the '{@link #getContainerType() Container Type}' attribute. + * + * + * @see #getContainerType() + * @generated + * @ordered + */ + protected String containerType = CONTAINER_TYPE_EDEFAULT; + /** + * The default value of the '{@link #getType() Type}' attribute. + * + * + * @see #getType() + * @generated + * @ordered + */ + protected static final String TYPE_EDEFAULT = null; + /** + * The cached value of the '{@link #getType() Type}' attribute. + * + * + * @see #getType() + * @generated + * @ordered + */ + protected String type = TYPE_EDEFAULT; + /** + * The cached value of the '{@link #getXmlJoinNodes() Xml Join Nodes}' containment reference list. + * + * + * @see #getXmlJoinNodes() + * @generated + * @ordered + */ + protected EList xmlJoinNodes; + + + /** + * + * + * @generated + */ + protected EXmlJoinNodes() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return OxmPackage.Literals.EXML_JOIN_NODES; + } + + + /** + * Returns the value of the 'Container Type' attribute. + * + *

+ * If the meaning of the 'Container Type' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Container Type' attribute. + * @see #setContainerType(String) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEContainerJavaAttribute_ContainerType() + * @model + * @generated + */ + public String getContainerType() + { + return containerType; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlJoinNodes#getContainerType Container Type}' attribute. + * + * + * @param value the new value of the 'Container Type' attribute. + * @see #getContainerType() + * @generated + */ + public void setContainerType(String newContainerType) + { + String oldContainerType = containerType; + containerType = newContainerType; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_JOIN_NODES__CONTAINER_TYPE, oldContainerType, containerType)); + } + + /** + * Returns the value of the 'Type' attribute. + * + *

+ * If the meaning of the 'Type' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Type' attribute. + * @see #setType(String) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getETypedJavaAttribute_Type() + * @model + * @generated + */ + public String getType() + { + return type; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlJoinNodes#getType Type}' attribute. + * + * + * @param value the new value of the 'Type' attribute. + * @see #getType() + * @generated + */ + public void setType(String newType) + { + String oldType = type; + type = newType; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_JOIN_NODES__TYPE, oldType, type)); + } + + /** + * Returns the value of the 'Xml Join Nodes' containment reference list. + * The list contents are of type {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlJoinNode}. + * + *

+ * If the meaning of the 'Xml Join Nodes' containment reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Join Nodes' containment reference list. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlJoinNodes_XmlJoinNodes() + * @model containment="true" + * @generated + */ + public EList getXmlJoinNodes() + { + if (xmlJoinNodes == null) + { + xmlJoinNodes = new EObjectContainmentEList(EXmlJoinNode.class, this, OxmPackage.EXML_JOIN_NODES__XML_JOIN_NODES); + } + return xmlJoinNodes; + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case OxmPackage.EXML_JOIN_NODES__XML_JOIN_NODES: + return ((InternalEList)getXmlJoinNodes()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case OxmPackage.EXML_JOIN_NODES__CONTAINER_TYPE: + return getContainerType(); + case OxmPackage.EXML_JOIN_NODES__TYPE: + return getType(); + case OxmPackage.EXML_JOIN_NODES__XML_JOIN_NODES: + return getXmlJoinNodes(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case OxmPackage.EXML_JOIN_NODES__CONTAINER_TYPE: + setContainerType((String)newValue); + return; + case OxmPackage.EXML_JOIN_NODES__TYPE: + setType((String)newValue); + return; + case OxmPackage.EXML_JOIN_NODES__XML_JOIN_NODES: + getXmlJoinNodes().clear(); + getXmlJoinNodes().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case OxmPackage.EXML_JOIN_NODES__CONTAINER_TYPE: + setContainerType(CONTAINER_TYPE_EDEFAULT); + return; + case OxmPackage.EXML_JOIN_NODES__TYPE: + setType(TYPE_EDEFAULT); + return; + case OxmPackage.EXML_JOIN_NODES__XML_JOIN_NODES: + getXmlJoinNodes().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case OxmPackage.EXML_JOIN_NODES__CONTAINER_TYPE: + return CONTAINER_TYPE_EDEFAULT == null ? containerType != null : !CONTAINER_TYPE_EDEFAULT.equals(containerType); + case OxmPackage.EXML_JOIN_NODES__TYPE: + return TYPE_EDEFAULT == null ? type != null : !TYPE_EDEFAULT.equals(type); + case OxmPackage.EXML_JOIN_NODES__XML_JOIN_NODES: + return xmlJoinNodes != null && !xmlJoinNodes.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public int eBaseStructuralFeatureID(int derivedFeatureID, Class baseClass) + { + if (baseClass == EContainerJavaAttribute.class) + { + switch (derivedFeatureID) + { + case OxmPackage.EXML_JOIN_NODES__CONTAINER_TYPE: return OxmPackage.ECONTAINER_JAVA_ATTRIBUTE__CONTAINER_TYPE; + default: return -1; + } + } + if (baseClass == ETypedJavaAttribute.class) + { + switch (derivedFeatureID) + { + case OxmPackage.EXML_JOIN_NODES__TYPE: return OxmPackage.ETYPED_JAVA_ATTRIBUTE__TYPE; + default: return -1; + } + } + return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); + } + + /** + * + * + * @generated + */ + @Override + public int eDerivedStructuralFeatureID(int baseFeatureID, Class baseClass) + { + if (baseClass == EContainerJavaAttribute.class) + { + switch (baseFeatureID) + { + case OxmPackage.ECONTAINER_JAVA_ATTRIBUTE__CONTAINER_TYPE: return OxmPackage.EXML_JOIN_NODES__CONTAINER_TYPE; + default: return -1; + } + } + if (baseClass == ETypedJavaAttribute.class) + { + switch (baseFeatureID) + { + case OxmPackage.ETYPED_JAVA_ATTRIBUTE__TYPE: return OxmPackage.EXML_JOIN_NODES__TYPE; + default: return -1; + } + } + return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); + } + + /** + * + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (containerType: "); + result.append(containerType); + result.append(", type: "); + result.append(type); + result.append(')'); + return result.toString(); + } + + + // ***** translators ***** + + static class XmlJoinNodesTranslator + extends AbstractJavaAttributeTranslator { + + XmlJoinNodesTranslator(String domPathAndName, EStructuralFeature eStructuralFeature) { + super(domPathAndName, eStructuralFeature, buildTranslatorChildren()); + } + + private static Translator[] buildTranslatorChildren() { + return new Translator[] { + }; + } + + @Override + public EObject createEMFObject(String nodeName, String readAheadName) { + return OxmFactory.eINSTANCE.createEXmlJoinNodes(); + } + } +} diff --git a/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlMap.java b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlMap.java new file mode 100644 index 0000000000..31f9939892 --- /dev/null +++ b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlMap.java @@ -0,0 +1,260 @@ +/** + */ +package org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.jpt.common.core.resource.xml.EBaseObject; +import org.eclipse.jpt.common.core.resource.xml.EBaseObjectImpl; + +/** + * + * A representation of the model object 'EXml Map'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlMap#getKey Key}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlMap#getValue Value}
  • + *
+ *

+ * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlMap() + * @model kind="class" + * @extends EBaseObject + * @generated + */ +public class EXmlMap extends EBaseObjectImpl implements EBaseObject +{ + /** + * The default value of the '{@link #getKey() Key}' attribute. + * + * + * @see #getKey() + * @generated + * @ordered + */ + protected static final String KEY_EDEFAULT = null; + + /** + * The cached value of the '{@link #getKey() Key}' attribute. + * + * + * @see #getKey() + * @generated + * @ordered + */ + protected String key = KEY_EDEFAULT; + + /** + * The default value of the '{@link #getValue() Value}' attribute. + * + * + * @see #getValue() + * @generated + * @ordered + */ + protected static final String VALUE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getValue() Value}' attribute. + * + * + * @see #getValue() + * @generated + * @ordered + */ + protected String value = VALUE_EDEFAULT; + + /** + * + * + * @generated + */ + protected EXmlMap() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return OxmPackage.Literals.EXML_MAP; + } + + /** + * Returns the value of the 'Key' attribute. + * + *

+ * If the meaning of the 'Key' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Key' attribute. + * @see #setKey(String) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlMap_Key() + * @model + * @generated + */ + public String getKey() + { + return key; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlMap#getKey Key}' attribute. + * + * + * @param value the new value of the 'Key' attribute. + * @see #getKey() + * @generated + */ + public void setKey(String newKey) + { + String oldKey = key; + key = newKey; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_MAP__KEY, oldKey, key)); + } + + /** + * Returns the value of the 'Value' attribute. + * + *

+ * If the meaning of the 'Value' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Value' attribute. + * @see #setValue(String) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlMap_Value() + * @model + * @generated + */ + public String getValue() + { + return value; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlMap#getValue Value}' attribute. + * + * + * @param value the new value of the 'Value' attribute. + * @see #getValue() + * @generated + */ + public void setValue(String newValue) + { + String oldValue = value; + value = newValue; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_MAP__VALUE, oldValue, value)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case OxmPackage.EXML_MAP__KEY: + return getKey(); + case OxmPackage.EXML_MAP__VALUE: + return getValue(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case OxmPackage.EXML_MAP__KEY: + setKey((String)newValue); + return; + case OxmPackage.EXML_MAP__VALUE: + setValue((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case OxmPackage.EXML_MAP__KEY: + setKey(KEY_EDEFAULT); + return; + case OxmPackage.EXML_MAP__VALUE: + setValue(VALUE_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case OxmPackage.EXML_MAP__KEY: + return KEY_EDEFAULT == null ? key != null : !KEY_EDEFAULT.equals(key); + case OxmPackage.EXML_MAP__VALUE: + return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (key: "); + result.append(key); + result.append(", value: "); + result.append(value); + result.append(')'); + return result.toString(); + } + +} // EXmlMap diff --git a/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlMarshalNullRepresentation.java b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlMarshalNullRepresentation.java new file mode 100644 index 0000000000..a903cc5188 --- /dev/null +++ b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlMarshalNullRepresentation.java @@ -0,0 +1,250 @@ +/** + */ +package org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm; + +import java.util.Arrays; +import java.util.Collections; +import java.util.List; + +import org.eclipse.emf.common.util.Enumerator; + +/** + * + * A representation of the literals of the enumeration 'EXml Marshal Null Representation', + * and utility methods for working with them. + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlMarshalNullRepresentation() + * @model + * @generated + */ +public enum EXmlMarshalNullRepresentation implements Enumerator +{ + /** + * The 'XSI NIL' literal object. + * + * + * @see #XSI_NIL_VALUE + * @generated + * @ordered + */ + XSI_NIL(0, "XSI_NIL", "XSI_NIL"), + + /** + * The 'ABSENT NODE' literal object. + * + * + * @see #ABSENT_NODE_VALUE + * @generated + * @ordered + */ + ABSENT_NODE(1, "ABSENT_NODE", "ABSENT_NODE"), + + /** + * The 'EMPTY NODE' literal object. + * + * + * @see #EMPTY_NODE_VALUE + * @generated + * @ordered + */ + EMPTY_NODE(2, "EMPTY_NODE", "EMPTY_NODE"); + + /** + * The 'XSI NIL' literal value. + * + *

+ * If the meaning of 'XSI NIL' literal object isn't clear, + * there really should be more of a description here... + *

+ * + * @see #XSI_NIL + * @model + * @generated + * @ordered + */ + public static final int XSI_NIL_VALUE = 0; + + /** + * The 'ABSENT NODE' literal value. + * + *

+ * If the meaning of 'ABSENT NODE' literal object isn't clear, + * there really should be more of a description here... + *

+ * + * @see #ABSENT_NODE + * @model + * @generated + * @ordered + */ + public static final int ABSENT_NODE_VALUE = 1; + + /** + * The 'EMPTY NODE' literal value. + * + *

+ * If the meaning of 'EMPTY NODE' literal object isn't clear, + * there really should be more of a description here... + *

+ * + * @see #EMPTY_NODE + * @model + * @generated + * @ordered + */ + public static final int EMPTY_NODE_VALUE = 2; + + /** + * An array of all the 'EXml Marshal Null Representation' enumerators. + * + * + * @generated + */ + private static final EXmlMarshalNullRepresentation[] VALUES_ARRAY = + new EXmlMarshalNullRepresentation[] + { + XSI_NIL, + ABSENT_NODE, + EMPTY_NODE, + }; + + /** + * A public read-only list of all the 'EXml Marshal Null Representation' enumerators. + * + * + * @generated + */ + public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + + /** + * Returns the 'EXml Marshal Null Representation' literal with the specified literal value. + * + * + * @generated + */ + public static EXmlMarshalNullRepresentation get(String literal) + { + for (int i = 0; i < VALUES_ARRAY.length; ++i) + { + EXmlMarshalNullRepresentation result = VALUES_ARRAY[i]; + if (result.toString().equals(literal)) + { + return result; + } + } + return null; + } + + /** + * Returns the 'EXml Marshal Null Representation' literal with the specified name. + * + * + * @generated + */ + public static EXmlMarshalNullRepresentation getByName(String name) + { + for (int i = 0; i < VALUES_ARRAY.length; ++i) + { + EXmlMarshalNullRepresentation result = VALUES_ARRAY[i]; + if (result.getName().equals(name)) + { + return result; + } + } + return null; + } + + /** + * Returns the 'EXml Marshal Null Representation' literal with the specified integer value. + * + * + * @generated + */ + public static EXmlMarshalNullRepresentation get(int value) + { + switch (value) + { + case XSI_NIL_VALUE: return XSI_NIL; + case ABSENT_NODE_VALUE: return ABSENT_NODE; + case EMPTY_NODE_VALUE: return EMPTY_NODE; + } + return null; + } + + /** + * + * + * @generated + */ + private final int value; + + /** + * + * + * @generated + */ + private final String name; + + /** + * + * + * @generated + */ + private final String literal; + + /** + * Only this class can construct instances. + * + * + * @generated + */ + private EXmlMarshalNullRepresentation(int value, String name, String literal) + { + this.value = value; + this.name = name; + this.literal = literal; + } + + /** + * + * + * @generated + */ + public int getValue() + { + return value; + } + + /** + * + * + * @generated + */ + public String getName() + { + return name; + } + + /** + * + * + * @generated + */ + public String getLiteral() + { + return literal; + } + + /** + * Returns the literal value of the enumerator, which is its string representation. + * + * + * @generated + */ + @Override + public String toString() + { + return literal; + } + +} //EXmlMarshalNullRepresentation diff --git a/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlNs.java b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlNs.java new file mode 100644 index 0000000000..6bf5e9b58e --- /dev/null +++ b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlNs.java @@ -0,0 +1,260 @@ +/** + */ +package org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.jpt.common.core.resource.xml.EBaseObject; +import org.eclipse.jpt.common.core.resource.xml.EBaseObjectImpl; + +/** + * + * A representation of the model object 'EXml Ns'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlNs#getNamespaceUri Namespace Uri}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlNs#getPrefix Prefix}
  • + *
+ *

+ * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlNs() + * @model kind="class" + * @extends EBaseObject + * @generated + */ +public class EXmlNs extends EBaseObjectImpl implements EBaseObject +{ + /** + * The default value of the '{@link #getNamespaceUri() Namespace Uri}' attribute. + * + * + * @see #getNamespaceUri() + * @generated + * @ordered + */ + protected static final String NAMESPACE_URI_EDEFAULT = null; + + /** + * The cached value of the '{@link #getNamespaceUri() Namespace Uri}' attribute. + * + * + * @see #getNamespaceUri() + * @generated + * @ordered + */ + protected String namespaceUri = NAMESPACE_URI_EDEFAULT; + + /** + * The default value of the '{@link #getPrefix() Prefix}' attribute. + * + * + * @see #getPrefix() + * @generated + * @ordered + */ + protected static final String PREFIX_EDEFAULT = null; + + /** + * The cached value of the '{@link #getPrefix() Prefix}' attribute. + * + * + * @see #getPrefix() + * @generated + * @ordered + */ + protected String prefix = PREFIX_EDEFAULT; + + /** + * + * + * @generated + */ + protected EXmlNs() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return OxmPackage.Literals.EXML_NS; + } + + /** + * Returns the value of the 'Namespace Uri' attribute. + * + *

+ * If the meaning of the 'Namespace Uri' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Namespace Uri' attribute. + * @see #setNamespaceUri(String) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlNs_NamespaceUri() + * @model + * @generated + */ + public String getNamespaceUri() + { + return namespaceUri; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlNs#getNamespaceUri Namespace Uri}' attribute. + * + * + * @param value the new value of the 'Namespace Uri' attribute. + * @see #getNamespaceUri() + * @generated + */ + public void setNamespaceUri(String newNamespaceUri) + { + String oldNamespaceUri = namespaceUri; + namespaceUri = newNamespaceUri; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_NS__NAMESPACE_URI, oldNamespaceUri, namespaceUri)); + } + + /** + * Returns the value of the 'Prefix' attribute. + * + *

+ * If the meaning of the 'Prefix' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Prefix' attribute. + * @see #setPrefix(String) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlNs_Prefix() + * @model + * @generated + */ + public String getPrefix() + { + return prefix; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlNs#getPrefix Prefix}' attribute. + * + * + * @param value the new value of the 'Prefix' attribute. + * @see #getPrefix() + * @generated + */ + public void setPrefix(String newPrefix) + { + String oldPrefix = prefix; + prefix = newPrefix; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_NS__PREFIX, oldPrefix, prefix)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case OxmPackage.EXML_NS__NAMESPACE_URI: + return getNamespaceUri(); + case OxmPackage.EXML_NS__PREFIX: + return getPrefix(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case OxmPackage.EXML_NS__NAMESPACE_URI: + setNamespaceUri((String)newValue); + return; + case OxmPackage.EXML_NS__PREFIX: + setPrefix((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case OxmPackage.EXML_NS__NAMESPACE_URI: + setNamespaceUri(NAMESPACE_URI_EDEFAULT); + return; + case OxmPackage.EXML_NS__PREFIX: + setPrefix(PREFIX_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case OxmPackage.EXML_NS__NAMESPACE_URI: + return NAMESPACE_URI_EDEFAULT == null ? namespaceUri != null : !NAMESPACE_URI_EDEFAULT.equals(namespaceUri); + case OxmPackage.EXML_NS__PREFIX: + return PREFIX_EDEFAULT == null ? prefix != null : !PREFIX_EDEFAULT.equals(prefix); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (namespaceUri: "); + result.append(namespaceUri); + result.append(", prefix: "); + result.append(prefix); + result.append(')'); + return result.toString(); + } + +} // EXmlNs diff --git a/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlNsForm.java b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlNsForm.java new file mode 100644 index 0000000000..9b7519d30f --- /dev/null +++ b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlNsForm.java @@ -0,0 +1,250 @@ +/** + */ +package org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm; + +import java.util.Arrays; +import java.util.Collections; +import java.util.List; + +import org.eclipse.emf.common.util.Enumerator; + +/** + * + * A representation of the literals of the enumeration 'EXml Ns Form', + * and utility methods for working with them. + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlNsForm() + * @model + * @generated + */ +public enum EXmlNsForm implements Enumerator +{ + /** + * The 'UNQUALIFIED' literal object. + * + * + * @see #UNQUALIFIED_VALUE + * @generated + * @ordered + */ + UNQUALIFIED(0, "UNQUALIFIED", "UNQUALIFIED"), + + /** + * The 'QUALIFIED' literal object. + * + * + * @see #QUALIFIED_VALUE + * @generated + * @ordered + */ + QUALIFIED(1, "QUALIFIED", "QUALIFIED"), + + /** + * The 'UNSET' literal object. + * + * + * @see #UNSET_VALUE + * @generated + * @ordered + */ + UNSET(2, "UNSET", "UNSET"); + + /** + * The 'UNQUALIFIED' literal value. + * + *

+ * If the meaning of 'UNQUALIFIED' literal object isn't clear, + * there really should be more of a description here... + *

+ * + * @see #UNQUALIFIED + * @model + * @generated + * @ordered + */ + public static final int UNQUALIFIED_VALUE = 0; + + /** + * The 'QUALIFIED' literal value. + * + *

+ * If the meaning of 'QUALIFIED' literal object isn't clear, + * there really should be more of a description here... + *

+ * + * @see #QUALIFIED + * @model + * @generated + * @ordered + */ + public static final int QUALIFIED_VALUE = 1; + + /** + * The 'UNSET' literal value. + * + *

+ * If the meaning of 'UNSET' literal object isn't clear, + * there really should be more of a description here... + *

+ * + * @see #UNSET + * @model + * @generated + * @ordered + */ + public static final int UNSET_VALUE = 2; + + /** + * An array of all the 'EXml Ns Form' enumerators. + * + * + * @generated + */ + private static final EXmlNsForm[] VALUES_ARRAY = + new EXmlNsForm[] + { + UNQUALIFIED, + QUALIFIED, + UNSET, + }; + + /** + * A public read-only list of all the 'EXml Ns Form' enumerators. + * + * + * @generated + */ + public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + + /** + * Returns the 'EXml Ns Form' literal with the specified literal value. + * + * + * @generated + */ + public static EXmlNsForm get(String literal) + { + for (int i = 0; i < VALUES_ARRAY.length; ++i) + { + EXmlNsForm result = VALUES_ARRAY[i]; + if (result.toString().equals(literal)) + { + return result; + } + } + return null; + } + + /** + * Returns the 'EXml Ns Form' literal with the specified name. + * + * + * @generated + */ + public static EXmlNsForm getByName(String name) + { + for (int i = 0; i < VALUES_ARRAY.length; ++i) + { + EXmlNsForm result = VALUES_ARRAY[i]; + if (result.getName().equals(name)) + { + return result; + } + } + return null; + } + + /** + * Returns the 'EXml Ns Form' literal with the specified integer value. + * + * + * @generated + */ + public static EXmlNsForm get(int value) + { + switch (value) + { + case UNQUALIFIED_VALUE: return UNQUALIFIED; + case QUALIFIED_VALUE: return QUALIFIED; + case UNSET_VALUE: return UNSET; + } + return null; + } + + /** + * + * + * @generated + */ + private final int value; + + /** + * + * + * @generated + */ + private final String name; + + /** + * + * + * @generated + */ + private final String literal; + + /** + * Only this class can construct instances. + * + * + * @generated + */ + private EXmlNsForm(int value, String name, String literal) + { + this.value = value; + this.name = name; + this.literal = literal; + } + + /** + * + * + * @generated + */ + public int getValue() + { + return value; + } + + /** + * + * + * @generated + */ + public String getName() + { + return name; + } + + /** + * + * + * @generated + */ + public String getLiteral() + { + return literal; + } + + /** + * Returns the literal value of the enumerator, which is its string representation. + * + * + * @generated + */ + @Override + public String toString() + { + return literal; + } + +} //EXmlNsForm diff --git a/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlNullPolicy.java b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlNullPolicy.java new file mode 100644 index 0000000000..a17e04237e --- /dev/null +++ b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlNullPolicy.java @@ -0,0 +1,216 @@ +/******************************************************************************* + * Copyright (c) 2012 Oracle. All rights reserved. + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v1.0, which accompanies this distribution + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Oracle - initial API and implementation + *******************************************************************************/ +package org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.wst.common.internal.emf.resource.Translator; + +/** + * + * A representation of the model object 'EXml Null Policy'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlNullPolicy#isIsSetPerformedForAbsentNode Is Set Performed For Absent Node}
  • + *
+ *

+ * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlNullPolicy() + * @model kind="class" + * @generated + */ +public class EXmlNullPolicy extends EAbstractXmlNullPolicy +{ + /** + * The default value of the '{@link #isIsSetPerformedForAbsentNode() Is Set Performed For Absent Node}' attribute. + * + * + * @see #isIsSetPerformedForAbsentNode() + * @generated + * @ordered + */ + protected static final boolean IS_SET_PERFORMED_FOR_ABSENT_NODE_EDEFAULT = false; + /** + * The cached value of the '{@link #isIsSetPerformedForAbsentNode() Is Set Performed For Absent Node}' attribute. + * + * + * @see #isIsSetPerformedForAbsentNode() + * @generated + * @ordered + */ + protected boolean isSetPerformedForAbsentNode = IS_SET_PERFORMED_FOR_ABSENT_NODE_EDEFAULT; + + + /** + * + * + * @generated + */ + protected EXmlNullPolicy() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return OxmPackage.Literals.EXML_NULL_POLICY; + } + + + /** + * Returns the value of the 'Is Set Performed For Absent Node' attribute. + * + *

+ * If the meaning of the 'Is Set Performed For Absent Node' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Is Set Performed For Absent Node' attribute. + * @see #setIsSetPerformedForAbsentNode(boolean) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlNullPolicy_IsSetPerformedForAbsentNode() + * @model + * @generated + */ + public boolean isIsSetPerformedForAbsentNode() + { + return isSetPerformedForAbsentNode; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlNullPolicy#isIsSetPerformedForAbsentNode Is Set Performed For Absent Node}' attribute. + * + * + * @param value the new value of the 'Is Set Performed For Absent Node' attribute. + * @see #isIsSetPerformedForAbsentNode() + * @generated + */ + public void setIsSetPerformedForAbsentNode(boolean newIsSetPerformedForAbsentNode) + { + boolean oldIsSetPerformedForAbsentNode = isSetPerformedForAbsentNode; + isSetPerformedForAbsentNode = newIsSetPerformedForAbsentNode; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_NULL_POLICY__IS_SET_PERFORMED_FOR_ABSENT_NODE, oldIsSetPerformedForAbsentNode, isSetPerformedForAbsentNode)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case OxmPackage.EXML_NULL_POLICY__IS_SET_PERFORMED_FOR_ABSENT_NODE: + return isIsSetPerformedForAbsentNode(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case OxmPackage.EXML_NULL_POLICY__IS_SET_PERFORMED_FOR_ABSENT_NODE: + setIsSetPerformedForAbsentNode((Boolean)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case OxmPackage.EXML_NULL_POLICY__IS_SET_PERFORMED_FOR_ABSENT_NODE: + setIsSetPerformedForAbsentNode(IS_SET_PERFORMED_FOR_ABSENT_NODE_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case OxmPackage.EXML_NULL_POLICY__IS_SET_PERFORMED_FOR_ABSENT_NODE: + return isSetPerformedForAbsentNode != IS_SET_PERFORMED_FOR_ABSENT_NODE_EDEFAULT; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (isSetPerformedForAbsentNode: "); + result.append(isSetPerformedForAbsentNode); + result.append(')'); + return result.toString(); + } + + + // ***** translators ***** + + static class XmlNullPolicyTranslator + extends AbstractAbstractXmlNullPolicyTranslator { + + public XmlNullPolicyTranslator() { + super(EclipseLink.XML_NULL_POLICY, buildTranslatorChildren()); + } + + private static Translator[] buildTranslatorChildren() { + return new Translator[] { + }; + } + + @Override + public EObject createEMFObject(String nodeName, String readAheadName) { + return OxmFactory.eINSTANCE.createEXmlNullPolicy(); + } + } +} \ No newline at end of file diff --git a/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlProperty.java b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlProperty.java new file mode 100644 index 0000000000..889604e7eb --- /dev/null +++ b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlProperty.java @@ -0,0 +1,328 @@ +/** + */ +package org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.jpt.common.core.resource.xml.EBaseObject; +import org.eclipse.jpt.common.core.resource.xml.EBaseObjectImpl; + +/** + * + * A representation of the model object 'EXml Property'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlProperty#getName Name}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlProperty#getValue Value}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlProperty#getValueType Value Type}
  • + *
+ *

+ * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlProperty() + * @model kind="class" + * @extends EBaseObject + * @generated + */ +public class EXmlProperty extends EBaseObjectImpl implements EBaseObject +{ + /** + * The default value of the '{@link #getName() Name}' attribute. + * + * + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() Name}' attribute. + * + * + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * The default value of the '{@link #getValue() Value}' attribute. + * + * + * @see #getValue() + * @generated + * @ordered + */ + protected static final String VALUE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getValue() Value}' attribute. + * + * + * @see #getValue() + * @generated + * @ordered + */ + protected String value = VALUE_EDEFAULT; + + /** + * The default value of the '{@link #getValueType() Value Type}' attribute. + * + * + * @see #getValueType() + * @generated + * @ordered + */ + protected static final String VALUE_TYPE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getValueType() Value Type}' attribute. + * + * + * @see #getValueType() + * @generated + * @ordered + */ + protected String valueType = VALUE_TYPE_EDEFAULT; + + /** + * + * + * @generated + */ + protected EXmlProperty() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return OxmPackage.Literals.EXML_PROPERTY; + } + + /** + * Returns the value of the 'Name' attribute. + * + *

+ * If the meaning of the 'Name' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Name' attribute. + * @see #setName(String) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlProperty_Name() + * @model + * @generated + */ + public String getName() + { + return name; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlProperty#getName Name}' attribute. + * + * + * @param value the new value of the 'Name' attribute. + * @see #getName() + * @generated + */ + public void setName(String newName) + { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_PROPERTY__NAME, oldName, name)); + } + + /** + * Returns the value of the 'Value' attribute. + * + *

+ * If the meaning of the 'Value' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Value' attribute. + * @see #setValue(String) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlProperty_Value() + * @model + * @generated + */ + public String getValue() + { + return value; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlProperty#getValue Value}' attribute. + * + * + * @param value the new value of the 'Value' attribute. + * @see #getValue() + * @generated + */ + public void setValue(String newValue) + { + String oldValue = value; + value = newValue; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_PROPERTY__VALUE, oldValue, value)); + } + + /** + * Returns the value of the 'Value Type' attribute. + * + *

+ * If the meaning of the 'Value Type' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Value Type' attribute. + * @see #setValueType(String) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlProperty_ValueType() + * @model + * @generated + */ + public String getValueType() + { + return valueType; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlProperty#getValueType Value Type}' attribute. + * + * + * @param value the new value of the 'Value Type' attribute. + * @see #getValueType() + * @generated + */ + public void setValueType(String newValueType) + { + String oldValueType = valueType; + valueType = newValueType; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_PROPERTY__VALUE_TYPE, oldValueType, valueType)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case OxmPackage.EXML_PROPERTY__NAME: + return getName(); + case OxmPackage.EXML_PROPERTY__VALUE: + return getValue(); + case OxmPackage.EXML_PROPERTY__VALUE_TYPE: + return getValueType(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case OxmPackage.EXML_PROPERTY__NAME: + setName((String)newValue); + return; + case OxmPackage.EXML_PROPERTY__VALUE: + setValue((String)newValue); + return; + case OxmPackage.EXML_PROPERTY__VALUE_TYPE: + setValueType((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case OxmPackage.EXML_PROPERTY__NAME: + setName(NAME_EDEFAULT); + return; + case OxmPackage.EXML_PROPERTY__VALUE: + setValue(VALUE_EDEFAULT); + return; + case OxmPackage.EXML_PROPERTY__VALUE_TYPE: + setValueType(VALUE_TYPE_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case OxmPackage.EXML_PROPERTY__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case OxmPackage.EXML_PROPERTY__VALUE: + return VALUE_EDEFAULT == null ? value != null : !VALUE_EDEFAULT.equals(value); + case OxmPackage.EXML_PROPERTY__VALUE_TYPE: + return VALUE_TYPE_EDEFAULT == null ? valueType != null : !VALUE_TYPE_EDEFAULT.equals(valueType); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (name: "); + result.append(name); + result.append(", value: "); + result.append(value); + result.append(", valueType: "); + result.append(valueType); + result.append(')'); + return result.toString(); + } + +} // EXmlProperty diff --git a/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlReadTransformer.java b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlReadTransformer.java new file mode 100644 index 0000000000..494e40559a --- /dev/null +++ b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlReadTransformer.java @@ -0,0 +1,40 @@ +/** + */ +package org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm; + +import org.eclipse.emf.ecore.EClass; + +/** + * + * A representation of the model object 'EXml Read Transformer'. + * + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlReadTransformer() + * @model kind="class" + * @generated + */ +public class EXmlReadTransformer extends EAbstractXmlTransformer +{ + /** + * + * + * @generated + */ + protected EXmlReadTransformer() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return OxmPackage.Literals.EXML_READ_TRANSFORMER; + } + +} // EXmlReadTransformer diff --git a/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlRegistry.java b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlRegistry.java new file mode 100644 index 0000000000..2c9ab1aa62 --- /dev/null +++ b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlRegistry.java @@ -0,0 +1,260 @@ +/** + */ +package org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm; + +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.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.jpt.common.core.resource.xml.EBaseObject; +import org.eclipse.jpt.common.core.resource.xml.EBaseObjectImpl; + +/** + * + * A representation of the model object 'EXml Registry'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlRegistry#getName Name}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlRegistry#getXmlElementDecls Xml Element Decls}
  • + *
+ *

+ * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlRegistry() + * @model kind="class" + * @extends EBaseObject + * @generated + */ +public class EXmlRegistry extends EBaseObjectImpl implements EBaseObject +{ + /** + * The default value of the '{@link #getName() Name}' attribute. + * + * + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() Name}' attribute. + * + * + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * The cached value of the '{@link #getXmlElementDecls() Xml Element Decls}' containment reference list. + * + * + * @see #getXmlElementDecls() + * @generated + * @ordered + */ + protected EList xmlElementDecls; + + /** + * + * + * @generated + */ + protected EXmlRegistry() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return OxmPackage.Literals.EXML_REGISTRY; + } + + /** + * Returns the value of the 'Name' attribute. + * + *

+ * If the meaning of the 'Name' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Name' attribute. + * @see #setName(String) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlRegistry_Name() + * @model + * @generated + */ + public String getName() + { + return name; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlRegistry#getName Name}' attribute. + * + * + * @param value the new value of the 'Name' attribute. + * @see #getName() + * @generated + */ + public void setName(String newName) + { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_REGISTRY__NAME, oldName, name)); + } + + /** + * Returns the value of the 'Xml Element Decls' containment reference list. + * The list contents are of type {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementDecl}. + * + *

+ * If the meaning of the 'Xml Element Decls' containment reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Element Decls' containment reference list. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlRegistry_XmlElementDecls() + * @model containment="true" + * @generated + */ + public EList getXmlElementDecls() + { + if (xmlElementDecls == null) + { + xmlElementDecls = new EObjectContainmentEList(EXmlElementDecl.class, this, OxmPackage.EXML_REGISTRY__XML_ELEMENT_DECLS); + } + return xmlElementDecls; + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case OxmPackage.EXML_REGISTRY__XML_ELEMENT_DECLS: + return ((InternalEList)getXmlElementDecls()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case OxmPackage.EXML_REGISTRY__NAME: + return getName(); + case OxmPackage.EXML_REGISTRY__XML_ELEMENT_DECLS: + return getXmlElementDecls(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case OxmPackage.EXML_REGISTRY__NAME: + setName((String)newValue); + return; + case OxmPackage.EXML_REGISTRY__XML_ELEMENT_DECLS: + getXmlElementDecls().clear(); + getXmlElementDecls().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case OxmPackage.EXML_REGISTRY__NAME: + setName(NAME_EDEFAULT); + return; + case OxmPackage.EXML_REGISTRY__XML_ELEMENT_DECLS: + getXmlElementDecls().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case OxmPackage.EXML_REGISTRY__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case OxmPackage.EXML_REGISTRY__XML_ELEMENT_DECLS: + return xmlElementDecls != null && !xmlElementDecls.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (name: "); + result.append(name); + result.append(')'); + return result.toString(); + } + +} // EXmlRegistry diff --git a/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlRootElement.java b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlRootElement.java new file mode 100644 index 0000000000..fae54e244c --- /dev/null +++ b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlRootElement.java @@ -0,0 +1,255 @@ +/** + */ +package org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.jpt.common.core.resource.xml.EBaseObject; +import org.eclipse.jpt.common.core.resource.xml.EBaseObjectImpl; + +/** + * + * A representation of the model object 'EXml Root Element'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlRootElement#getName Name}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlRootElement#getNamespace Namespace}
  • + *
+ *

+ * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlRootElement() + * @model kind="class" + * @extends EBaseObject + * @generated + */ +public class EXmlRootElement extends EBaseObjectImpl implements EBaseObject +{ + /** + * The default value of the '{@link #getName() Name}' attribute. + * + * + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + /** + * The cached value of the '{@link #getName() Name}' attribute. + * + * + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + /** + * The default value of the '{@link #getNamespace() Namespace}' attribute. + * + * + * @see #getNamespace() + * @generated + * @ordered + */ + protected static final String NAMESPACE_EDEFAULT = null; + /** + * The cached value of the '{@link #getNamespace() Namespace}' attribute. + * + * + * @see #getNamespace() + * @generated + * @ordered + */ + protected String namespace = NAMESPACE_EDEFAULT; + + /** + * + * + * @generated + */ + protected EXmlRootElement() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return OxmPackage.Literals.EXML_ROOT_ELEMENT; + } + + /** + * Returns the value of the 'Name' attribute. + * + *

+ * If the meaning of the 'Name' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Name' attribute. + * @see #setName(String) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlRootElement_Name() + * @model + * @generated + */ + public String getName() + { + return name; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlRootElement#getName Name}' attribute. + * + * + * @param value the new value of the 'Name' attribute. + * @see #getName() + * @generated + */ + public void setName(String newName) + { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ROOT_ELEMENT__NAME, oldName, name)); + } + + /** + * Returns the value of the 'Namespace' attribute. + * + *

+ * If the meaning of the 'Namespace' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Namespace' attribute. + * @see #setNamespace(String) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlRootElement_Namespace() + * @model + * @generated + */ + public String getNamespace() + { + return namespace; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlRootElement#getNamespace Namespace}' attribute. + * + * + * @param value the new value of the 'Namespace' attribute. + * @see #getNamespace() + * @generated + */ + public void setNamespace(String newNamespace) + { + String oldNamespace = namespace; + namespace = newNamespace; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_ROOT_ELEMENT__NAMESPACE, oldNamespace, namespace)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case OxmPackage.EXML_ROOT_ELEMENT__NAME: + return getName(); + case OxmPackage.EXML_ROOT_ELEMENT__NAMESPACE: + return getNamespace(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case OxmPackage.EXML_ROOT_ELEMENT__NAME: + setName((String)newValue); + return; + case OxmPackage.EXML_ROOT_ELEMENT__NAMESPACE: + setNamespace((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case OxmPackage.EXML_ROOT_ELEMENT__NAME: + setName(NAME_EDEFAULT); + return; + case OxmPackage.EXML_ROOT_ELEMENT__NAMESPACE: + setNamespace(NAMESPACE_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case OxmPackage.EXML_ROOT_ELEMENT__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case OxmPackage.EXML_ROOT_ELEMENT__NAMESPACE: + return NAMESPACE_EDEFAULT == null ? namespace != null : !NAMESPACE_EDEFAULT.equals(namespace); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (name: "); + result.append(name); + result.append(", namespace: "); + result.append(namespace); + result.append(')'); + return result.toString(); + } + +} // EXmlRootElement diff --git a/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlSchema.java b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlSchema.java new file mode 100644 index 0000000000..f76d6a7adb --- /dev/null +++ b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlSchema.java @@ -0,0 +1,460 @@ +/** + */ +package org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm; + +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.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.jpt.common.core.resource.xml.EBaseObject; +import org.eclipse.jpt.common.core.resource.xml.EBaseObjectImpl; + +/** + * + * A representation of the model object 'EXml Schema'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlSchema#getAttributeFormDefault Attribute Form Default}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlSchema#getElementFormDefault Element Form Default}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlSchema#getLocation Location}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlSchema#getNamespace Namespace}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlSchema#getXmlns Xmlns}
  • + *
+ *

+ * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlSchema() + * @model kind="class" + * @extends EBaseObject + * @generated + */ +public class EXmlSchema extends EBaseObjectImpl implements EBaseObject +{ + /** + * The default value of the '{@link #getAttributeFormDefault() Attribute Form Default}' attribute. + * + * + * @see #getAttributeFormDefault() + * @generated + * @ordered + */ + protected static final EXmlNsForm ATTRIBUTE_FORM_DEFAULT_EDEFAULT = EXmlNsForm.UNQUALIFIED; + /** + * The cached value of the '{@link #getAttributeFormDefault() Attribute Form Default}' attribute. + * + * + * @see #getAttributeFormDefault() + * @generated + * @ordered + */ + protected EXmlNsForm attributeFormDefault = ATTRIBUTE_FORM_DEFAULT_EDEFAULT; + /** + * The default value of the '{@link #getElementFormDefault() Element Form Default}' attribute. + * + * + * @see #getElementFormDefault() + * @generated + * @ordered + */ + protected static final EXmlNsForm ELEMENT_FORM_DEFAULT_EDEFAULT = EXmlNsForm.UNQUALIFIED; + /** + * The cached value of the '{@link #getElementFormDefault() Element Form Default}' attribute. + * + * + * @see #getElementFormDefault() + * @generated + * @ordered + */ + protected EXmlNsForm elementFormDefault = ELEMENT_FORM_DEFAULT_EDEFAULT; + /** + * The default value of the '{@link #getLocation() Location}' attribute. + * + * + * @see #getLocation() + * @generated + * @ordered + */ + protected static final String LOCATION_EDEFAULT = null; + /** + * The cached value of the '{@link #getLocation() Location}' attribute. + * + * + * @see #getLocation() + * @generated + * @ordered + */ + protected String location = LOCATION_EDEFAULT; + /** + * The default value of the '{@link #getNamespace() Namespace}' attribute. + * + * + * @see #getNamespace() + * @generated + * @ordered + */ + protected static final String NAMESPACE_EDEFAULT = null; + /** + * The cached value of the '{@link #getNamespace() Namespace}' attribute. + * + * + * @see #getNamespace() + * @generated + * @ordered + */ + protected String namespace = NAMESPACE_EDEFAULT; + /** + * The cached value of the '{@link #getXmlns() Xmlns}' containment reference list. + * + * + * @see #getXmlns() + * @generated + * @ordered + */ + protected EList xmlns; + + /** + * + * + * @generated + */ + protected EXmlSchema() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return OxmPackage.Literals.EXML_SCHEMA; + } + + /** + * Returns the value of the 'Attribute Form Default' attribute. + * The literals are from the enumeration {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlNsForm}. + * + *

+ * If the meaning of the 'Attribute Form Default' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Attribute Form Default' attribute. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlNsForm + * @see #setAttributeFormDefault(EXmlNsForm) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlSchema_AttributeFormDefault() + * @model + * @generated + */ + public EXmlNsForm getAttributeFormDefault() + { + return attributeFormDefault; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlSchema#getAttributeFormDefault Attribute Form Default}' attribute. + * + * + * @param value the new value of the 'Attribute Form Default' attribute. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlNsForm + * @see #getAttributeFormDefault() + * @generated + */ + public void setAttributeFormDefault(EXmlNsForm newAttributeFormDefault) + { + EXmlNsForm oldAttributeFormDefault = attributeFormDefault; + attributeFormDefault = newAttributeFormDefault == null ? ATTRIBUTE_FORM_DEFAULT_EDEFAULT : newAttributeFormDefault; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_SCHEMA__ATTRIBUTE_FORM_DEFAULT, oldAttributeFormDefault, attributeFormDefault)); + } + + /** + * Returns the value of the 'Element Form Default' attribute. + * The literals are from the enumeration {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlNsForm}. + * + *

+ * If the meaning of the 'Element Form Default' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Element Form Default' attribute. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlNsForm + * @see #setElementFormDefault(EXmlNsForm) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlSchema_ElementFormDefault() + * @model + * @generated + */ + public EXmlNsForm getElementFormDefault() + { + return elementFormDefault; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlSchema#getElementFormDefault Element Form Default}' attribute. + * + * + * @param value the new value of the 'Element Form Default' attribute. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlNsForm + * @see #getElementFormDefault() + * @generated + */ + public void setElementFormDefault(EXmlNsForm newElementFormDefault) + { + EXmlNsForm oldElementFormDefault = elementFormDefault; + elementFormDefault = newElementFormDefault == null ? ELEMENT_FORM_DEFAULT_EDEFAULT : newElementFormDefault; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_SCHEMA__ELEMENT_FORM_DEFAULT, oldElementFormDefault, elementFormDefault)); + } + + /** + * Returns the value of the 'Location' attribute. + * + *

+ * If the meaning of the 'Location' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Location' attribute. + * @see #setLocation(String) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlSchema_Location() + * @model + * @generated + */ + public String getLocation() + { + return location; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlSchema#getLocation Location}' attribute. + * + * + * @param value the new value of the 'Location' attribute. + * @see #getLocation() + * @generated + */ + public void setLocation(String newLocation) + { + String oldLocation = location; + location = newLocation; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_SCHEMA__LOCATION, oldLocation, location)); + } + + /** + * Returns the value of the 'Namespace' attribute. + * + *

+ * If the meaning of the 'Namespace' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Namespace' attribute. + * @see #setNamespace(String) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlSchema_Namespace() + * @model + * @generated + */ + public String getNamespace() + { + return namespace; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlSchema#getNamespace Namespace}' attribute. + * + * + * @param value the new value of the 'Namespace' attribute. + * @see #getNamespace() + * @generated + */ + public void setNamespace(String newNamespace) + { + String oldNamespace = namespace; + namespace = newNamespace; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_SCHEMA__NAMESPACE, oldNamespace, namespace)); + } + + /** + * Returns the value of the 'Xmlns' containment reference list. + * The list contents are of type {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlNs}. + * + *

+ * If the meaning of the 'Xmlns' containment reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xmlns' containment reference list. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlSchema_Xmlns() + * @model containment="true" + * @generated + */ + public EList getXmlns() + { + if (xmlns == null) + { + xmlns = new EObjectContainmentEList(EXmlNs.class, this, OxmPackage.EXML_SCHEMA__XMLNS); + } + return xmlns; + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case OxmPackage.EXML_SCHEMA__XMLNS: + return ((InternalEList)getXmlns()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case OxmPackage.EXML_SCHEMA__ATTRIBUTE_FORM_DEFAULT: + return getAttributeFormDefault(); + case OxmPackage.EXML_SCHEMA__ELEMENT_FORM_DEFAULT: + return getElementFormDefault(); + case OxmPackage.EXML_SCHEMA__LOCATION: + return getLocation(); + case OxmPackage.EXML_SCHEMA__NAMESPACE: + return getNamespace(); + case OxmPackage.EXML_SCHEMA__XMLNS: + return getXmlns(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case OxmPackage.EXML_SCHEMA__ATTRIBUTE_FORM_DEFAULT: + setAttributeFormDefault((EXmlNsForm)newValue); + return; + case OxmPackage.EXML_SCHEMA__ELEMENT_FORM_DEFAULT: + setElementFormDefault((EXmlNsForm)newValue); + return; + case OxmPackage.EXML_SCHEMA__LOCATION: + setLocation((String)newValue); + return; + case OxmPackage.EXML_SCHEMA__NAMESPACE: + setNamespace((String)newValue); + return; + case OxmPackage.EXML_SCHEMA__XMLNS: + getXmlns().clear(); + getXmlns().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case OxmPackage.EXML_SCHEMA__ATTRIBUTE_FORM_DEFAULT: + setAttributeFormDefault(ATTRIBUTE_FORM_DEFAULT_EDEFAULT); + return; + case OxmPackage.EXML_SCHEMA__ELEMENT_FORM_DEFAULT: + setElementFormDefault(ELEMENT_FORM_DEFAULT_EDEFAULT); + return; + case OxmPackage.EXML_SCHEMA__LOCATION: + setLocation(LOCATION_EDEFAULT); + return; + case OxmPackage.EXML_SCHEMA__NAMESPACE: + setNamespace(NAMESPACE_EDEFAULT); + return; + case OxmPackage.EXML_SCHEMA__XMLNS: + getXmlns().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case OxmPackage.EXML_SCHEMA__ATTRIBUTE_FORM_DEFAULT: + return attributeFormDefault != ATTRIBUTE_FORM_DEFAULT_EDEFAULT; + case OxmPackage.EXML_SCHEMA__ELEMENT_FORM_DEFAULT: + return elementFormDefault != ELEMENT_FORM_DEFAULT_EDEFAULT; + case OxmPackage.EXML_SCHEMA__LOCATION: + return LOCATION_EDEFAULT == null ? location != null : !LOCATION_EDEFAULT.equals(location); + case OxmPackage.EXML_SCHEMA__NAMESPACE: + return NAMESPACE_EDEFAULT == null ? namespace != null : !NAMESPACE_EDEFAULT.equals(namespace); + case OxmPackage.EXML_SCHEMA__XMLNS: + return xmlns != null && !xmlns.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (attributeFormDefault: "); + result.append(attributeFormDefault); + result.append(", elementFormDefault: "); + result.append(elementFormDefault); + result.append(", location: "); + result.append(location); + result.append(", namespace: "); + result.append(namespace); + result.append(')'); + return result.toString(); + } + +} // EXmlSchema diff --git a/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlSchemaType.java b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlSchemaType.java new file mode 100644 index 0000000000..f32845a235 --- /dev/null +++ b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlSchemaType.java @@ -0,0 +1,321 @@ +/** + */ +package org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.jpt.common.core.resource.xml.EBaseObject; +import org.eclipse.jpt.common.core.resource.xml.EBaseObjectImpl; + +/** + * + * A representation of the model object 'EXml Schema Type'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlSchemaType#getName Name}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlSchemaType#getNamespace Namespace}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlSchemaType#getType Type}
  • + *
+ *

+ * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlSchemaType() + * @model kind="class" + * @extends EBaseObject + * @generated + */ +public class EXmlSchemaType extends EBaseObjectImpl implements EBaseObject +{ + /** + * The default value of the '{@link #getName() Name}' attribute. + * + * + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + /** + * The cached value of the '{@link #getName() Name}' attribute. + * + * + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + /** + * The default value of the '{@link #getNamespace() Namespace}' attribute. + * + * + * @see #getNamespace() + * @generated + * @ordered + */ + protected static final String NAMESPACE_EDEFAULT = null; + /** + * The cached value of the '{@link #getNamespace() Namespace}' attribute. + * + * + * @see #getNamespace() + * @generated + * @ordered + */ + protected String namespace = NAMESPACE_EDEFAULT; + /** + * The default value of the '{@link #getType() Type}' attribute. + * + * + * @see #getType() + * @generated + * @ordered + */ + protected static final String TYPE_EDEFAULT = null; + /** + * The cached value of the '{@link #getType() Type}' attribute. + * + * + * @see #getType() + * @generated + * @ordered + */ + protected String type = TYPE_EDEFAULT; + + /** + * + * + * @generated + */ + protected EXmlSchemaType() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return OxmPackage.Literals.EXML_SCHEMA_TYPE; + } + + /** + * Returns the value of the 'Name' attribute. + * + *

+ * If the meaning of the 'Name' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Name' attribute. + * @see #setName(String) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlSchemaType_Name() + * @model + * @generated + */ + public String getName() + { + return name; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlSchemaType#getName Name}' attribute. + * + * + * @param value the new value of the 'Name' attribute. + * @see #getName() + * @generated + */ + public void setName(String newName) + { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_SCHEMA_TYPE__NAME, oldName, name)); + } + + /** + * Returns the value of the 'Namespace' attribute. + * + *

+ * If the meaning of the 'Namespace' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Namespace' attribute. + * @see #setNamespace(String) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlSchemaType_Namespace() + * @model + * @generated + */ + public String getNamespace() + { + return namespace; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlSchemaType#getNamespace Namespace}' attribute. + * + * + * @param value the new value of the 'Namespace' attribute. + * @see #getNamespace() + * @generated + */ + public void setNamespace(String newNamespace) + { + String oldNamespace = namespace; + namespace = newNamespace; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_SCHEMA_TYPE__NAMESPACE, oldNamespace, namespace)); + } + + /** + * Returns the value of the 'Type' attribute. + * + *

+ * If the meaning of the 'Type' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Type' attribute. + * @see #setType(String) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlSchemaType_Type() + * @model + * @generated + */ + public String getType() + { + return type; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlSchemaType#getType Type}' attribute. + * + * + * @param value the new value of the 'Type' attribute. + * @see #getType() + * @generated + */ + public void setType(String newType) + { + String oldType = type; + type = newType; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_SCHEMA_TYPE__TYPE, oldType, type)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case OxmPackage.EXML_SCHEMA_TYPE__NAME: + return getName(); + case OxmPackage.EXML_SCHEMA_TYPE__NAMESPACE: + return getNamespace(); + case OxmPackage.EXML_SCHEMA_TYPE__TYPE: + return getType(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case OxmPackage.EXML_SCHEMA_TYPE__NAME: + setName((String)newValue); + return; + case OxmPackage.EXML_SCHEMA_TYPE__NAMESPACE: + setNamespace((String)newValue); + return; + case OxmPackage.EXML_SCHEMA_TYPE__TYPE: + setType((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case OxmPackage.EXML_SCHEMA_TYPE__NAME: + setName(NAME_EDEFAULT); + return; + case OxmPackage.EXML_SCHEMA_TYPE__NAMESPACE: + setNamespace(NAMESPACE_EDEFAULT); + return; + case OxmPackage.EXML_SCHEMA_TYPE__TYPE: + setType(TYPE_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case OxmPackage.EXML_SCHEMA_TYPE__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case OxmPackage.EXML_SCHEMA_TYPE__NAMESPACE: + return NAMESPACE_EDEFAULT == null ? namespace != null : !NAMESPACE_EDEFAULT.equals(namespace); + case OxmPackage.EXML_SCHEMA_TYPE__TYPE: + return TYPE_EDEFAULT == null ? type != null : !TYPE_EDEFAULT.equals(type); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (name: "); + result.append(name); + result.append(", namespace: "); + result.append(namespace); + result.append(", type: "); + result.append(type); + result.append(')'); + return result.toString(); + } + +} // EXmlSchemaType diff --git a/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlTransformation.java b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlTransformation.java new file mode 100644 index 0000000000..110a7278b9 --- /dev/null +++ b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlTransformation.java @@ -0,0 +1,546 @@ +/******************************************************************************* + * Copyright (c) 2012 Oracle. All rights reserved. + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v1.0, which accompanies this distribution + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Oracle - initial API and implementation + *******************************************************************************/ +package org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm; + +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.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.emf.ecore.EObject; +import org.eclipse.emf.ecore.EStructuralFeature; +import org.eclipse.wst.common.internal.emf.resource.Translator; + +/** + * + * A representation of the model object 'EXml Transformation'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlTransformation#isOptional Optional}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlTransformation#getXmlReadTransformer Xml Read Transformer}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlTransformation#getXmlWriteTransformers Xml Write Transformers}
  • + *
+ *

+ * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlTransformation() + * @model kind="class" + * @generated + */ +public class EXmlTransformation extends EJavaAttribute implements EAccessibleJavaAttribute, EPropertyHolder +{ + /** + * The cached value of the '{@link #getXmlAccessMethods() Xml Access Methods}' containment reference. + * + * + * @see #getXmlAccessMethods() + * @generated + * @ordered + */ + protected EXmlAccessMethods xmlAccessMethods; + /** + * The cached value of the '{@link #getXmlProperties() Xml Properties}' containment reference list. + * + * + * @see #getXmlProperties() + * @generated + * @ordered + */ + protected EList xmlProperties; + /** + * The default value of the '{@link #isOptional() Optional}' attribute. + * + * + * @see #isOptional() + * @generated + * @ordered + */ + protected static final boolean OPTIONAL_EDEFAULT = false; + /** + * The cached value of the '{@link #isOptional() Optional}' attribute. + * + * + * @see #isOptional() + * @generated + * @ordered + */ + protected boolean optional = OPTIONAL_EDEFAULT; + /** + * The cached value of the '{@link #getXmlReadTransformer() Xml Read Transformer}' containment reference. + * + * + * @see #getXmlReadTransformer() + * @generated + * @ordered + */ + protected EXmlReadTransformer xmlReadTransformer; + /** + * The cached value of the '{@link #getXmlWriteTransformers() Xml Write Transformers}' containment reference list. + * + * + * @see #getXmlWriteTransformers() + * @generated + * @ordered + */ + protected EList xmlWriteTransformers; + + + /** + * + * + * @generated + */ + protected EXmlTransformation() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return OxmPackage.Literals.EXML_TRANSFORMATION; + } + + + /** + * Returns the value of the 'Xml Access Methods' containment reference. + * + *

+ * If the meaning of the 'Xml Access Methods' containment reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Access Methods' containment reference. + * @see #setXmlAccessMethods(EXmlAccessMethods) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEAccessibleJavaAttribute_XmlAccessMethods() + * @model containment="true" + * @generated + */ + public EXmlAccessMethods getXmlAccessMethods() + { + return xmlAccessMethods; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetXmlAccessMethods(EXmlAccessMethods newXmlAccessMethods, NotificationChain msgs) + { + EXmlAccessMethods oldXmlAccessMethods = xmlAccessMethods; + xmlAccessMethods = newXmlAccessMethods; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_TRANSFORMATION__XML_ACCESS_METHODS, oldXmlAccessMethods, newXmlAccessMethods); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlTransformation#getXmlAccessMethods Xml Access Methods}' containment reference. + * + * + * @param value the new value of the 'Xml Access Methods' containment reference. + * @see #getXmlAccessMethods() + * @generated + */ + public void setXmlAccessMethods(EXmlAccessMethods newXmlAccessMethods) + { + if (newXmlAccessMethods != xmlAccessMethods) + { + NotificationChain msgs = null; + if (xmlAccessMethods != null) + msgs = ((InternalEObject)xmlAccessMethods).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OxmPackage.EXML_TRANSFORMATION__XML_ACCESS_METHODS, null, msgs); + if (newXmlAccessMethods != null) + msgs = ((InternalEObject)newXmlAccessMethods).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OxmPackage.EXML_TRANSFORMATION__XML_ACCESS_METHODS, null, msgs); + msgs = basicSetXmlAccessMethods(newXmlAccessMethods, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_TRANSFORMATION__XML_ACCESS_METHODS, newXmlAccessMethods, newXmlAccessMethods)); + } + + /** + * Returns the value of the 'Xml Properties' containment reference list. + * The list contents are of type {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlProperty}. + * + *

+ * If the meaning of the 'Xml Properties' containment reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Properties' containment reference list. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEPropertyHolder_XmlProperties() + * @model containment="true" + * @generated + */ + public EList getXmlProperties() + { + if (xmlProperties == null) + { + xmlProperties = new EObjectContainmentEList(EXmlProperty.class, this, OxmPackage.EXML_TRANSFORMATION__XML_PROPERTIES); + } + return xmlProperties; + } + + /** + * Returns the value of the 'Optional' attribute. + * + *

+ * If the meaning of the 'Optional' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Optional' attribute. + * @see #setOptional(boolean) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlTransformation_Optional() + * @model + * @generated + */ + public boolean isOptional() + { + return optional; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlTransformation#isOptional Optional}' attribute. + * + * + * @param value the new value of the 'Optional' attribute. + * @see #isOptional() + * @generated + */ + public void setOptional(boolean newOptional) + { + boolean oldOptional = optional; + optional = newOptional; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_TRANSFORMATION__OPTIONAL, oldOptional, optional)); + } + + /** + * Returns the value of the 'Xml Read Transformer' containment reference. + * + *

+ * If the meaning of the 'Xml Read Transformer' containment reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Read Transformer' containment reference. + * @see #setXmlReadTransformer(EXmlReadTransformer) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlTransformation_XmlReadTransformer() + * @model containment="true" + * @generated + */ + public EXmlReadTransformer getXmlReadTransformer() + { + return xmlReadTransformer; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetXmlReadTransformer(EXmlReadTransformer newXmlReadTransformer, NotificationChain msgs) + { + EXmlReadTransformer oldXmlReadTransformer = xmlReadTransformer; + xmlReadTransformer = newXmlReadTransformer; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_TRANSFORMATION__XML_READ_TRANSFORMER, oldXmlReadTransformer, newXmlReadTransformer); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlTransformation#getXmlReadTransformer Xml Read Transformer}' containment reference. + * + * + * @param value the new value of the 'Xml Read Transformer' containment reference. + * @see #getXmlReadTransformer() + * @generated + */ + public void setXmlReadTransformer(EXmlReadTransformer newXmlReadTransformer) + { + if (newXmlReadTransformer != xmlReadTransformer) + { + NotificationChain msgs = null; + if (xmlReadTransformer != null) + msgs = ((InternalEObject)xmlReadTransformer).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OxmPackage.EXML_TRANSFORMATION__XML_READ_TRANSFORMER, null, msgs); + if (newXmlReadTransformer != null) + msgs = ((InternalEObject)newXmlReadTransformer).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OxmPackage.EXML_TRANSFORMATION__XML_READ_TRANSFORMER, null, msgs); + msgs = basicSetXmlReadTransformer(newXmlReadTransformer, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_TRANSFORMATION__XML_READ_TRANSFORMER, newXmlReadTransformer, newXmlReadTransformer)); + } + + /** + * Returns the value of the 'Xml Write Transformers' containment reference list. + * The list contents are of type {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlWriteTransformer}. + * + *

+ * If the meaning of the 'Xml Write Transformers' containment reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Write Transformers' containment reference list. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlTransformation_XmlWriteTransformers() + * @model containment="true" + * @generated + */ + public EList getXmlWriteTransformers() + { + if (xmlWriteTransformers == null) + { + xmlWriteTransformers = new EObjectContainmentEList(EXmlWriteTransformer.class, this, OxmPackage.EXML_TRANSFORMATION__XML_WRITE_TRANSFORMERS); + } + return xmlWriteTransformers; + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case OxmPackage.EXML_TRANSFORMATION__XML_ACCESS_METHODS: + return basicSetXmlAccessMethods(null, msgs); + case OxmPackage.EXML_TRANSFORMATION__XML_PROPERTIES: + return ((InternalEList)getXmlProperties()).basicRemove(otherEnd, msgs); + case OxmPackage.EXML_TRANSFORMATION__XML_READ_TRANSFORMER: + return basicSetXmlReadTransformer(null, msgs); + case OxmPackage.EXML_TRANSFORMATION__XML_WRITE_TRANSFORMERS: + return ((InternalEList)getXmlWriteTransformers()).basicRemove(otherEnd, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case OxmPackage.EXML_TRANSFORMATION__XML_ACCESS_METHODS: + return getXmlAccessMethods(); + case OxmPackage.EXML_TRANSFORMATION__XML_PROPERTIES: + return getXmlProperties(); + case OxmPackage.EXML_TRANSFORMATION__OPTIONAL: + return isOptional(); + case OxmPackage.EXML_TRANSFORMATION__XML_READ_TRANSFORMER: + return getXmlReadTransformer(); + case OxmPackage.EXML_TRANSFORMATION__XML_WRITE_TRANSFORMERS: + return getXmlWriteTransformers(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case OxmPackage.EXML_TRANSFORMATION__XML_ACCESS_METHODS: + setXmlAccessMethods((EXmlAccessMethods)newValue); + return; + case OxmPackage.EXML_TRANSFORMATION__XML_PROPERTIES: + getXmlProperties().clear(); + getXmlProperties().addAll((Collection)newValue); + return; + case OxmPackage.EXML_TRANSFORMATION__OPTIONAL: + setOptional((Boolean)newValue); + return; + case OxmPackage.EXML_TRANSFORMATION__XML_READ_TRANSFORMER: + setXmlReadTransformer((EXmlReadTransformer)newValue); + return; + case OxmPackage.EXML_TRANSFORMATION__XML_WRITE_TRANSFORMERS: + getXmlWriteTransformers().clear(); + getXmlWriteTransformers().addAll((Collection)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case OxmPackage.EXML_TRANSFORMATION__XML_ACCESS_METHODS: + setXmlAccessMethods((EXmlAccessMethods)null); + return; + case OxmPackage.EXML_TRANSFORMATION__XML_PROPERTIES: + getXmlProperties().clear(); + return; + case OxmPackage.EXML_TRANSFORMATION__OPTIONAL: + setOptional(OPTIONAL_EDEFAULT); + return; + case OxmPackage.EXML_TRANSFORMATION__XML_READ_TRANSFORMER: + setXmlReadTransformer((EXmlReadTransformer)null); + return; + case OxmPackage.EXML_TRANSFORMATION__XML_WRITE_TRANSFORMERS: + getXmlWriteTransformers().clear(); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case OxmPackage.EXML_TRANSFORMATION__XML_ACCESS_METHODS: + return xmlAccessMethods != null; + case OxmPackage.EXML_TRANSFORMATION__XML_PROPERTIES: + return xmlProperties != null && !xmlProperties.isEmpty(); + case OxmPackage.EXML_TRANSFORMATION__OPTIONAL: + return optional != OPTIONAL_EDEFAULT; + case OxmPackage.EXML_TRANSFORMATION__XML_READ_TRANSFORMER: + return xmlReadTransformer != null; + case OxmPackage.EXML_TRANSFORMATION__XML_WRITE_TRANSFORMERS: + return xmlWriteTransformers != null && !xmlWriteTransformers.isEmpty(); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public int eBaseStructuralFeatureID(int derivedFeatureID, Class baseClass) + { + if (baseClass == EAccessibleJavaAttribute.class) + { + switch (derivedFeatureID) + { + case OxmPackage.EXML_TRANSFORMATION__XML_ACCESS_METHODS: return OxmPackage.EACCESSIBLE_JAVA_ATTRIBUTE__XML_ACCESS_METHODS; + default: return -1; + } + } + if (baseClass == EPropertyHolder.class) + { + switch (derivedFeatureID) + { + case OxmPackage.EXML_TRANSFORMATION__XML_PROPERTIES: return OxmPackage.EPROPERTY_HOLDER__XML_PROPERTIES; + default: return -1; + } + } + return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); + } + + /** + * + * + * @generated + */ + @Override + public int eDerivedStructuralFeatureID(int baseFeatureID, Class baseClass) + { + if (baseClass == EAccessibleJavaAttribute.class) + { + switch (baseFeatureID) + { + case OxmPackage.EACCESSIBLE_JAVA_ATTRIBUTE__XML_ACCESS_METHODS: return OxmPackage.EXML_TRANSFORMATION__XML_ACCESS_METHODS; + default: return -1; + } + } + if (baseClass == EPropertyHolder.class) + { + switch (baseFeatureID) + { + case OxmPackage.EPROPERTY_HOLDER__XML_PROPERTIES: return OxmPackage.EXML_TRANSFORMATION__XML_PROPERTIES; + default: return -1; + } + } + return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); + } + + /** + * + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (optional: "); + result.append(optional); + result.append(')'); + return result.toString(); + } + + + // ***** translators ***** + + static class XmlTransformationTranslator + extends AbstractJavaAttributeTranslator { + + XmlTransformationTranslator(String domPathAndName, EStructuralFeature eStructuralFeature) { + super(domPathAndName, eStructuralFeature, buildTranslatorChildren()); + } + + private static Translator[] buildTranslatorChildren() { + return new Translator[] { + }; + } + + @Override + public EObject createEMFObject(String nodeName, String readAheadName) { + return OxmFactory.eINSTANCE.createEXmlTransformation(); + } + } +} diff --git a/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlTransient.java b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlTransient.java new file mode 100644 index 0000000000..f39adc6d70 --- /dev/null +++ b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlTransient.java @@ -0,0 +1,217 @@ +/******************************************************************************* + * Copyright (c) 2012 Oracle. All rights reserved. + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v1.0, which accompanies this distribution + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Oracle - initial API and implementation + *******************************************************************************/ +package org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EStructuralFeature; +import org.eclipse.wst.common.internal.emf.resource.Translator; + +/** + * + * A representation of the model object 'EXml Transient'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlTransient#isXmlLocation Xml Location}
  • + *
+ *

+ * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlTransient() + * @model kind="class" + * @generated + */ +public class EXmlTransient extends EJavaAttribute +{ + /** + * The default value of the '{@link #isXmlLocation() Xml Location}' attribute. + * + * + * @see #isXmlLocation() + * @generated + * @ordered + */ + protected static final boolean XML_LOCATION_EDEFAULT = false; + /** + * The cached value of the '{@link #isXmlLocation() Xml Location}' attribute. + * + * + * @see #isXmlLocation() + * @generated + * @ordered + */ + protected boolean xmlLocation = XML_LOCATION_EDEFAULT; + + + /** + * + * + * @generated + */ + protected EXmlTransient() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return OxmPackage.Literals.EXML_TRANSIENT; + } + + + /** + * Returns the value of the 'Xml Location' attribute. + * + *

+ * If the meaning of the 'Xml Location' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Location' attribute. + * @see #setXmlLocation(boolean) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlTransient_XmlLocation() + * @model + * @generated + */ + public boolean isXmlLocation() + { + return xmlLocation; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlTransient#isXmlLocation Xml Location}' attribute. + * + * + * @param value the new value of the 'Xml Location' attribute. + * @see #isXmlLocation() + * @generated + */ + public void setXmlLocation(boolean newXmlLocation) + { + boolean oldXmlLocation = xmlLocation; + xmlLocation = newXmlLocation; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_TRANSIENT__XML_LOCATION, oldXmlLocation, xmlLocation)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case OxmPackage.EXML_TRANSIENT__XML_LOCATION: + return isXmlLocation(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case OxmPackage.EXML_TRANSIENT__XML_LOCATION: + setXmlLocation((Boolean)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case OxmPackage.EXML_TRANSIENT__XML_LOCATION: + setXmlLocation(XML_LOCATION_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case OxmPackage.EXML_TRANSIENT__XML_LOCATION: + return xmlLocation != XML_LOCATION_EDEFAULT; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (xmlLocation: "); + result.append(xmlLocation); + result.append(')'); + return result.toString(); + } + + + // ***** translators ***** + + static class XmlTransientTranslator + extends AbstractJavaAttributeTranslator { + + XmlTransientTranslator(String domPathAndName, EStructuralFeature eStructuralFeature) { + super(domPathAndName, eStructuralFeature, buildTranslatorChildren()); + } + + private static Translator[] buildTranslatorChildren() { + return new Translator[] { + }; + } + + @Override + public EObject createEMFObject(String nodeName, String readAheadName) { + return OxmFactory.eINSTANCE.createEXmlTransient(); + } + } +} diff --git a/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlType.java b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlType.java new file mode 100644 index 0000000000..fd1d3d413a --- /dev/null +++ b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlType.java @@ -0,0 +1,466 @@ +/** + */ +package org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm; + +import java.util.List; +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.jpt.common.core.resource.xml.EBaseObject; +import org.eclipse.jpt.common.core.resource.xml.EBaseObjectImpl; + +/** + * + * A representation of the model object 'EXml Type'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlType#getName Name}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlType#getNamespace Namespace}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlType#getFactoryClass Factory Class}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlType#getFactoryMethod Factory Method}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlType#getPropOrder Prop Order}
  • + *
+ *

+ * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlType() + * @model kind="class" + * @extends EBaseObject + * @generated + */ +public class EXmlType extends EBaseObjectImpl implements EBaseObject +{ + /** + * The default value of the '{@link #getName() Name}' attribute. + * + * + * @see #getName() + * @generated + * @ordered + */ + protected static final String NAME_EDEFAULT = null; + + /** + * The cached value of the '{@link #getName() Name}' attribute. + * + * + * @see #getName() + * @generated + * @ordered + */ + protected String name = NAME_EDEFAULT; + + /** + * The default value of the '{@link #getNamespace() Namespace}' attribute. + * + * + * @see #getNamespace() + * @generated + * @ordered + */ + protected static final String NAMESPACE_EDEFAULT = null; + + /** + * The cached value of the '{@link #getNamespace() Namespace}' attribute. + * + * + * @see #getNamespace() + * @generated + * @ordered + */ + protected String namespace = NAMESPACE_EDEFAULT; + + /** + * The default value of the '{@link #getFactoryClass() Factory Class}' attribute. + * + * + * @see #getFactoryClass() + * @generated + * @ordered + */ + protected static final String FACTORY_CLASS_EDEFAULT = null; + + /** + * The cached value of the '{@link #getFactoryClass() Factory Class}' attribute. + * + * + * @see #getFactoryClass() + * @generated + * @ordered + */ + protected String factoryClass = FACTORY_CLASS_EDEFAULT; + + /** + * The default value of the '{@link #getFactoryMethod() Factory Method}' attribute. + * + * + * @see #getFactoryMethod() + * @generated + * @ordered + */ + protected static final String FACTORY_METHOD_EDEFAULT = null; + + /** + * The cached value of the '{@link #getFactoryMethod() Factory Method}' attribute. + * + * + * @see #getFactoryMethod() + * @generated + * @ordered + */ + protected String factoryMethod = FACTORY_METHOD_EDEFAULT; + + /** + * The default value of the '{@link #getPropOrder() Prop Order}' attribute. + * + * + * @see #getPropOrder() + * @generated + * @ordered + */ + protected static final List PROP_ORDER_EDEFAULT = null; + + /** + * The cached value of the '{@link #getPropOrder() Prop Order}' attribute. + * + * + * @see #getPropOrder() + * @generated + * @ordered + */ + protected List propOrder = PROP_ORDER_EDEFAULT; + + /** + * + * + * @generated + */ + protected EXmlType() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return OxmPackage.Literals.EXML_TYPE; + } + + /** + * Returns the value of the 'Name' attribute. + * + *

+ * If the meaning of the 'Name' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Name' attribute. + * @see #setName(String) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlType_Name() + * @model + * @generated + */ + public String getName() + { + return name; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlType#getName Name}' attribute. + * + * + * @param value the new value of the 'Name' attribute. + * @see #getName() + * @generated + */ + public void setName(String newName) + { + String oldName = name; + name = newName; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_TYPE__NAME, oldName, name)); + } + + /** + * Returns the value of the 'Namespace' attribute. + * + *

+ * If the meaning of the 'Namespace' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Namespace' attribute. + * @see #setNamespace(String) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlType_Namespace() + * @model + * @generated + */ + public String getNamespace() + { + return namespace; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlType#getNamespace Namespace}' attribute. + * + * + * @param value the new value of the 'Namespace' attribute. + * @see #getNamespace() + * @generated + */ + public void setNamespace(String newNamespace) + { + String oldNamespace = namespace; + namespace = newNamespace; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_TYPE__NAMESPACE, oldNamespace, namespace)); + } + + /** + * Returns the value of the 'Factory Class' attribute. + * + *

+ * If the meaning of the 'Factory Class' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Factory Class' attribute. + * @see #setFactoryClass(String) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlType_FactoryClass() + * @model + * @generated + */ + public String getFactoryClass() + { + return factoryClass; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlType#getFactoryClass Factory Class}' attribute. + * + * + * @param value the new value of the 'Factory Class' attribute. + * @see #getFactoryClass() + * @generated + */ + public void setFactoryClass(String newFactoryClass) + { + String oldFactoryClass = factoryClass; + factoryClass = newFactoryClass; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_TYPE__FACTORY_CLASS, oldFactoryClass, factoryClass)); + } + + /** + * Returns the value of the 'Factory Method' attribute. + * + *

+ * If the meaning of the 'Factory Method' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Factory Method' attribute. + * @see #setFactoryMethod(String) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlType_FactoryMethod() + * @model + * @generated + */ + public String getFactoryMethod() + { + return factoryMethod; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlType#getFactoryMethod Factory Method}' attribute. + * + * + * @param value the new value of the 'Factory Method' attribute. + * @see #getFactoryMethod() + * @generated + */ + public void setFactoryMethod(String newFactoryMethod) + { + String oldFactoryMethod = factoryMethod; + factoryMethod = newFactoryMethod; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_TYPE__FACTORY_METHOD, oldFactoryMethod, factoryMethod)); + } + + /** + * Returns the value of the 'Prop Order' attribute. + * + *

+ * If the meaning of the 'Prop Order' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Prop Order' attribute. + * @see #setPropOrder(List) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlType_PropOrder() + * @model dataType="org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EPropOrder" many="false" + * @generated + */ + public List getPropOrder() + { + return propOrder; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlType#getPropOrder Prop Order}' attribute. + * + * + * @param value the new value of the 'Prop Order' attribute. + * @see #getPropOrder() + * @generated + */ + public void setPropOrder(List newPropOrder) + { + List oldPropOrder = propOrder; + propOrder = newPropOrder; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_TYPE__PROP_ORDER, oldPropOrder, propOrder)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case OxmPackage.EXML_TYPE__NAME: + return getName(); + case OxmPackage.EXML_TYPE__NAMESPACE: + return getNamespace(); + case OxmPackage.EXML_TYPE__FACTORY_CLASS: + return getFactoryClass(); + case OxmPackage.EXML_TYPE__FACTORY_METHOD: + return getFactoryMethod(); + case OxmPackage.EXML_TYPE__PROP_ORDER: + return getPropOrder(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case OxmPackage.EXML_TYPE__NAME: + setName((String)newValue); + return; + case OxmPackage.EXML_TYPE__NAMESPACE: + setNamespace((String)newValue); + return; + case OxmPackage.EXML_TYPE__FACTORY_CLASS: + setFactoryClass((String)newValue); + return; + case OxmPackage.EXML_TYPE__FACTORY_METHOD: + setFactoryMethod((String)newValue); + return; + case OxmPackage.EXML_TYPE__PROP_ORDER: + setPropOrder((List)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case OxmPackage.EXML_TYPE__NAME: + setName(NAME_EDEFAULT); + return; + case OxmPackage.EXML_TYPE__NAMESPACE: + setNamespace(NAMESPACE_EDEFAULT); + return; + case OxmPackage.EXML_TYPE__FACTORY_CLASS: + setFactoryClass(FACTORY_CLASS_EDEFAULT); + return; + case OxmPackage.EXML_TYPE__FACTORY_METHOD: + setFactoryMethod(FACTORY_METHOD_EDEFAULT); + return; + case OxmPackage.EXML_TYPE__PROP_ORDER: + setPropOrder(PROP_ORDER_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case OxmPackage.EXML_TYPE__NAME: + return NAME_EDEFAULT == null ? name != null : !NAME_EDEFAULT.equals(name); + case OxmPackage.EXML_TYPE__NAMESPACE: + return NAMESPACE_EDEFAULT == null ? namespace != null : !NAMESPACE_EDEFAULT.equals(namespace); + case OxmPackage.EXML_TYPE__FACTORY_CLASS: + return FACTORY_CLASS_EDEFAULT == null ? factoryClass != null : !FACTORY_CLASS_EDEFAULT.equals(factoryClass); + case OxmPackage.EXML_TYPE__FACTORY_METHOD: + return FACTORY_METHOD_EDEFAULT == null ? factoryMethod != null : !FACTORY_METHOD_EDEFAULT.equals(factoryMethod); + case OxmPackage.EXML_TYPE__PROP_ORDER: + return PROP_ORDER_EDEFAULT == null ? propOrder != null : !PROP_ORDER_EDEFAULT.equals(propOrder); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (name: "); + result.append(name); + result.append(", namespace: "); + result.append(namespace); + result.append(", factoryClass: "); + result.append(factoryClass); + result.append(", factoryMethod: "); + result.append(factoryMethod); + result.append(", propOrder: "); + result.append(propOrder); + result.append(')'); + return result.toString(); + } + +} // EXmlType diff --git a/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlValue.java b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlValue.java new file mode 100644 index 0000000000..66897da10f --- /dev/null +++ b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlValue.java @@ -0,0 +1,907 @@ +/******************************************************************************* + * Copyright (c) 2012 Oracle. All rights reserved. + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v1.0, which accompanies this distribution + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Oracle - initial API and implementation + *******************************************************************************/ +package org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm; + +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.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.emf.ecore.EObject; +import org.eclipse.emf.ecore.EStructuralFeature; +import org.eclipse.wst.common.internal.emf.resource.Translator; + +/** + * + * A representation of the model object 'EXml Value'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlValue#isCdata Cdata}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlValue#getXmlAbstractNullPolicy Xml Abstract Null Policy}
  • + *
+ *

+ * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlValue() + * @model kind="class" + * @generated + */ +public class EXmlValue extends EJavaAttribute implements EAccessibleJavaAttribute, EAdaptableJavaAttribute, EContainerJavaAttribute, EReadWriteJavaAttribute, ETypedJavaAttribute, EPropertyHolder +{ + /** + * The cached value of the '{@link #getXmlAccessMethods() Xml Access Methods}' containment reference. + * + * + * @see #getXmlAccessMethods() + * @generated + * @ordered + */ + protected EXmlAccessMethods xmlAccessMethods; + /** + * The cached value of the '{@link #getXmlJavaTypeAdapter() Xml Java Type Adapter}' containment reference. + * + * + * @see #getXmlJavaTypeAdapter() + * @generated + * @ordered + */ + protected EXmlJavaTypeAdapter xmlJavaTypeAdapter; + /** + * The default value of the '{@link #getContainerType() Container Type}' attribute. + * + * + * @see #getContainerType() + * @generated + * @ordered + */ + protected static final String CONTAINER_TYPE_EDEFAULT = null; + /** + * The cached value of the '{@link #getContainerType() Container Type}' attribute. + * + * + * @see #getContainerType() + * @generated + * @ordered + */ + protected String containerType = CONTAINER_TYPE_EDEFAULT; + /** + * The default value of the '{@link #isReadOnly() Read Only}' attribute. + * + * + * @see #isReadOnly() + * @generated + * @ordered + */ + protected static final boolean READ_ONLY_EDEFAULT = false; + /** + * The cached value of the '{@link #isReadOnly() Read Only}' attribute. + * + * + * @see #isReadOnly() + * @generated + * @ordered + */ + protected boolean readOnly = READ_ONLY_EDEFAULT; + /** + * The default value of the '{@link #isWriteOnly() Write Only}' attribute. + * + * + * @see #isWriteOnly() + * @generated + * @ordered + */ + protected static final boolean WRITE_ONLY_EDEFAULT = false; + /** + * The cached value of the '{@link #isWriteOnly() Write Only}' attribute. + * + * + * @see #isWriteOnly() + * @generated + * @ordered + */ + protected boolean writeOnly = WRITE_ONLY_EDEFAULT; + /** + * The default value of the '{@link #getType() Type}' attribute. + * + * + * @see #getType() + * @generated + * @ordered + */ + protected static final String TYPE_EDEFAULT = null; + /** + * The cached value of the '{@link #getType() Type}' attribute. + * + * + * @see #getType() + * @generated + * @ordered + */ + protected String type = TYPE_EDEFAULT; + /** + * The cached value of the '{@link #getXmlProperties() Xml Properties}' containment reference list. + * + * + * @see #getXmlProperties() + * @generated + * @ordered + */ + protected EList xmlProperties; + /** + * The default value of the '{@link #isCdata() Cdata}' attribute. + * + * + * @see #isCdata() + * @generated + * @ordered + */ + protected static final boolean CDATA_EDEFAULT = false; + /** + * The cached value of the '{@link #isCdata() Cdata}' attribute. + * + * + * @see #isCdata() + * @generated + * @ordered + */ + protected boolean cdata = CDATA_EDEFAULT; + /** + * The cached value of the '{@link #getXmlAbstractNullPolicy() Xml Abstract Null Policy}' containment reference. + * + * + * @see #getXmlAbstractNullPolicy() + * @generated + * @ordered + */ + protected EAbstractXmlNullPolicy xmlAbstractNullPolicy; + + + /** + * + * + * @generated + */ + protected EXmlValue() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return OxmPackage.Literals.EXML_VALUE; + } + + + /** + * Returns the value of the 'Xml Access Methods' containment reference. + * + *

+ * If the meaning of the 'Xml Access Methods' containment reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Access Methods' containment reference. + * @see #setXmlAccessMethods(EXmlAccessMethods) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEAccessibleJavaAttribute_XmlAccessMethods() + * @model containment="true" + * @generated + */ + public EXmlAccessMethods getXmlAccessMethods() + { + return xmlAccessMethods; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetXmlAccessMethods(EXmlAccessMethods newXmlAccessMethods, NotificationChain msgs) + { + EXmlAccessMethods oldXmlAccessMethods = xmlAccessMethods; + xmlAccessMethods = newXmlAccessMethods; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_VALUE__XML_ACCESS_METHODS, oldXmlAccessMethods, newXmlAccessMethods); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlValue#getXmlAccessMethods Xml Access Methods}' containment reference. + * + * + * @param value the new value of the 'Xml Access Methods' containment reference. + * @see #getXmlAccessMethods() + * @generated + */ + public void setXmlAccessMethods(EXmlAccessMethods newXmlAccessMethods) + { + if (newXmlAccessMethods != xmlAccessMethods) + { + NotificationChain msgs = null; + if (xmlAccessMethods != null) + msgs = ((InternalEObject)xmlAccessMethods).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OxmPackage.EXML_VALUE__XML_ACCESS_METHODS, null, msgs); + if (newXmlAccessMethods != null) + msgs = ((InternalEObject)newXmlAccessMethods).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OxmPackage.EXML_VALUE__XML_ACCESS_METHODS, null, msgs); + msgs = basicSetXmlAccessMethods(newXmlAccessMethods, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_VALUE__XML_ACCESS_METHODS, newXmlAccessMethods, newXmlAccessMethods)); + } + + /** + * Returns the value of the 'Xml Java Type Adapter' containment reference. + * + *

+ * If the meaning of the 'Xml Java Type Adapter' containment reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Java Type Adapter' containment reference. + * @see #setXmlJavaTypeAdapter(EXmlJavaTypeAdapter) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEAdaptableJavaAttribute_XmlJavaTypeAdapter() + * @model containment="true" + * @generated + */ + public EXmlJavaTypeAdapter getXmlJavaTypeAdapter() + { + return xmlJavaTypeAdapter; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetXmlJavaTypeAdapter(EXmlJavaTypeAdapter newXmlJavaTypeAdapter, NotificationChain msgs) + { + EXmlJavaTypeAdapter oldXmlJavaTypeAdapter = xmlJavaTypeAdapter; + xmlJavaTypeAdapter = newXmlJavaTypeAdapter; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_VALUE__XML_JAVA_TYPE_ADAPTER, oldXmlJavaTypeAdapter, newXmlJavaTypeAdapter); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlValue#getXmlJavaTypeAdapter Xml Java Type Adapter}' containment reference. + * + * + * @param value the new value of the 'Xml Java Type Adapter' containment reference. + * @see #getXmlJavaTypeAdapter() + * @generated + */ + public void setXmlJavaTypeAdapter(EXmlJavaTypeAdapter newXmlJavaTypeAdapter) + { + if (newXmlJavaTypeAdapter != xmlJavaTypeAdapter) + { + NotificationChain msgs = null; + if (xmlJavaTypeAdapter != null) + msgs = ((InternalEObject)xmlJavaTypeAdapter).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OxmPackage.EXML_VALUE__XML_JAVA_TYPE_ADAPTER, null, msgs); + if (newXmlJavaTypeAdapter != null) + msgs = ((InternalEObject)newXmlJavaTypeAdapter).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OxmPackage.EXML_VALUE__XML_JAVA_TYPE_ADAPTER, null, msgs); + msgs = basicSetXmlJavaTypeAdapter(newXmlJavaTypeAdapter, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_VALUE__XML_JAVA_TYPE_ADAPTER, newXmlJavaTypeAdapter, newXmlJavaTypeAdapter)); + } + + /** + * Returns the value of the 'Container Type' attribute. + * + *

+ * If the meaning of the 'Container Type' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Container Type' attribute. + * @see #setContainerType(String) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEContainerJavaAttribute_ContainerType() + * @model + * @generated + */ + public String getContainerType() + { + return containerType; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlValue#getContainerType Container Type}' attribute. + * + * + * @param value the new value of the 'Container Type' attribute. + * @see #getContainerType() + * @generated + */ + public void setContainerType(String newContainerType) + { + String oldContainerType = containerType; + containerType = newContainerType; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_VALUE__CONTAINER_TYPE, oldContainerType, containerType)); + } + + /** + * Returns the value of the 'Read Only' attribute. + * + *

+ * If the meaning of the 'Read Only' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Read Only' attribute. + * @see #setReadOnly(boolean) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEReadWriteJavaAttribute_ReadOnly() + * @model + * @generated + */ + public boolean isReadOnly() + { + return readOnly; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlValue#isReadOnly Read Only}' attribute. + * + * + * @param value the new value of the 'Read Only' attribute. + * @see #isReadOnly() + * @generated + */ + public void setReadOnly(boolean newReadOnly) + { + boolean oldReadOnly = readOnly; + readOnly = newReadOnly; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_VALUE__READ_ONLY, oldReadOnly, readOnly)); + } + + /** + * Returns the value of the 'Write Only' attribute. + * + *

+ * If the meaning of the 'Write Only' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Write Only' attribute. + * @see #setWriteOnly(boolean) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEReadWriteJavaAttribute_WriteOnly() + * @model + * @generated + */ + public boolean isWriteOnly() + { + return writeOnly; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlValue#isWriteOnly Write Only}' attribute. + * + * + * @param value the new value of the 'Write Only' attribute. + * @see #isWriteOnly() + * @generated + */ + public void setWriteOnly(boolean newWriteOnly) + { + boolean oldWriteOnly = writeOnly; + writeOnly = newWriteOnly; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_VALUE__WRITE_ONLY, oldWriteOnly, writeOnly)); + } + + /** + * Returns the value of the 'Type' attribute. + * + *

+ * If the meaning of the 'Type' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Type' attribute. + * @see #setType(String) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getETypedJavaAttribute_Type() + * @model + * @generated + */ + public String getType() + { + return type; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlValue#getType Type}' attribute. + * + * + * @param value the new value of the 'Type' attribute. + * @see #getType() + * @generated + */ + public void setType(String newType) + { + String oldType = type; + type = newType; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_VALUE__TYPE, oldType, type)); + } + + /** + * Returns the value of the 'Xml Properties' containment reference list. + * The list contents are of type {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlProperty}. + * + *

+ * If the meaning of the 'Xml Properties' containment reference list isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Properties' containment reference list. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEPropertyHolder_XmlProperties() + * @model containment="true" + * @generated + */ + public EList getXmlProperties() + { + if (xmlProperties == null) + { + xmlProperties = new EObjectContainmentEList(EXmlProperty.class, this, OxmPackage.EXML_VALUE__XML_PROPERTIES); + } + return xmlProperties; + } + + /** + * Returns the value of the 'Cdata' attribute. + * + *

+ * If the meaning of the 'Cdata' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Cdata' attribute. + * @see #setCdata(boolean) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlValue_Cdata() + * @model + * @generated + */ + public boolean isCdata() + { + return cdata; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlValue#isCdata Cdata}' attribute. + * + * + * @param value the new value of the 'Cdata' attribute. + * @see #isCdata() + * @generated + */ + public void setCdata(boolean newCdata) + { + boolean oldCdata = cdata; + cdata = newCdata; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_VALUE__CDATA, oldCdata, cdata)); + } + + /** + * Returns the value of the 'Xml Abstract Null Policy' containment reference. + * + *

+ * If the meaning of the 'Xml Abstract Null Policy' containment reference isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Abstract Null Policy' containment reference. + * @see #setXmlAbstractNullPolicy(EAbstractXmlNullPolicy) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlValue_XmlAbstractNullPolicy() + * @model containment="true" + * @generated + */ + public EAbstractXmlNullPolicy getXmlAbstractNullPolicy() + { + return xmlAbstractNullPolicy; + } + + /** + * + * + * @generated + */ + public NotificationChain basicSetXmlAbstractNullPolicy(EAbstractXmlNullPolicy newXmlAbstractNullPolicy, NotificationChain msgs) + { + EAbstractXmlNullPolicy oldXmlAbstractNullPolicy = xmlAbstractNullPolicy; + xmlAbstractNullPolicy = newXmlAbstractNullPolicy; + if (eNotificationRequired()) + { + ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_VALUE__XML_ABSTRACT_NULL_POLICY, oldXmlAbstractNullPolicy, newXmlAbstractNullPolicy); + if (msgs == null) msgs = notification; else msgs.add(notification); + } + return msgs; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlValue#getXmlAbstractNullPolicy Xml Abstract Null Policy}' containment reference. + * + * + * @param value the new value of the 'Xml Abstract Null Policy' containment reference. + * @see #getXmlAbstractNullPolicy() + * @generated + */ + public void setXmlAbstractNullPolicy(EAbstractXmlNullPolicy newXmlAbstractNullPolicy) + { + if (newXmlAbstractNullPolicy != xmlAbstractNullPolicy) + { + NotificationChain msgs = null; + if (xmlAbstractNullPolicy != null) + msgs = ((InternalEObject)xmlAbstractNullPolicy).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - OxmPackage.EXML_VALUE__XML_ABSTRACT_NULL_POLICY, null, msgs); + if (newXmlAbstractNullPolicy != null) + msgs = ((InternalEObject)newXmlAbstractNullPolicy).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - OxmPackage.EXML_VALUE__XML_ABSTRACT_NULL_POLICY, null, msgs); + msgs = basicSetXmlAbstractNullPolicy(newXmlAbstractNullPolicy, msgs); + if (msgs != null) msgs.dispatch(); + } + else if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_VALUE__XML_ABSTRACT_NULL_POLICY, newXmlAbstractNullPolicy, newXmlAbstractNullPolicy)); + } + + /** + * + * + * @generated + */ + @Override + public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) + { + switch (featureID) + { + case OxmPackage.EXML_VALUE__XML_ACCESS_METHODS: + return basicSetXmlAccessMethods(null, msgs); + case OxmPackage.EXML_VALUE__XML_JAVA_TYPE_ADAPTER: + return basicSetXmlJavaTypeAdapter(null, msgs); + case OxmPackage.EXML_VALUE__XML_PROPERTIES: + return ((InternalEList)getXmlProperties()).basicRemove(otherEnd, msgs); + case OxmPackage.EXML_VALUE__XML_ABSTRACT_NULL_POLICY: + return basicSetXmlAbstractNullPolicy(null, msgs); + } + return super.eInverseRemove(otherEnd, featureID, msgs); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case OxmPackage.EXML_VALUE__XML_ACCESS_METHODS: + return getXmlAccessMethods(); + case OxmPackage.EXML_VALUE__XML_JAVA_TYPE_ADAPTER: + return getXmlJavaTypeAdapter(); + case OxmPackage.EXML_VALUE__CONTAINER_TYPE: + return getContainerType(); + case OxmPackage.EXML_VALUE__READ_ONLY: + return isReadOnly(); + case OxmPackage.EXML_VALUE__WRITE_ONLY: + return isWriteOnly(); + case OxmPackage.EXML_VALUE__TYPE: + return getType(); + case OxmPackage.EXML_VALUE__XML_PROPERTIES: + return getXmlProperties(); + case OxmPackage.EXML_VALUE__CDATA: + return isCdata(); + case OxmPackage.EXML_VALUE__XML_ABSTRACT_NULL_POLICY: + return getXmlAbstractNullPolicy(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @SuppressWarnings("unchecked") + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case OxmPackage.EXML_VALUE__XML_ACCESS_METHODS: + setXmlAccessMethods((EXmlAccessMethods)newValue); + return; + case OxmPackage.EXML_VALUE__XML_JAVA_TYPE_ADAPTER: + setXmlJavaTypeAdapter((EXmlJavaTypeAdapter)newValue); + return; + case OxmPackage.EXML_VALUE__CONTAINER_TYPE: + setContainerType((String)newValue); + return; + case OxmPackage.EXML_VALUE__READ_ONLY: + setReadOnly((Boolean)newValue); + return; + case OxmPackage.EXML_VALUE__WRITE_ONLY: + setWriteOnly((Boolean)newValue); + return; + case OxmPackage.EXML_VALUE__TYPE: + setType((String)newValue); + return; + case OxmPackage.EXML_VALUE__XML_PROPERTIES: + getXmlProperties().clear(); + getXmlProperties().addAll((Collection)newValue); + return; + case OxmPackage.EXML_VALUE__CDATA: + setCdata((Boolean)newValue); + return; + case OxmPackage.EXML_VALUE__XML_ABSTRACT_NULL_POLICY: + setXmlAbstractNullPolicy((EAbstractXmlNullPolicy)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case OxmPackage.EXML_VALUE__XML_ACCESS_METHODS: + setXmlAccessMethods((EXmlAccessMethods)null); + return; + case OxmPackage.EXML_VALUE__XML_JAVA_TYPE_ADAPTER: + setXmlJavaTypeAdapter((EXmlJavaTypeAdapter)null); + return; + case OxmPackage.EXML_VALUE__CONTAINER_TYPE: + setContainerType(CONTAINER_TYPE_EDEFAULT); + return; + case OxmPackage.EXML_VALUE__READ_ONLY: + setReadOnly(READ_ONLY_EDEFAULT); + return; + case OxmPackage.EXML_VALUE__WRITE_ONLY: + setWriteOnly(WRITE_ONLY_EDEFAULT); + return; + case OxmPackage.EXML_VALUE__TYPE: + setType(TYPE_EDEFAULT); + return; + case OxmPackage.EXML_VALUE__XML_PROPERTIES: + getXmlProperties().clear(); + return; + case OxmPackage.EXML_VALUE__CDATA: + setCdata(CDATA_EDEFAULT); + return; + case OxmPackage.EXML_VALUE__XML_ABSTRACT_NULL_POLICY: + setXmlAbstractNullPolicy((EAbstractXmlNullPolicy)null); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case OxmPackage.EXML_VALUE__XML_ACCESS_METHODS: + return xmlAccessMethods != null; + case OxmPackage.EXML_VALUE__XML_JAVA_TYPE_ADAPTER: + return xmlJavaTypeAdapter != null; + case OxmPackage.EXML_VALUE__CONTAINER_TYPE: + return CONTAINER_TYPE_EDEFAULT == null ? containerType != null : !CONTAINER_TYPE_EDEFAULT.equals(containerType); + case OxmPackage.EXML_VALUE__READ_ONLY: + return readOnly != READ_ONLY_EDEFAULT; + case OxmPackage.EXML_VALUE__WRITE_ONLY: + return writeOnly != WRITE_ONLY_EDEFAULT; + case OxmPackage.EXML_VALUE__TYPE: + return TYPE_EDEFAULT == null ? type != null : !TYPE_EDEFAULT.equals(type); + case OxmPackage.EXML_VALUE__XML_PROPERTIES: + return xmlProperties != null && !xmlProperties.isEmpty(); + case OxmPackage.EXML_VALUE__CDATA: + return cdata != CDATA_EDEFAULT; + case OxmPackage.EXML_VALUE__XML_ABSTRACT_NULL_POLICY: + return xmlAbstractNullPolicy != null; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public int eBaseStructuralFeatureID(int derivedFeatureID, Class baseClass) + { + if (baseClass == EAccessibleJavaAttribute.class) + { + switch (derivedFeatureID) + { + case OxmPackage.EXML_VALUE__XML_ACCESS_METHODS: return OxmPackage.EACCESSIBLE_JAVA_ATTRIBUTE__XML_ACCESS_METHODS; + default: return -1; + } + } + if (baseClass == EAdaptableJavaAttribute.class) + { + switch (derivedFeatureID) + { + case OxmPackage.EXML_VALUE__XML_JAVA_TYPE_ADAPTER: return OxmPackage.EADAPTABLE_JAVA_ATTRIBUTE__XML_JAVA_TYPE_ADAPTER; + default: return -1; + } + } + if (baseClass == EContainerJavaAttribute.class) + { + switch (derivedFeatureID) + { + case OxmPackage.EXML_VALUE__CONTAINER_TYPE: return OxmPackage.ECONTAINER_JAVA_ATTRIBUTE__CONTAINER_TYPE; + default: return -1; + } + } + if (baseClass == EReadWriteJavaAttribute.class) + { + switch (derivedFeatureID) + { + case OxmPackage.EXML_VALUE__READ_ONLY: return OxmPackage.EREAD_WRITE_JAVA_ATTRIBUTE__READ_ONLY; + case OxmPackage.EXML_VALUE__WRITE_ONLY: return OxmPackage.EREAD_WRITE_JAVA_ATTRIBUTE__WRITE_ONLY; + default: return -1; + } + } + if (baseClass == ETypedJavaAttribute.class) + { + switch (derivedFeatureID) + { + case OxmPackage.EXML_VALUE__TYPE: return OxmPackage.ETYPED_JAVA_ATTRIBUTE__TYPE; + default: return -1; + } + } + if (baseClass == EPropertyHolder.class) + { + switch (derivedFeatureID) + { + case OxmPackage.EXML_VALUE__XML_PROPERTIES: return OxmPackage.EPROPERTY_HOLDER__XML_PROPERTIES; + default: return -1; + } + } + return super.eBaseStructuralFeatureID(derivedFeatureID, baseClass); + } + + /** + * + * + * @generated + */ + @Override + public int eDerivedStructuralFeatureID(int baseFeatureID, Class baseClass) + { + if (baseClass == EAccessibleJavaAttribute.class) + { + switch (baseFeatureID) + { + case OxmPackage.EACCESSIBLE_JAVA_ATTRIBUTE__XML_ACCESS_METHODS: return OxmPackage.EXML_VALUE__XML_ACCESS_METHODS; + default: return -1; + } + } + if (baseClass == EAdaptableJavaAttribute.class) + { + switch (baseFeatureID) + { + case OxmPackage.EADAPTABLE_JAVA_ATTRIBUTE__XML_JAVA_TYPE_ADAPTER: return OxmPackage.EXML_VALUE__XML_JAVA_TYPE_ADAPTER; + default: return -1; + } + } + if (baseClass == EContainerJavaAttribute.class) + { + switch (baseFeatureID) + { + case OxmPackage.ECONTAINER_JAVA_ATTRIBUTE__CONTAINER_TYPE: return OxmPackage.EXML_VALUE__CONTAINER_TYPE; + default: return -1; + } + } + if (baseClass == EReadWriteJavaAttribute.class) + { + switch (baseFeatureID) + { + case OxmPackage.EREAD_WRITE_JAVA_ATTRIBUTE__READ_ONLY: return OxmPackage.EXML_VALUE__READ_ONLY; + case OxmPackage.EREAD_WRITE_JAVA_ATTRIBUTE__WRITE_ONLY: return OxmPackage.EXML_VALUE__WRITE_ONLY; + default: return -1; + } + } + if (baseClass == ETypedJavaAttribute.class) + { + switch (baseFeatureID) + { + case OxmPackage.ETYPED_JAVA_ATTRIBUTE__TYPE: return OxmPackage.EXML_VALUE__TYPE; + default: return -1; + } + } + if (baseClass == EPropertyHolder.class) + { + switch (baseFeatureID) + { + case OxmPackage.EPROPERTY_HOLDER__XML_PROPERTIES: return OxmPackage.EXML_VALUE__XML_PROPERTIES; + default: return -1; + } + } + return super.eDerivedStructuralFeatureID(baseFeatureID, baseClass); + } + + /** + * + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (containerType: "); + result.append(containerType); + result.append(", readOnly: "); + result.append(readOnly); + result.append(", writeOnly: "); + result.append(writeOnly); + result.append(", type: "); + result.append(type); + result.append(", cdata: "); + result.append(cdata); + result.append(')'); + return result.toString(); + } + + + // ***** translators ***** + + static class XmlValueTranslator + extends AbstractJavaAttributeTranslator { + + XmlValueTranslator(String domPathAndName, EStructuralFeature eStructuralFeature) { + super(domPathAndName, eStructuralFeature, buildTranslatorChildren()); + } + + private static Translator[] buildTranslatorChildren() { + return new Translator[] { + }; + } + + @Override + public EObject createEMFObject(String nodeName, String readAheadName) { + return OxmFactory.eINSTANCE.createEXmlValue(); + } + } +} diff --git a/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlVirtualAccessMethods.java b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlVirtualAccessMethods.java new file mode 100644 index 0000000000..727f1d436e --- /dev/null +++ b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlVirtualAccessMethods.java @@ -0,0 +1,331 @@ +/** + */ +package org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +import org.eclipse.jpt.common.core.resource.xml.EBaseObject; +import org.eclipse.jpt.common.core.resource.xml.EBaseObjectImpl; + +/** + * + * A representation of the model object 'EXml Virtual Access Methods'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlVirtualAccessMethods#getGetMethod Get Method}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlVirtualAccessMethods#getSetMethod Set Method}
  • + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlVirtualAccessMethods#getSchema Schema}
  • + *
+ *

+ * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlVirtualAccessMethods() + * @model kind="class" + * @extends EBaseObject + * @generated + */ +public class EXmlVirtualAccessMethods extends EBaseObjectImpl implements EBaseObject +{ + /** + * The default value of the '{@link #getGetMethod() Get Method}' attribute. + * + * + * @see #getGetMethod() + * @generated + * @ordered + */ + protected static final String GET_METHOD_EDEFAULT = null; + + /** + * The cached value of the '{@link #getGetMethod() Get Method}' attribute. + * + * + * @see #getGetMethod() + * @generated + * @ordered + */ + protected String getMethod = GET_METHOD_EDEFAULT; + + /** + * The default value of the '{@link #getSetMethod() Set Method}' attribute. + * + * + * @see #getSetMethod() + * @generated + * @ordered + */ + protected static final String SET_METHOD_EDEFAULT = null; + + /** + * The cached value of the '{@link #getSetMethod() Set Method}' attribute. + * + * + * @see #getSetMethod() + * @generated + * @ordered + */ + protected String setMethod = SET_METHOD_EDEFAULT; + + /** + * The default value of the '{@link #getSchema() Schema}' attribute. + * + * + * @see #getSchema() + * @generated + * @ordered + */ + protected static final EXmlVirtualAccessMethodsSchema SCHEMA_EDEFAULT = EXmlVirtualAccessMethodsSchema.NODES; + + /** + * The cached value of the '{@link #getSchema() Schema}' attribute. + * + * + * @see #getSchema() + * @generated + * @ordered + */ + protected EXmlVirtualAccessMethodsSchema schema = SCHEMA_EDEFAULT; + + /** + * + * + * @generated + */ + protected EXmlVirtualAccessMethods() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return OxmPackage.Literals.EXML_VIRTUAL_ACCESS_METHODS; + } + + /** + * Returns the value of the 'Get Method' attribute. + * + *

+ * If the meaning of the 'Get Method' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Get Method' attribute. + * @see #setGetMethod(String) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlVirtualAccessMethods_GetMethod() + * @model + * @generated + */ + public String getGetMethod() + { + return getMethod; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlVirtualAccessMethods#getGetMethod Get Method}' attribute. + * + * + * @param value the new value of the 'Get Method' attribute. + * @see #getGetMethod() + * @generated + */ + public void setGetMethod(String newGetMethod) + { + String oldGetMethod = getMethod; + getMethod = newGetMethod; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_VIRTUAL_ACCESS_METHODS__GET_METHOD, oldGetMethod, getMethod)); + } + + /** + * Returns the value of the 'Set Method' attribute. + * + *

+ * If the meaning of the 'Set Method' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Set Method' attribute. + * @see #setSetMethod(String) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlVirtualAccessMethods_SetMethod() + * @model + * @generated + */ + public String getSetMethod() + { + return setMethod; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlVirtualAccessMethods#getSetMethod Set Method}' attribute. + * + * + * @param value the new value of the 'Set Method' attribute. + * @see #getSetMethod() + * @generated + */ + public void setSetMethod(String newSetMethod) + { + String oldSetMethod = setMethod; + setMethod = newSetMethod; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_VIRTUAL_ACCESS_METHODS__SET_METHOD, oldSetMethod, setMethod)); + } + + /** + * Returns the value of the 'Schema' attribute. + * The literals are from the enumeration {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlVirtualAccessMethodsSchema}. + * + *

+ * If the meaning of the 'Schema' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Schema' attribute. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlVirtualAccessMethodsSchema + * @see #setSchema(EXmlVirtualAccessMethodsSchema) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlVirtualAccessMethods_Schema() + * @model + * @generated + */ + public EXmlVirtualAccessMethodsSchema getSchema() + { + return schema; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlVirtualAccessMethods#getSchema Schema}' attribute. + * + * + * @param value the new value of the 'Schema' attribute. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlVirtualAccessMethodsSchema + * @see #getSchema() + * @generated + */ + public void setSchema(EXmlVirtualAccessMethodsSchema newSchema) + { + EXmlVirtualAccessMethodsSchema oldSchema = schema; + schema = newSchema == null ? SCHEMA_EDEFAULT : newSchema; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_VIRTUAL_ACCESS_METHODS__SCHEMA, oldSchema, schema)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case OxmPackage.EXML_VIRTUAL_ACCESS_METHODS__GET_METHOD: + return getGetMethod(); + case OxmPackage.EXML_VIRTUAL_ACCESS_METHODS__SET_METHOD: + return getSetMethod(); + case OxmPackage.EXML_VIRTUAL_ACCESS_METHODS__SCHEMA: + return getSchema(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case OxmPackage.EXML_VIRTUAL_ACCESS_METHODS__GET_METHOD: + setGetMethod((String)newValue); + return; + case OxmPackage.EXML_VIRTUAL_ACCESS_METHODS__SET_METHOD: + setSetMethod((String)newValue); + return; + case OxmPackage.EXML_VIRTUAL_ACCESS_METHODS__SCHEMA: + setSchema((EXmlVirtualAccessMethodsSchema)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case OxmPackage.EXML_VIRTUAL_ACCESS_METHODS__GET_METHOD: + setGetMethod(GET_METHOD_EDEFAULT); + return; + case OxmPackage.EXML_VIRTUAL_ACCESS_METHODS__SET_METHOD: + setSetMethod(SET_METHOD_EDEFAULT); + return; + case OxmPackage.EXML_VIRTUAL_ACCESS_METHODS__SCHEMA: + setSchema(SCHEMA_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case OxmPackage.EXML_VIRTUAL_ACCESS_METHODS__GET_METHOD: + return GET_METHOD_EDEFAULT == null ? getMethod != null : !GET_METHOD_EDEFAULT.equals(getMethod); + case OxmPackage.EXML_VIRTUAL_ACCESS_METHODS__SET_METHOD: + return SET_METHOD_EDEFAULT == null ? setMethod != null : !SET_METHOD_EDEFAULT.equals(setMethod); + case OxmPackage.EXML_VIRTUAL_ACCESS_METHODS__SCHEMA: + return schema != SCHEMA_EDEFAULT; + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (getMethod: "); + result.append(getMethod); + result.append(", setMethod: "); + result.append(setMethod); + result.append(", schema: "); + result.append(schema); + result.append(')'); + return result.toString(); + } + +} // EXmlVirtualAccessMethods diff --git a/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlVirtualAccessMethodsSchema.java b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlVirtualAccessMethodsSchema.java new file mode 100644 index 0000000000..a6697b2cba --- /dev/null +++ b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlVirtualAccessMethodsSchema.java @@ -0,0 +1,223 @@ +/** + */ +package org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm; + +import java.util.Arrays; +import java.util.Collections; +import java.util.List; + +import org.eclipse.emf.common.util.Enumerator; + +/** + * + * A representation of the literals of the enumeration 'EXml Virtual Access Methods Schema', + * and utility methods for working with them. + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlVirtualAccessMethodsSchema() + * @model + * @generated + */ +public enum EXmlVirtualAccessMethodsSchema implements Enumerator +{ + /** + * The 'NODES' literal object. + * + * + * @see #NODES_VALUE + * @generated + * @ordered + */ + NODES(0, "NODES", "NODES"), + + /** + * The 'ANY' literal object. + * + * + * @see #ANY_VALUE + * @generated + * @ordered + */ + ANY(1, "ANY", "ANY"); + + /** + * The 'NODES' literal value. + * + *

+ * If the meaning of 'NODES' literal object isn't clear, + * there really should be more of a description here... + *

+ * + * @see #NODES + * @model + * @generated + * @ordered + */ + public static final int NODES_VALUE = 0; + + /** + * The 'ANY' literal value. + * + *

+ * If the meaning of 'ANY' literal object isn't clear, + * there really should be more of a description here... + *

+ * + * @see #ANY + * @model + * @generated + * @ordered + */ + public static final int ANY_VALUE = 1; + + /** + * An array of all the 'EXml Virtual Access Methods Schema' enumerators. + * + * + * @generated + */ + private static final EXmlVirtualAccessMethodsSchema[] VALUES_ARRAY = + new EXmlVirtualAccessMethodsSchema[] + { + NODES, + ANY, + }; + + /** + * A public read-only list of all the 'EXml Virtual Access Methods Schema' enumerators. + * + * + * @generated + */ + public static final List VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY)); + + /** + * Returns the 'EXml Virtual Access Methods Schema' literal with the specified literal value. + * + * + * @generated + */ + public static EXmlVirtualAccessMethodsSchema get(String literal) + { + for (int i = 0; i < VALUES_ARRAY.length; ++i) + { + EXmlVirtualAccessMethodsSchema result = VALUES_ARRAY[i]; + if (result.toString().equals(literal)) + { + return result; + } + } + return null; + } + + /** + * Returns the 'EXml Virtual Access Methods Schema' literal with the specified name. + * + * + * @generated + */ + public static EXmlVirtualAccessMethodsSchema getByName(String name) + { + for (int i = 0; i < VALUES_ARRAY.length; ++i) + { + EXmlVirtualAccessMethodsSchema result = VALUES_ARRAY[i]; + if (result.getName().equals(name)) + { + return result; + } + } + return null; + } + + /** + * Returns the 'EXml Virtual Access Methods Schema' literal with the specified integer value. + * + * + * @generated + */ + public static EXmlVirtualAccessMethodsSchema get(int value) + { + switch (value) + { + case NODES_VALUE: return NODES; + case ANY_VALUE: return ANY; + } + return null; + } + + /** + * + * + * @generated + */ + private final int value; + + /** + * + * + * @generated + */ + private final String name; + + /** + * + * + * @generated + */ + private final String literal; + + /** + * Only this class can construct instances. + * + * + * @generated + */ + private EXmlVirtualAccessMethodsSchema(int value, String name, String literal) + { + this.value = value; + this.name = name; + this.literal = literal; + } + + /** + * + * + * @generated + */ + public int getValue() + { + return value; + } + + /** + * + * + * @generated + */ + public String getName() + { + return name; + } + + /** + * + * + * @generated + */ + public String getLiteral() + { + return literal; + } + + /** + * Returns the literal value of the enumerator, which is its string representation. + * + * + * @generated + */ + @Override + public String toString() + { + return literal; + } + +} //EXmlVirtualAccessMethodsSchema diff --git a/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlWriteTransformer.java b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlWriteTransformer.java new file mode 100644 index 0000000000..94af609de0 --- /dev/null +++ b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EXmlWriteTransformer.java @@ -0,0 +1,188 @@ +/** + */ +package org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm; + +import org.eclipse.emf.common.notify.Notification; + +import org.eclipse.emf.ecore.EClass; + +import org.eclipse.emf.ecore.impl.ENotificationImpl; + +/** + * + * A representation of the model object 'EXml Write Transformer'. + * + * + *

+ * The following features are supported: + *

    + *
  • {@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlWriteTransformer#getXmlPath Xml Path}
  • + *
+ *

+ * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlWriteTransformer() + * @model kind="class" + * @generated + */ +public class EXmlWriteTransformer extends EAbstractXmlTransformer +{ + /** + * The default value of the '{@link #getXmlPath() Xml Path}' attribute. + * + * + * @see #getXmlPath() + * @generated + * @ordered + */ + protected static final String XML_PATH_EDEFAULT = null; + + /** + * The cached value of the '{@link #getXmlPath() Xml Path}' attribute. + * + * + * @see #getXmlPath() + * @generated + * @ordered + */ + protected String xmlPath = XML_PATH_EDEFAULT; + + /** + * + * + * @generated + */ + protected EXmlWriteTransformer() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return OxmPackage.Literals.EXML_WRITE_TRANSFORMER; + } + + /** + * Returns the value of the 'Xml Path' attribute. + * + *

+ * If the meaning of the 'Xml Path' attribute isn't clear, + * there really should be more of a description here... + *

+ * + * @return the value of the 'Xml Path' attribute. + * @see #setXmlPath(String) + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlWriteTransformer_XmlPath() + * @model + * @generated + */ + public String getXmlPath() + { + return xmlPath; + } + + /** + * Sets the value of the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlWriteTransformer#getXmlPath Xml Path}' attribute. + * + * + * @param value the new value of the 'Xml Path' attribute. + * @see #getXmlPath() + * @generated + */ + public void setXmlPath(String newXmlPath) + { + String oldXmlPath = xmlPath; + xmlPath = newXmlPath; + if (eNotificationRequired()) + eNotify(new ENotificationImpl(this, Notification.SET, OxmPackage.EXML_WRITE_TRANSFORMER__XML_PATH, oldXmlPath, xmlPath)); + } + + /** + * + * + * @generated + */ + @Override + public Object eGet(int featureID, boolean resolve, boolean coreType) + { + switch (featureID) + { + case OxmPackage.EXML_WRITE_TRANSFORMER__XML_PATH: + return getXmlPath(); + } + return super.eGet(featureID, resolve, coreType); + } + + /** + * + * + * @generated + */ + @Override + public void eSet(int featureID, Object newValue) + { + switch (featureID) + { + case OxmPackage.EXML_WRITE_TRANSFORMER__XML_PATH: + setXmlPath((String)newValue); + return; + } + super.eSet(featureID, newValue); + } + + /** + * + * + * @generated + */ + @Override + public void eUnset(int featureID) + { + switch (featureID) + { + case OxmPackage.EXML_WRITE_TRANSFORMER__XML_PATH: + setXmlPath(XML_PATH_EDEFAULT); + return; + } + super.eUnset(featureID); + } + + /** + * + * + * @generated + */ + @Override + public boolean eIsSet(int featureID) + { + switch (featureID) + { + case OxmPackage.EXML_WRITE_TRANSFORMER__XML_PATH: + return XML_PATH_EDEFAULT == null ? xmlPath != null : !XML_PATH_EDEFAULT.equals(xmlPath); + } + return super.eIsSet(featureID); + } + + /** + * + * + * @generated + */ + @Override + public String toString() + { + if (eIsProxy()) return super.toString(); + + StringBuffer result = new StringBuffer(super.toString()); + result.append(" (xmlPath: "); + result.append(xmlPath); + result.append(')'); + return result.toString(); + } + +} // EXmlWriteTransformer diff --git a/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EclipseLink.java b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EclipseLink.java new file mode 100644 index 0000000000..4e11f8e649 --- /dev/null +++ b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/EclipseLink.java @@ -0,0 +1,49 @@ +/******************************************************************************* + * Copyright (c) 2012 Oracle. All rights reserved. + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v1.0, which accompanies this distribution + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Oracle - initial API and implementation + *******************************************************************************/ +package org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm; + +public interface EclipseLink { + + String SCHEMA_NAMESPACE = "http://www.eclipse.org/eclipselink/xsds/persistence/oxm"; + + String SCHEMA_VERSION_2_1 = "2.1"; + String SCHEMA_LOCATION_2_1 = "http://www.eclipse.org/eclipselink/xsds/eclipselink_oxm_2_1.xsd"; + + String SCHEMA_VERSION_2_2 = "2.2"; + String SCHEMA_LOCATION_2_2 = "http://www.eclipse.org/eclipselink/xsds/eclipselink_oxm_2_2.xsd"; + + String SCHEMA_VERSION_2_3 = "2.3"; + String SCHEMA_LOCATION_2_3 = "http://www.eclipse.org/eclipselink/xsds/eclipselink_oxm_2_3.xsd"; + + String SCHEMA_VERSION_2_4 = "2.4"; + String SCHEMA_LOCATION_2_4 = "http://www.eclipse.org/eclipselink/xsds/eclipselink_oxm_2_4.xsd"; + + + // EclipseLink specific nodes + String JAVA_ATTRIBUTES = "java-attributes"; //$NON-NLS-1$ + String JAVA_TYPE = "java-type"; //$NON-NLS-1$ + String JAVA_TYPES = "java-types"; //$NON-NLS-1$ + String XML_ANY_ATTRIBUTE = "xml-any-attribute"; //$NON-NLS-1$ + String XML_ANY_ELEMENT = "xml-any-element"; //$NON-NLS-1$ + String XML_ATTRIBUTE = "xml-attribute"; //$NON-NLS-1$ + String XML_BINDINGS = "xml-bindings"; //$NON-NLS-1$ + String XML_ELEMENT = "xml-element"; //$NON-NLS-1$ + String XML_ELEMENT_REF = "xml-element-ref"; //$NON-NLS-1$ + String XML_ELEMENT_REFS = "xml-element-refs"; //$NON-NLS-1$ + String XML_ELEMENTS = "xml-elements"; //$NON-NLS-1$ + String XML_INVERSE_REFERENCE = "xml-inverse-reference"; //$NON-NLS-1$ + String XML_IS_SET_NULL_POLICY = "xml-is-set-null-policy"; //$NON-NLS-1$ + String XML_JAVA_TYPE_ADAPTER = "xml-java-type-adapter"; //$NON-NLS-1$ + String XML_JOIN_NODES = "xml-join-nodes"; //$NON-NLS-1$ + String XML_NULL_POLICY = "xml-null-policy"; //$NON-NLS-1$ + String XML_TRANSFORMATION = "xml-transformation"; //$NON-NLS-1$ + String XML_TRANSIENT = "xml-transient"; //$NON-NLS-1$ + String XML_VALUE = "xml-value"; //$NON-NLS-1$ +} diff --git a/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/OxmFactory.java b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/OxmFactory.java new file mode 100644 index 0000000000..8839682485 --- /dev/null +++ b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/OxmFactory.java @@ -0,0 +1,782 @@ +/******************************************************************************* + * Copyright (c) 2012 Oracle. All rights reserved. + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v1.0, which accompanies this distribution + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Oracle - initial API and implementation + *******************************************************************************/ +package org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm; + +import java.util.ArrayList; +import java.util.List; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EDataType; +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.impl.EFactoryImpl; +import org.eclipse.emf.ecore.plugin.EcorePlugin; +import org.eclipse.emf.ecore.xml.type.XMLTypeFactory; +import org.eclipse.emf.ecore.xml.type.XMLTypePackage; + +/** + * + * The Factory for the model. + * It provides a create method for each non-abstract class of the model. + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage + * @generated + */ +public class OxmFactory extends EFactoryImpl +{ + /** + * The singleton instance of the factory. + * + * + * @generated + */ + public static final OxmFactory eINSTANCE = init(); + + /** + * Creates the default factory implementation. + * + * + * @generated + */ + public static OxmFactory init() + { + try + { + OxmFactory theOxmFactory = (OxmFactory)EPackage.Registry.INSTANCE.getEFactory("jpt.eclipselink.oxm.xmi"); + if (theOxmFactory != null) + { + return theOxmFactory; + } + } + catch (Exception exception) + { + EcorePlugin.INSTANCE.log(exception); + } + return new OxmFactory(); + } + + /** + * Creates an instance of the factory. + * + * + * @generated + */ + public OxmFactory() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + public EObject create(EClass eClass) + { + switch (eClass.getClassifierID()) + { + case OxmPackage.EJAVA_TYPE: return (EObject)createEJavaType(); + case OxmPackage.EXML_ACCESS_METHODS: return (EObject)createEXmlAccessMethods(); + case OxmPackage.EXML_ANY_ATTRIBUTE: return (EObject)createEXmlAnyAttribute(); + case OxmPackage.EXML_ANY_ELEMENT: return (EObject)createEXmlAnyElement(); + case OxmPackage.EXML_ATTRIBUTE: return (EObject)createEXmlAttribute(); + case OxmPackage.EXML_BINDINGS: return (EObject)createEXmlBindings(); + case OxmPackage.EXML_CLASS_EXTRACTOR: return (EObject)createEXmlClassExtractor(); + case OxmPackage.EXML_ELEMENT: return (EObject)createEXmlElement(); + case OxmPackage.EXML_ELEMENT_DECL: return (EObject)createEXmlElementDecl(); + case OxmPackage.EXML_ELEMENT_REF: return (EObject)createEXmlElementRef(); + case OxmPackage.EXML_ELEMENT_REFS: return (EObject)createEXmlElementRefs(); + case OxmPackage.EXML_ELEMENTS: return (EObject)createEXmlElements(); + case OxmPackage.EXML_ELEMENT_WRAPPER: return (EObject)createEXmlElementWrapper(); + case OxmPackage.EXML_ENUM: return (EObject)createEXmlEnum(); + case OxmPackage.EXML_ENUM_VALUE: return (EObject)createEXmlEnumValue(); + case OxmPackage.EXML_INVERSE_REFERENCE: return (EObject)createEXmlInverseReference(); + case OxmPackage.EXML_IS_SET_NULL_POLICY: return (EObject)createEXmlIsSetNullPolicy(); + case OxmPackage.EXML_IS_SET_PARAMETER: return (EObject)createEXmlIsSetParameter(); + case OxmPackage.EXML_JAVA_TYPE_ADAPTER: return (EObject)createEXmlJavaTypeAdapter(); + case OxmPackage.EXML_JOIN_NODE: return (EObject)createEXmlJoinNode(); + case OxmPackage.EXML_JOIN_NODES: return (EObject)createEXmlJoinNodes(); + case OxmPackage.EXML_MAP: return (EObject)createEXmlMap(); + case OxmPackage.EXML_NULL_POLICY: return (EObject)createEXmlNullPolicy(); + case OxmPackage.EXML_NS: return (EObject)createEXmlNs(); + case OxmPackage.EXML_PROPERTY: return (EObject)createEXmlProperty(); + case OxmPackage.EXML_READ_TRANSFORMER: return (EObject)createEXmlReadTransformer(); + case OxmPackage.EXML_REGISTRY: return (EObject)createEXmlRegistry(); + case OxmPackage.EXML_ROOT_ELEMENT: return (EObject)createEXmlRootElement(); + case OxmPackage.EXML_SCHEMA: return (EObject)createEXmlSchema(); + case OxmPackage.EXML_SCHEMA_TYPE: return (EObject)createEXmlSchemaType(); + case OxmPackage.EXML_TRANSFORMATION: return (EObject)createEXmlTransformation(); + case OxmPackage.EXML_TRANSIENT: return (EObject)createEXmlTransient(); + case OxmPackage.EXML_TYPE: return (EObject)createEXmlType(); + case OxmPackage.EXML_VALUE: return (EObject)createEXmlValue(); + case OxmPackage.EXML_VIRTUAL_ACCESS_METHODS: return (EObject)createEXmlVirtualAccessMethods(); + case OxmPackage.EXML_WRITE_TRANSFORMER: return (EObject)createEXmlWriteTransformer(); + default: + throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier"); + } + } + + /** + * + * + * @generated + */ + @Override + public Object createFromString(EDataType eDataType, String initialValue) + { + switch (eDataType.getClassifierID()) + { + case OxmPackage.EXML_ACCESS_ORDER: + return createEXmlAccessOrderFromString(eDataType, initialValue); + case OxmPackage.EXML_ACCESS_TYPE: + return createEXmlAccessTypeFromString(eDataType, initialValue); + case OxmPackage.EXML_MARSHAL_NULL_REPRESENTATION: + return createEXmlMarshalNullRepresentationFromString(eDataType, initialValue); + case OxmPackage.EXML_NS_FORM: + return createEXmlNsFormFromString(eDataType, initialValue); + case OxmPackage.EXML_VIRTUAL_ACCESS_METHODS_SCHEMA: + return createEXmlVirtualAccessMethodsSchemaFromString(eDataType, initialValue); + case OxmPackage.EPROP_ORDER: + return createEPropOrderFromString(eDataType, initialValue); + case OxmPackage.EXML_SEE_ALSO: + return createEXmlSeeAlsoFromString(eDataType, initialValue); + default: + throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); + } + } + + /** + * + * + * @generated + */ + @Override + public String convertToString(EDataType eDataType, Object instanceValue) + { + switch (eDataType.getClassifierID()) + { + case OxmPackage.EXML_ACCESS_ORDER: + return convertEXmlAccessOrderToString(eDataType, instanceValue); + case OxmPackage.EXML_ACCESS_TYPE: + return convertEXmlAccessTypeToString(eDataType, instanceValue); + case OxmPackage.EXML_MARSHAL_NULL_REPRESENTATION: + return convertEXmlMarshalNullRepresentationToString(eDataType, instanceValue); + case OxmPackage.EXML_NS_FORM: + return convertEXmlNsFormToString(eDataType, instanceValue); + case OxmPackage.EXML_VIRTUAL_ACCESS_METHODS_SCHEMA: + return convertEXmlVirtualAccessMethodsSchemaToString(eDataType, instanceValue); + case OxmPackage.EPROP_ORDER: + return convertEPropOrderToString(eDataType, instanceValue); + case OxmPackage.EXML_SEE_ALSO: + return convertEXmlSeeAlsoToString(eDataType, instanceValue); + default: + throw new IllegalArgumentException("The datatype '" + eDataType.getName() + "' is not a valid classifier"); + } + } + + /** + * + * + * @generated + */ + public EJavaType createEJavaType() + { + EJavaType eJavaType = new EJavaType(); + return eJavaType; + } + + /** + * + * + * @generated + */ + public EXmlAccessMethods createEXmlAccessMethods() + { + EXmlAccessMethods eXmlAccessMethods = new EXmlAccessMethods(); + return eXmlAccessMethods; + } + + /** + * + * + * @generated + */ + public EXmlAnyAttribute createEXmlAnyAttribute() + { + EXmlAnyAttribute eXmlAnyAttribute = new EXmlAnyAttribute(); + return eXmlAnyAttribute; + } + + /** + * + * + * @generated + */ + public EXmlAnyElement createEXmlAnyElement() + { + EXmlAnyElement eXmlAnyElement = new EXmlAnyElement(); + return eXmlAnyElement; + } + + /** + * + * + * @generated + */ + public EXmlAttribute createEXmlAttribute() + { + EXmlAttribute eXmlAttribute = new EXmlAttribute(); + return eXmlAttribute; + } + + /** + * + * + * @generated + */ + public EXmlBindings createEXmlBindings() + { + EXmlBindings eXmlBindings = new EXmlBindings(); + return eXmlBindings; + } + + /** + * + * + * @generated + */ + public EXmlClassExtractor createEXmlClassExtractor() + { + EXmlClassExtractor eXmlClassExtractor = new EXmlClassExtractor(); + return eXmlClassExtractor; + } + + /** + * + * + * @generated + */ + public EXmlElement createEXmlElement() + { + EXmlElement eXmlElement = new EXmlElement(); + return eXmlElement; + } + + /** + * + * + * @generated + */ + public EXmlElementDecl createEXmlElementDecl() + { + EXmlElementDecl eXmlElementDecl = new EXmlElementDecl(); + return eXmlElementDecl; + } + + /** + * + * + * @generated + */ + public EXmlElementRef createEXmlElementRef() + { + EXmlElementRef eXmlElementRef = new EXmlElementRef(); + return eXmlElementRef; + } + + /** + * + * + * @generated + */ + public EXmlElementRefs createEXmlElementRefs() + { + EXmlElementRefs eXmlElementRefs = new EXmlElementRefs(); + return eXmlElementRefs; + } + + /** + * + * + * @generated + */ + public EXmlElements createEXmlElements() + { + EXmlElements eXmlElements = new EXmlElements(); + return eXmlElements; + } + + /** + * + * + * @generated + */ + public EXmlElementWrapper createEXmlElementWrapper() + { + EXmlElementWrapper eXmlElementWrapper = new EXmlElementWrapper(); + return eXmlElementWrapper; + } + + /** + * + * + * @generated + */ + public EXmlEnum createEXmlEnum() + { + EXmlEnum eXmlEnum = new EXmlEnum(); + return eXmlEnum; + } + + /** + * + * + * @generated + */ + public EXmlEnumValue createEXmlEnumValue() + { + EXmlEnumValue eXmlEnumValue = new EXmlEnumValue(); + return eXmlEnumValue; + } + + /** + * + * + * @generated + */ + public EXmlInverseReference createEXmlInverseReference() + { + EXmlInverseReference eXmlInverseReference = new EXmlInverseReference(); + return eXmlInverseReference; + } + + /** + * + * + * @generated + */ + public EXmlIsSetNullPolicy createEXmlIsSetNullPolicy() + { + EXmlIsSetNullPolicy eXmlIsSetNullPolicy = new EXmlIsSetNullPolicy(); + return eXmlIsSetNullPolicy; + } + + /** + * + * + * @generated + */ + public EXmlIsSetParameter createEXmlIsSetParameter() + { + EXmlIsSetParameter eXmlIsSetParameter = new EXmlIsSetParameter(); + return eXmlIsSetParameter; + } + + /** + * + * + * @generated + */ + public EXmlJavaTypeAdapter createEXmlJavaTypeAdapter() + { + EXmlJavaTypeAdapter eXmlJavaTypeAdapter = new EXmlJavaTypeAdapter(); + return eXmlJavaTypeAdapter; + } + + /** + * + * + * @generated + */ + public EXmlJoinNode createEXmlJoinNode() + { + EXmlJoinNode eXmlJoinNode = new EXmlJoinNode(); + return eXmlJoinNode; + } + + /** + * + * + * @generated + */ + public EXmlJoinNodes createEXmlJoinNodes() + { + EXmlJoinNodes eXmlJoinNodes = new EXmlJoinNodes(); + return eXmlJoinNodes; + } + + /** + * + * + * @generated + */ + public EXmlMap createEXmlMap() + { + EXmlMap eXmlMap = new EXmlMap(); + return eXmlMap; + } + + /** + * + * + * @generated + */ + public EXmlNullPolicy createEXmlNullPolicy() + { + EXmlNullPolicy eXmlNullPolicy = new EXmlNullPolicy(); + return eXmlNullPolicy; + } + + /** + * + * + * @generated + */ + public EXmlNs createEXmlNs() + { + EXmlNs eXmlNs = new EXmlNs(); + return eXmlNs; + } + + /** + * + * + * @generated + */ + public EXmlProperty createEXmlProperty() + { + EXmlProperty eXmlProperty = new EXmlProperty(); + return eXmlProperty; + } + + /** + * + * + * @generated + */ + public EXmlReadTransformer createEXmlReadTransformer() + { + EXmlReadTransformer eXmlReadTransformer = new EXmlReadTransformer(); + return eXmlReadTransformer; + } + + /** + * + * + * @generated + */ + public EXmlRegistry createEXmlRegistry() + { + EXmlRegistry eXmlRegistry = new EXmlRegistry(); + return eXmlRegistry; + } + + /** + * + * + * @generated + */ + public EXmlRootElement createEXmlRootElement() + { + EXmlRootElement eXmlRootElement = new EXmlRootElement(); + return eXmlRootElement; + } + + /** + * + * + * @generated + */ + public EXmlSchema createEXmlSchema() + { + EXmlSchema eXmlSchema = new EXmlSchema(); + return eXmlSchema; + } + + /** + * + * + * @generated + */ + public EXmlSchemaType createEXmlSchemaType() + { + EXmlSchemaType eXmlSchemaType = new EXmlSchemaType(); + return eXmlSchemaType; + } + + /** + * + * + * @generated + */ + public EXmlTransformation createEXmlTransformation() + { + EXmlTransformation eXmlTransformation = new EXmlTransformation(); + return eXmlTransformation; + } + + /** + * + * + * @generated + */ + public EXmlTransient createEXmlTransient() + { + EXmlTransient eXmlTransient = new EXmlTransient(); + return eXmlTransient; + } + + /** + * + * + * @generated + */ + public EXmlType createEXmlType() + { + EXmlType eXmlType = new EXmlType(); + return eXmlType; + } + + /** + * + * + * @generated + */ + public EXmlValue createEXmlValue() + { + EXmlValue eXmlValue = new EXmlValue(); + return eXmlValue; + } + + /** + * + * + * @generated + */ + public EXmlVirtualAccessMethods createEXmlVirtualAccessMethods() + { + EXmlVirtualAccessMethods eXmlVirtualAccessMethods = new EXmlVirtualAccessMethods(); + return eXmlVirtualAccessMethods; + } + + /** + * + * + * @generated + */ + public EXmlWriteTransformer createEXmlWriteTransformer() + { + EXmlWriteTransformer eXmlWriteTransformer = new EXmlWriteTransformer(); + return eXmlWriteTransformer; + } + + /** + * + * + * @generated + */ + public EXmlAccessOrder createEXmlAccessOrderFromString(EDataType eDataType, String initialValue) + { + EXmlAccessOrder result = EXmlAccessOrder.get(initialValue); + if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); + return result; + } + + /** + * + * + * @generated + */ + public String convertEXmlAccessOrderToString(EDataType eDataType, Object instanceValue) + { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * + * + * @generated + */ + public EXmlAccessType createEXmlAccessTypeFromString(EDataType eDataType, String initialValue) + { + EXmlAccessType result = EXmlAccessType.get(initialValue); + if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); + return result; + } + + /** + * + * + * @generated + */ + public String convertEXmlAccessTypeToString(EDataType eDataType, Object instanceValue) + { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * + * + * @generated + */ + public EXmlMarshalNullRepresentation createEXmlMarshalNullRepresentationFromString(EDataType eDataType, String initialValue) + { + EXmlMarshalNullRepresentation result = EXmlMarshalNullRepresentation.get(initialValue); + if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); + return result; + } + + /** + * + * + * @generated + */ + public String convertEXmlMarshalNullRepresentationToString(EDataType eDataType, Object instanceValue) + { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * + * + * @generated + */ + public EXmlNsForm createEXmlNsFormFromString(EDataType eDataType, String initialValue) + { + EXmlNsForm result = EXmlNsForm.get(initialValue); + if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); + return result; + } + + /** + * + * + * @generated + */ + public String convertEXmlNsFormToString(EDataType eDataType, Object instanceValue) + { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * + * + * @generated + */ + public EXmlVirtualAccessMethodsSchema createEXmlVirtualAccessMethodsSchemaFromString(EDataType eDataType, String initialValue) + { + EXmlVirtualAccessMethodsSchema result = EXmlVirtualAccessMethodsSchema.get(initialValue); + if (result == null) throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '" + eDataType.getName() + "'"); + return result; + } + + /** + * + * + * @generated + */ + public String convertEXmlVirtualAccessMethodsSchemaToString(EDataType eDataType, Object instanceValue) + { + return instanceValue == null ? null : instanceValue.toString(); + } + + /** + * + * + * @generated + */ + public List createEPropOrderFromString(EDataType eDataType, String initialValue) + { + if (initialValue == null) return null; + List result = new ArrayList(); + for (String item : split(initialValue)) + { + result.add((String)XMLTypeFactory.eINSTANCE.createFromString(XMLTypePackage.Literals.STRING, item)); + } + return result; + } + + /** + * + * + * @generated + */ + public String convertEPropOrderToString(EDataType eDataType, Object instanceValue) + { + if (instanceValue == null) return null; + List list = (List)instanceValue; + if (list.isEmpty()) return ""; + StringBuffer result = new StringBuffer(); + for (Object item : list) + { + result.append(XMLTypeFactory.eINSTANCE.convertToString(XMLTypePackage.Literals.STRING, item)); + result.append(' '); + } + return result.substring(0, result.length() - 1); + } + + /** + * + * + * @generated + */ + public List createEXmlSeeAlsoFromString(EDataType eDataType, String initialValue) + { + if (initialValue == null) return null; + List result = new ArrayList(); + for (String item : split(initialValue)) + { + result.add((String)XMLTypeFactory.eINSTANCE.createFromString(XMLTypePackage.Literals.STRING, item)); + } + return result; + } + + /** + * + * + * @generated + */ + public String convertEXmlSeeAlsoToString(EDataType eDataType, Object instanceValue) + { + if (instanceValue == null) return null; + List list = (List)instanceValue; + if (list.isEmpty()) return ""; + StringBuffer result = new StringBuffer(); + for (Object item : list) + { + result.append(XMLTypeFactory.eINSTANCE.convertToString(XMLTypePackage.Literals.STRING, item)); + result.append(' '); + } + return result.substring(0, result.length() - 1); + } + + /** + * + * + * @generated + */ + public OxmPackage getOxmPackage() + { + return (OxmPackage)getEPackage(); + } + + /** + * + * + * @deprecated + * @generated + */ + @Deprecated + public static OxmPackage getPackage() + { + return OxmPackage.eINSTANCE; + } + +} //OxmFactory diff --git a/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/OxmPackage.java b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/OxmPackage.java new file mode 100644 index 0000000000..9074a07988 --- /dev/null +++ b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/OxmPackage.java @@ -0,0 +1,9301 @@ +/******************************************************************************* + * Copyright (c) 2012 Oracle. All rights reserved. + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v1.0, which accompanies this distribution + * and is available at http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Oracle - initial API and implementation + *******************************************************************************/ +package org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm; + +import java.util.List; +import org.eclipse.emf.ecore.EAttribute; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EDataType; +import org.eclipse.emf.ecore.EEnum; +import org.eclipse.emf.ecore.EPackage; +import org.eclipse.emf.ecore.EReference; +import org.eclipse.emf.ecore.EValidator; +import org.eclipse.emf.ecore.impl.EPackageImpl; +import org.eclipse.jpt.common.core.resource.xml.CommonPackage; +import org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.util.OxmValidator; + +/** + * + * The Package for the model. + * It contains accessors for the meta objects to represent + *
    + *
  • each class,
  • + *
  • each feature of each class,
  • + *
  • each enum,
  • + *
  • and each data type
  • + *
+ * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmFactory + * @model kind="package" + * @generated + */ +public class OxmPackage extends EPackageImpl +{ + /** + * The package name. + * + * + * @generated + */ + public static final String eNAME = "oxm"; + + /** + * The package namespace URI. + * + * + * @generated + */ + public static final String eNS_URI = "jpt.eclipselink.oxm.xmi"; + + /** + * The package namespace name. + * + * + * @generated + */ + public static final String eNS_PREFIX = "org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm"; + + /** + * The singleton instance of the package. + * + * + * @generated + */ + public static final OxmPackage eINSTANCE = org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage.init(); + + /** + * The meta object id for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EAbstractXmlNullPolicy EAbstract Xml Null Policy}' class. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EAbstractXmlNullPolicy + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEAbstractXmlNullPolicy() + * @generated + */ + public static final int EABSTRACT_XML_NULL_POLICY = 0; + + /** + * The feature id for the 'Xsi Nil Represents Null' attribute. + * + * + * @generated + * @ordered + */ + public static final int EABSTRACT_XML_NULL_POLICY__XSI_NIL_REPRESENTS_NULL = 0; + + /** + * The feature id for the 'Empty Node Represents Null' attribute. + * + * + * @generated + * @ordered + */ + public static final int EABSTRACT_XML_NULL_POLICY__EMPTY_NODE_REPRESENTS_NULL = 1; + + /** + * The feature id for the 'Null Representation For Xml' attribute. + * + * + * @generated + * @ordered + */ + public static final int EABSTRACT_XML_NULL_POLICY__NULL_REPRESENTATION_FOR_XML = 2; + + /** + * The number of structural features of the 'EAbstract Xml Null Policy' class. + * + * + * @generated + * @ordered + */ + public static final int EABSTRACT_XML_NULL_POLICY_FEATURE_COUNT = 3; + + /** + * The meta object id for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EAbstractXmlTransformer EAbstract Xml Transformer}' class. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EAbstractXmlTransformer + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEAbstractXmlTransformer() + * @generated + */ + public static final int EABSTRACT_XML_TRANSFORMER = 1; + + /** + * The feature id for the 'Method' attribute. + * + * + * @generated + * @ordered + */ + public static final int EABSTRACT_XML_TRANSFORMER__METHOD = 0; + + /** + * The feature id for the 'Transformer Class' attribute. + * + * + * @generated + * @ordered + */ + public static final int EABSTRACT_XML_TRANSFORMER__TRANSFORMER_CLASS = 1; + + /** + * The number of structural features of the 'EAbstract Xml Transformer' class. + * + * + * @generated + * @ordered + */ + public static final int EABSTRACT_XML_TRANSFORMER_FEATURE_COUNT = 2; + + /** + * The meta object id for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EAccessibleJavaAttribute EAccessible Java Attribute}' class. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EAccessibleJavaAttribute + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEAccessibleJavaAttribute() + * @generated + */ + public static final int EACCESSIBLE_JAVA_ATTRIBUTE = 2; + + /** + * The feature id for the 'Xml Access Methods' containment reference. + * + * + * @generated + * @ordered + */ + public static final int EACCESSIBLE_JAVA_ATTRIBUTE__XML_ACCESS_METHODS = 0; + + /** + * The number of structural features of the 'EAccessible Java Attribute' class. + * + * + * @generated + * @ordered + */ + public static final int EACCESSIBLE_JAVA_ATTRIBUTE_FEATURE_COUNT = 1; + + /** + * The meta object id for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EAdaptableJavaAttribute EAdaptable Java Attribute}' class. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EAdaptableJavaAttribute + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEAdaptableJavaAttribute() + * @generated + */ + public static final int EADAPTABLE_JAVA_ATTRIBUTE = 3; + + /** + * The feature id for the 'Xml Java Type Adapter' containment reference. + * + * + * @generated + * @ordered + */ + public static final int EADAPTABLE_JAVA_ATTRIBUTE__XML_JAVA_TYPE_ADAPTER = 0; + + /** + * The number of structural features of the 'EAdaptable Java Attribute' class. + * + * + * @generated + * @ordered + */ + public static final int EADAPTABLE_JAVA_ATTRIBUTE_FEATURE_COUNT = 1; + + /** + * The meta object id for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EContainerJavaAttribute EContainer Java Attribute}' class. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EContainerJavaAttribute + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEContainerJavaAttribute() + * @generated + */ + public static final int ECONTAINER_JAVA_ATTRIBUTE = 4; + + /** + * The feature id for the 'Container Type' attribute. + * + * + * @generated + * @ordered + */ + public static final int ECONTAINER_JAVA_ATTRIBUTE__CONTAINER_TYPE = 0; + + /** + * The number of structural features of the 'EContainer Java Attribute' class. + * + * + * @generated + * @ordered + */ + public static final int ECONTAINER_JAVA_ATTRIBUTE_FEATURE_COUNT = 1; + + /** + * The meta object id for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EJavaAttribute EJava Attribute}' class. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EJavaAttribute + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEJavaAttribute() + * @generated + */ + public static final int EJAVA_ATTRIBUTE = 5; + + /** + * The feature id for the 'Java Attribute' attribute. + * + * + * @generated + * @ordered + */ + public static final int EJAVA_ATTRIBUTE__JAVA_ATTRIBUTE = 0; + + /** + * The feature id for the 'Xml Accessor Type' attribute. + * + * + * @generated + * @ordered + */ + public static final int EJAVA_ATTRIBUTE__XML_ACCESSOR_TYPE = 1; + + /** + * The number of structural features of the 'EJava Attribute' class. + * + * + * @generated + * @ordered + */ + public static final int EJAVA_ATTRIBUTE_FEATURE_COUNT = 2; + + /** + * The meta object id for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EPropertyHolder EProperty Holder}' class. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EPropertyHolder + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEPropertyHolder() + * @generated + */ + public static final int EPROPERTY_HOLDER = 7; + + /** + * The feature id for the 'Xml Properties' containment reference list. + * + * + * @generated + * @ordered + */ + public static final int EPROPERTY_HOLDER__XML_PROPERTIES = 0; + + /** + * The number of structural features of the 'EProperty Holder' class. + * + * + * @generated + * @ordered + */ + public static final int EPROPERTY_HOLDER_FEATURE_COUNT = 1; + + /** + * The meta object id for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EJavaType EJava Type}' class. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EJavaType + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEJavaType() + * @generated + */ + public static final int EJAVA_TYPE = 6; + + /** + * The feature id for the 'Xml Properties' containment reference list. + * + * + * @generated + * @ordered + */ + public static final int EJAVA_TYPE__XML_PROPERTIES = EPROPERTY_HOLDER__XML_PROPERTIES; + + /** + * The feature id for the 'Name' attribute. + * + * + * @generated + * @ordered + */ + public static final int EJAVA_TYPE__NAME = EPROPERTY_HOLDER_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Super Type' attribute. + * + * + * @generated + * @ordered + */ + public static final int EJAVA_TYPE__SUPER_TYPE = EPROPERTY_HOLDER_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Xml Accessor Order' attribute. + * + * + * @generated + * @ordered + */ + public static final int EJAVA_TYPE__XML_ACCESSOR_ORDER = EPROPERTY_HOLDER_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Xml Accessor Type' attribute. + * + * + * @generated + * @ordered + */ + public static final int EJAVA_TYPE__XML_ACCESSOR_TYPE = EPROPERTY_HOLDER_FEATURE_COUNT + 3; + + /** + * The feature id for the 'Xml Customizer' attribute. + * + * + * @generated + * @ordered + */ + public static final int EJAVA_TYPE__XML_CUSTOMIZER = EPROPERTY_HOLDER_FEATURE_COUNT + 4; + + /** + * The feature id for the 'Xml Discriminator Node' attribute. + * + * + * @generated + * @ordered + */ + public static final int EJAVA_TYPE__XML_DISCRIMINATOR_NODE = EPROPERTY_HOLDER_FEATURE_COUNT + 5; + + /** + * The feature id for the 'Xml Discriminator Value' attribute. + * + * + * @generated + * @ordered + */ + public static final int EJAVA_TYPE__XML_DISCRIMINATOR_VALUE = EPROPERTY_HOLDER_FEATURE_COUNT + 6; + + /** + * The feature id for the 'Xml Inline Binary Data' attribute. + * + * + * @generated + * @ordered + */ + public static final int EJAVA_TYPE__XML_INLINE_BINARY_DATA = EPROPERTY_HOLDER_FEATURE_COUNT + 7; + + /** + * The feature id for the 'Xml Transient' attribute. + * + * + * @generated + * @ordered + */ + public static final int EJAVA_TYPE__XML_TRANSIENT = EPROPERTY_HOLDER_FEATURE_COUNT + 8; + + /** + * The feature id for the 'Xml Name Transformer' attribute. + * + * + * @generated + * @ordered + */ + public static final int EJAVA_TYPE__XML_NAME_TRANSFORMER = EPROPERTY_HOLDER_FEATURE_COUNT + 9; + + /** + * The feature id for the 'Xml Type' containment reference. + * + * + * @generated + * @ordered + */ + public static final int EJAVA_TYPE__XML_TYPE = EPROPERTY_HOLDER_FEATURE_COUNT + 10; + + /** + * The feature id for the 'Xml Root Element' containment reference. + * + * + * @generated + * @ordered + */ + public static final int EJAVA_TYPE__XML_ROOT_ELEMENT = EPROPERTY_HOLDER_FEATURE_COUNT + 11; + + /** + * The feature id for the 'Xml Virtual Access Methods' containment reference. + * + * + * @generated + * @ordered + */ + public static final int EJAVA_TYPE__XML_VIRTUAL_ACCESS_METHODS = EPROPERTY_HOLDER_FEATURE_COUNT + 12; + + /** + * The feature id for the 'Xml See Also' attribute. + * + * + * @generated + * @ordered + */ + public static final int EJAVA_TYPE__XML_SEE_ALSO = EPROPERTY_HOLDER_FEATURE_COUNT + 13; + + /** + * The feature id for the 'Xml Java Type Adapter' containment reference. + * + * + * @generated + * @ordered + */ + public static final int EJAVA_TYPE__XML_JAVA_TYPE_ADAPTER = EPROPERTY_HOLDER_FEATURE_COUNT + 14; + + /** + * The feature id for the 'Xml Class Extractor' containment reference. + * + * + * @generated + * @ordered + */ + public static final int EJAVA_TYPE__XML_CLASS_EXTRACTOR = EPROPERTY_HOLDER_FEATURE_COUNT + 15; + + /** + * The feature id for the 'Java Attributes' containment reference list. + * + * + * @generated + * @ordered + */ + public static final int EJAVA_TYPE__JAVA_ATTRIBUTES = EPROPERTY_HOLDER_FEATURE_COUNT + 16; + + /** + * The number of structural features of the 'EJava Type' class. + * + * + * @generated + * @ordered + */ + public static final int EJAVA_TYPE_FEATURE_COUNT = EPROPERTY_HOLDER_FEATURE_COUNT + 17; + + /** + * The meta object id for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EReadWriteJavaAttribute ERead Write Java Attribute}' class. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EReadWriteJavaAttribute + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEReadWriteJavaAttribute() + * @generated + */ + public static final int EREAD_WRITE_JAVA_ATTRIBUTE = 8; + + /** + * The feature id for the 'Read Only' attribute. + * + * + * @generated + * @ordered + */ + public static final int EREAD_WRITE_JAVA_ATTRIBUTE__READ_ONLY = 0; + + /** + * The feature id for the 'Write Only' attribute. + * + * + * @generated + * @ordered + */ + public static final int EREAD_WRITE_JAVA_ATTRIBUTE__WRITE_ONLY = 1; + + /** + * The number of structural features of the 'ERead Write Java Attribute' class. + * + * + * @generated + * @ordered + */ + public static final int EREAD_WRITE_JAVA_ATTRIBUTE_FEATURE_COUNT = 2; + + /** + * The meta object id for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.ETypedJavaAttribute ETyped Java Attribute}' class. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.ETypedJavaAttribute + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getETypedJavaAttribute() + * @generated + */ + public static final int ETYPED_JAVA_ATTRIBUTE = 9; + + /** + * The feature id for the 'Type' attribute. + * + * + * @generated + * @ordered + */ + public static final int ETYPED_JAVA_ATTRIBUTE__TYPE = 0; + + /** + * The number of structural features of the 'ETyped Java Attribute' class. + * + * + * @generated + * @ordered + */ + public static final int ETYPED_JAVA_ATTRIBUTE_FEATURE_COUNT = 1; + + /** + * The meta object id for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAccessMethods EXml Access Methods}' class. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAccessMethods + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlAccessMethods() + * @generated + */ + public static final int EXML_ACCESS_METHODS = 10; + + /** + * The feature id for the 'Get Method' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ACCESS_METHODS__GET_METHOD = 0; + + /** + * The feature id for the 'Set Method' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ACCESS_METHODS__SET_METHOD = 1; + + /** + * The number of structural features of the 'EXml Access Methods' class. + * + * + * @generated + * @ordered + */ + public static final int EXML_ACCESS_METHODS_FEATURE_COUNT = 2; + + /** + * The meta object id for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAnyAttribute EXml Any Attribute}' class. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAnyAttribute + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlAnyAttribute() + * @generated + */ + public static final int EXML_ANY_ATTRIBUTE = 11; + + /** + * The feature id for the 'Java Attribute' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ANY_ATTRIBUTE__JAVA_ATTRIBUTE = EJAVA_ATTRIBUTE__JAVA_ATTRIBUTE; + + /** + * The feature id for the 'Xml Accessor Type' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ANY_ATTRIBUTE__XML_ACCESSOR_TYPE = EJAVA_ATTRIBUTE__XML_ACCESSOR_TYPE; + + /** + * The feature id for the 'Xml Access Methods' containment reference. + * + * + * @generated + * @ordered + */ + public static final int EXML_ANY_ATTRIBUTE__XML_ACCESS_METHODS = EJAVA_ATTRIBUTE_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Container Type' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ANY_ATTRIBUTE__CONTAINER_TYPE = EJAVA_ATTRIBUTE_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Read Only' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ANY_ATTRIBUTE__READ_ONLY = EJAVA_ATTRIBUTE_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Write Only' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ANY_ATTRIBUTE__WRITE_ONLY = EJAVA_ATTRIBUTE_FEATURE_COUNT + 3; + + /** + * The feature id for the 'Xml Properties' containment reference list. + * + * + * @generated + * @ordered + */ + public static final int EXML_ANY_ATTRIBUTE__XML_PROPERTIES = EJAVA_ATTRIBUTE_FEATURE_COUNT + 4; + + /** + * The feature id for the 'Xml Path' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ANY_ATTRIBUTE__XML_PATH = EJAVA_ATTRIBUTE_FEATURE_COUNT + 5; + + /** + * The number of structural features of the 'EXml Any Attribute' class. + * + * + * @generated + * @ordered + */ + public static final int EXML_ANY_ATTRIBUTE_FEATURE_COUNT = EJAVA_ATTRIBUTE_FEATURE_COUNT + 6; + + /** + * The meta object id for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAnyElement EXml Any Element}' class. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAnyElement + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlAnyElement() + * @generated + */ + public static final int EXML_ANY_ELEMENT = 12; + + /** + * The feature id for the 'Java Attribute' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ANY_ELEMENT__JAVA_ATTRIBUTE = EJAVA_ATTRIBUTE__JAVA_ATTRIBUTE; + + /** + * The feature id for the 'Xml Accessor Type' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ANY_ELEMENT__XML_ACCESSOR_TYPE = EJAVA_ATTRIBUTE__XML_ACCESSOR_TYPE; + + /** + * The feature id for the 'Xml Access Methods' containment reference. + * + * + * @generated + * @ordered + */ + public static final int EXML_ANY_ELEMENT__XML_ACCESS_METHODS = EJAVA_ATTRIBUTE_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Xml Java Type Adapter' containment reference. + * + * + * @generated + * @ordered + */ + public static final int EXML_ANY_ELEMENT__XML_JAVA_TYPE_ADAPTER = EJAVA_ATTRIBUTE_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Container Type' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ANY_ELEMENT__CONTAINER_TYPE = EJAVA_ATTRIBUTE_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Read Only' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ANY_ELEMENT__READ_ONLY = EJAVA_ATTRIBUTE_FEATURE_COUNT + 3; + + /** + * The feature id for the 'Write Only' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ANY_ELEMENT__WRITE_ONLY = EJAVA_ATTRIBUTE_FEATURE_COUNT + 4; + + /** + * The feature id for the 'Xml Properties' containment reference list. + * + * + * @generated + * @ordered + */ + public static final int EXML_ANY_ELEMENT__XML_PROPERTIES = EJAVA_ATTRIBUTE_FEATURE_COUNT + 5; + + /** + * The feature id for the 'Xml Mixed' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ANY_ELEMENT__XML_MIXED = EJAVA_ATTRIBUTE_FEATURE_COUNT + 6; + + /** + * The feature id for the 'Lax' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ANY_ELEMENT__LAX = EJAVA_ATTRIBUTE_FEATURE_COUNT + 7; + + /** + * The feature id for the 'Dom Handler' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ANY_ELEMENT__DOM_HANDLER = EJAVA_ATTRIBUTE_FEATURE_COUNT + 8; + + /** + * The feature id for the 'Xml Path' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ANY_ELEMENT__XML_PATH = EJAVA_ATTRIBUTE_FEATURE_COUNT + 9; + + /** + * The feature id for the 'Xml Element Refs' containment reference. + * + * + * @generated + * @ordered + */ + public static final int EXML_ANY_ELEMENT__XML_ELEMENT_REFS = EJAVA_ATTRIBUTE_FEATURE_COUNT + 10; + + /** + * The number of structural features of the 'EXml Any Element' class. + * + * + * @generated + * @ordered + */ + public static final int EXML_ANY_ELEMENT_FEATURE_COUNT = EJAVA_ATTRIBUTE_FEATURE_COUNT + 11; + + /** + * The meta object id for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAttribute EXml Attribute}' class. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAttribute + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlAttribute() + * @generated + */ + public static final int EXML_ATTRIBUTE = 13; + + /** + * The feature id for the 'Java Attribute' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ATTRIBUTE__JAVA_ATTRIBUTE = EJAVA_ATTRIBUTE__JAVA_ATTRIBUTE; + + /** + * The feature id for the 'Xml Accessor Type' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ATTRIBUTE__XML_ACCESSOR_TYPE = EJAVA_ATTRIBUTE__XML_ACCESSOR_TYPE; + + /** + * The feature id for the 'Xml Access Methods' containment reference. + * + * + * @generated + * @ordered + */ + public static final int EXML_ATTRIBUTE__XML_ACCESS_METHODS = EJAVA_ATTRIBUTE_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Xml Java Type Adapter' containment reference. + * + * + * @generated + * @ordered + */ + public static final int EXML_ATTRIBUTE__XML_JAVA_TYPE_ADAPTER = EJAVA_ATTRIBUTE_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Container Type' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ATTRIBUTE__CONTAINER_TYPE = EJAVA_ATTRIBUTE_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Read Only' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ATTRIBUTE__READ_ONLY = EJAVA_ATTRIBUTE_FEATURE_COUNT + 3; + + /** + * The feature id for the 'Write Only' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ATTRIBUTE__WRITE_ONLY = EJAVA_ATTRIBUTE_FEATURE_COUNT + 4; + + /** + * The feature id for the 'Type' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ATTRIBUTE__TYPE = EJAVA_ATTRIBUTE_FEATURE_COUNT + 5; + + /** + * The feature id for the 'Xml Properties' containment reference list. + * + * + * @generated + * @ordered + */ + public static final int EXML_ATTRIBUTE__XML_PROPERTIES = EJAVA_ATTRIBUTE_FEATURE_COUNT + 6; + + /** + * The feature id for the 'Name' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ATTRIBUTE__NAME = EJAVA_ATTRIBUTE_FEATURE_COUNT + 7; + + /** + * The feature id for the 'Namespace' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ATTRIBUTE__NAMESPACE = EJAVA_ATTRIBUTE_FEATURE_COUNT + 8; + + /** + * The feature id for the 'Required' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ATTRIBUTE__REQUIRED = EJAVA_ATTRIBUTE_FEATURE_COUNT + 9; + + /** + * The feature id for the 'Xml Id' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ATTRIBUTE__XML_ID = EJAVA_ATTRIBUTE_FEATURE_COUNT + 10; + + /** + * The feature id for the 'Xml Id Ref' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ATTRIBUTE__XML_ID_REF = EJAVA_ATTRIBUTE_FEATURE_COUNT + 11; + + /** + * The feature id for the 'Xml Key' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ATTRIBUTE__XML_KEY = EJAVA_ATTRIBUTE_FEATURE_COUNT + 12; + + /** + * The feature id for the 'Xml List' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ATTRIBUTE__XML_LIST = EJAVA_ATTRIBUTE_FEATURE_COUNT + 13; + + /** + * The feature id for the 'Xml Inline Binary Data' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ATTRIBUTE__XML_INLINE_BINARY_DATA = EJAVA_ATTRIBUTE_FEATURE_COUNT + 14; + + /** + * The feature id for the 'Xml Attachment Ref' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ATTRIBUTE__XML_ATTACHMENT_REF = EJAVA_ATTRIBUTE_FEATURE_COUNT + 15; + + /** + * The feature id for the 'Xml Mime Type' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ATTRIBUTE__XML_MIME_TYPE = EJAVA_ATTRIBUTE_FEATURE_COUNT + 16; + + /** + * The feature id for the 'Xml Path' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ATTRIBUTE__XML_PATH = EJAVA_ATTRIBUTE_FEATURE_COUNT + 17; + + /** + * The feature id for the 'Xml Abstract Null Policy' containment reference. + * + * + * @generated + * @ordered + */ + public static final int EXML_ATTRIBUTE__XML_ABSTRACT_NULL_POLICY = EJAVA_ATTRIBUTE_FEATURE_COUNT + 18; + + /** + * The feature id for the 'Xml Schema Type' containment reference. + * + * + * @generated + * @ordered + */ + public static final int EXML_ATTRIBUTE__XML_SCHEMA_TYPE = EJAVA_ATTRIBUTE_FEATURE_COUNT + 19; + + /** + * The number of structural features of the 'EXml Attribute' class. + * + * + * @generated + * @ordered + */ + public static final int EXML_ATTRIBUTE_FEATURE_COUNT = EJAVA_ATTRIBUTE_FEATURE_COUNT + 20; + + /** + * The meta object id for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlBindings EXml Bindings}' class. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlBindings + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlBindings() + * @generated + */ + public static final int EXML_BINDINGS = 14; + + /** + * The feature id for the 'Version' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_BINDINGS__VERSION = CommonPackage.EROOT_OBJECT_IMPL__VERSION; + + /** + * The feature id for the 'Schema Location' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_BINDINGS__SCHEMA_LOCATION = CommonPackage.EROOT_OBJECT_IMPL__SCHEMA_LOCATION; + + /** + * The feature id for the 'Xml Accessor Type' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_BINDINGS__XML_ACCESSOR_TYPE = CommonPackage.EROOT_OBJECT_IMPL_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Xml Accessor Order' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_BINDINGS__XML_ACCESSOR_ORDER = CommonPackage.EROOT_OBJECT_IMPL_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Xml Mapping Metadata Complete' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_BINDINGS__XML_MAPPING_METADATA_COMPLETE = CommonPackage.EROOT_OBJECT_IMPL_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Package Name' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_BINDINGS__PACKAGE_NAME = CommonPackage.EROOT_OBJECT_IMPL_FEATURE_COUNT + 3; + + /** + * The feature id for the 'Xml Name Transformer' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_BINDINGS__XML_NAME_TRANSFORMER = CommonPackage.EROOT_OBJECT_IMPL_FEATURE_COUNT + 4; + + /** + * The feature id for the 'Xml Schema' containment reference. + * + * + * @generated + * @ordered + */ + public static final int EXML_BINDINGS__XML_SCHEMA = CommonPackage.EROOT_OBJECT_IMPL_FEATURE_COUNT + 5; + + /** + * The feature id for the 'Xml Schema Type' containment reference. + * + * + * @generated + * @ordered + */ + public static final int EXML_BINDINGS__XML_SCHEMA_TYPE = CommonPackage.EROOT_OBJECT_IMPL_FEATURE_COUNT + 6; + + /** + * The feature id for the 'Xml Schema Types' containment reference list. + * + * + * @generated + * @ordered + */ + public static final int EXML_BINDINGS__XML_SCHEMA_TYPES = CommonPackage.EROOT_OBJECT_IMPL_FEATURE_COUNT + 7; + + /** + * The feature id for the 'Xml Java Type Adapters' containment reference list. + * + * + * @generated + * @ordered + */ + public static final int EXML_BINDINGS__XML_JAVA_TYPE_ADAPTERS = CommonPackage.EROOT_OBJECT_IMPL_FEATURE_COUNT + 8; + + /** + * The feature id for the 'Xml Registries' containment reference list. + * + * + * @generated + * @ordered + */ + public static final int EXML_BINDINGS__XML_REGISTRIES = CommonPackage.EROOT_OBJECT_IMPL_FEATURE_COUNT + 9; + + /** + * The feature id for the 'Xml Enums' containment reference list. + * + * + * @generated + * @ordered + */ + public static final int EXML_BINDINGS__XML_ENUMS = CommonPackage.EROOT_OBJECT_IMPL_FEATURE_COUNT + 10; + + /** + * The feature id for the 'Java Types' containment reference list. + * + * + * @generated + * @ordered + */ + public static final int EXML_BINDINGS__JAVA_TYPES = CommonPackage.EROOT_OBJECT_IMPL_FEATURE_COUNT + 11; + + /** + * The number of structural features of the 'EXml Bindings' class. + * + * + * @generated + * @ordered + */ + public static final int EXML_BINDINGS_FEATURE_COUNT = CommonPackage.EROOT_OBJECT_IMPL_FEATURE_COUNT + 12; + + /** + * The meta object id for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlClassExtractor EXml Class Extractor}' class. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlClassExtractor + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlClassExtractor() + * @generated + */ + public static final int EXML_CLASS_EXTRACTOR = 15; + + /** + * The feature id for the 'Class Name' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_CLASS_EXTRACTOR__CLASS_NAME = 0; + + /** + * The number of structural features of the 'EXml Class Extractor' class. + * + * + * @generated + * @ordered + */ + public static final int EXML_CLASS_EXTRACTOR_FEATURE_COUNT = 1; + + /** + * The meta object id for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElement EXml Element}' class. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElement + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlElement() + * @generated + */ + public static final int EXML_ELEMENT = 16; + + /** + * The feature id for the 'Java Attribute' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ELEMENT__JAVA_ATTRIBUTE = EJAVA_ATTRIBUTE__JAVA_ATTRIBUTE; + + /** + * The feature id for the 'Xml Accessor Type' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ELEMENT__XML_ACCESSOR_TYPE = EJAVA_ATTRIBUTE__XML_ACCESSOR_TYPE; + + /** + * The feature id for the 'Xml Access Methods' containment reference. + * + * + * @generated + * @ordered + */ + public static final int EXML_ELEMENT__XML_ACCESS_METHODS = EJAVA_ATTRIBUTE_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Xml Java Type Adapter' containment reference. + * + * + * @generated + * @ordered + */ + public static final int EXML_ELEMENT__XML_JAVA_TYPE_ADAPTER = EJAVA_ATTRIBUTE_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Container Type' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ELEMENT__CONTAINER_TYPE = EJAVA_ATTRIBUTE_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Xml Properties' containment reference list. + * + * + * @generated + * @ordered + */ + public static final int EXML_ELEMENT__XML_PROPERTIES = EJAVA_ATTRIBUTE_FEATURE_COUNT + 3; + + /** + * The feature id for the 'Read Only' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ELEMENT__READ_ONLY = EJAVA_ATTRIBUTE_FEATURE_COUNT + 4; + + /** + * The feature id for the 'Write Only' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ELEMENT__WRITE_ONLY = EJAVA_ATTRIBUTE_FEATURE_COUNT + 5; + + /** + * The feature id for the 'Name' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ELEMENT__NAME = EJAVA_ATTRIBUTE_FEATURE_COUNT + 6; + + /** + * The feature id for the 'Namespace' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ELEMENT__NAMESPACE = EJAVA_ATTRIBUTE_FEATURE_COUNT + 7; + + /** + * The feature id for the 'Default Value' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ELEMENT__DEFAULT_VALUE = EJAVA_ATTRIBUTE_FEATURE_COUNT + 8; + + /** + * The feature id for the 'Nillable' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ELEMENT__NILLABLE = EJAVA_ATTRIBUTE_FEATURE_COUNT + 9; + + /** + * The feature id for the 'Required' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ELEMENT__REQUIRED = EJAVA_ATTRIBUTE_FEATURE_COUNT + 10; + + /** + * The feature id for the 'Xml Id' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ELEMENT__XML_ID = EJAVA_ATTRIBUTE_FEATURE_COUNT + 11; + + /** + * The feature id for the 'Xml Id Ref' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ELEMENT__XML_ID_REF = EJAVA_ATTRIBUTE_FEATURE_COUNT + 12; + + /** + * The feature id for the 'Xml Key' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ELEMENT__XML_KEY = EJAVA_ATTRIBUTE_FEATURE_COUNT + 13; + + /** + * The feature id for the 'Xml List' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ELEMENT__XML_LIST = EJAVA_ATTRIBUTE_FEATURE_COUNT + 14; + + /** + * The feature id for the 'Xml Inline Binary Data' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ELEMENT__XML_INLINE_BINARY_DATA = EJAVA_ATTRIBUTE_FEATURE_COUNT + 15; + + /** + * The feature id for the 'Xml Attachment Ref' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ELEMENT__XML_ATTACHMENT_REF = EJAVA_ATTRIBUTE_FEATURE_COUNT + 16; + + /** + * The feature id for the 'Xml Mime Type' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ELEMENT__XML_MIME_TYPE = EJAVA_ATTRIBUTE_FEATURE_COUNT + 17; + + /** + * The feature id for the 'Cdata' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ELEMENT__CDATA = EJAVA_ATTRIBUTE_FEATURE_COUNT + 18; + + /** + * The feature id for the 'Xml Path' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ELEMENT__XML_PATH = EJAVA_ATTRIBUTE_FEATURE_COUNT + 19; + + /** + * The feature id for the 'Xml Location' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ELEMENT__XML_LOCATION = EJAVA_ATTRIBUTE_FEATURE_COUNT + 20; + + /** + * The feature id for the 'Xml Abstract Null Policy' containment reference. + * + * + * @generated + * @ordered + */ + public static final int EXML_ELEMENT__XML_ABSTRACT_NULL_POLICY = EJAVA_ATTRIBUTE_FEATURE_COUNT + 21; + + /** + * The feature id for the 'Xml Element Wrapper' containment reference. + * + * + * @generated + * @ordered + */ + public static final int EXML_ELEMENT__XML_ELEMENT_WRAPPER = EJAVA_ATTRIBUTE_FEATURE_COUNT + 22; + + /** + * The feature id for the 'Xml Map' containment reference. + * + * + * @generated + * @ordered + */ + public static final int EXML_ELEMENT__XML_MAP = EJAVA_ATTRIBUTE_FEATURE_COUNT + 23; + + /** + * The feature id for the 'Xml Schema Type' containment reference. + * + * + * @generated + * @ordered + */ + public static final int EXML_ELEMENT__XML_SCHEMA_TYPE = EJAVA_ATTRIBUTE_FEATURE_COUNT + 24; + + /** + * The number of structural features of the 'EXml Element' class. + * + * + * @generated + * @ordered + */ + public static final int EXML_ELEMENT_FEATURE_COUNT = EJAVA_ATTRIBUTE_FEATURE_COUNT + 25; + + /** + * The meta object id for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementDecl EXml Element Decl}' class. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementDecl + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlElementDecl() + * @generated + */ + public static final int EXML_ELEMENT_DECL = 17; + + /** + * The feature id for the 'Java Method' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ELEMENT_DECL__JAVA_METHOD = 0; + + /** + * The feature id for the 'Name' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ELEMENT_DECL__NAME = 1; + + /** + * The feature id for the 'Namespace' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ELEMENT_DECL__NAMESPACE = 2; + + /** + * The feature id for the 'Default Value' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ELEMENT_DECL__DEFAULT_VALUE = 3; + + /** + * The feature id for the 'Scope' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ELEMENT_DECL__SCOPE = 4; + + /** + * The feature id for the 'Substitution Head Name' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ELEMENT_DECL__SUBSTITUTION_HEAD_NAME = 5; + + /** + * The feature id for the 'Substitution Head Namespace' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ELEMENT_DECL__SUBSTITUTION_HEAD_NAMESPACE = 6; + + /** + * The feature id for the 'Type' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ELEMENT_DECL__TYPE = 7; + + /** + * The number of structural features of the 'EXml Element Decl' class. + * + * + * @generated + * @ordered + */ + public static final int EXML_ELEMENT_DECL_FEATURE_COUNT = 8; + + /** + * The meta object id for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementRef EXml Element Ref}' class. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementRef + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlElementRef() + * @generated + */ + public static final int EXML_ELEMENT_REF = 18; + + /** + * The feature id for the 'Java Attribute' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ELEMENT_REF__JAVA_ATTRIBUTE = EJAVA_ATTRIBUTE__JAVA_ATTRIBUTE; + + /** + * The feature id for the 'Xml Accessor Type' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ELEMENT_REF__XML_ACCESSOR_TYPE = EJAVA_ATTRIBUTE__XML_ACCESSOR_TYPE; + + /** + * The feature id for the 'Xml Access Methods' containment reference. + * + * + * @generated + * @ordered + */ + public static final int EXML_ELEMENT_REF__XML_ACCESS_METHODS = EJAVA_ATTRIBUTE_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Xml Java Type Adapter' containment reference. + * + * + * @generated + * @ordered + */ + public static final int EXML_ELEMENT_REF__XML_JAVA_TYPE_ADAPTER = EJAVA_ATTRIBUTE_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Container Type' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ELEMENT_REF__CONTAINER_TYPE = EJAVA_ATTRIBUTE_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Read Only' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ELEMENT_REF__READ_ONLY = EJAVA_ATTRIBUTE_FEATURE_COUNT + 3; + + /** + * The feature id for the 'Write Only' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ELEMENT_REF__WRITE_ONLY = EJAVA_ATTRIBUTE_FEATURE_COUNT + 4; + + /** + * The feature id for the 'Type' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ELEMENT_REF__TYPE = EJAVA_ATTRIBUTE_FEATURE_COUNT + 5; + + /** + * The feature id for the 'Xml Properties' containment reference list. + * + * + * @generated + * @ordered + */ + public static final int EXML_ELEMENT_REF__XML_PROPERTIES = EJAVA_ATTRIBUTE_FEATURE_COUNT + 6; + + /** + * The feature id for the 'Name' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ELEMENT_REF__NAME = EJAVA_ATTRIBUTE_FEATURE_COUNT + 7; + + /** + * The feature id for the 'Namespace' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ELEMENT_REF__NAMESPACE = EJAVA_ATTRIBUTE_FEATURE_COUNT + 8; + + /** + * The feature id for the 'Xml Mixed' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ELEMENT_REF__XML_MIXED = EJAVA_ATTRIBUTE_FEATURE_COUNT + 9; + + /** + * The feature id for the 'Xml Element Wrapper' containment reference. + * + * + * @generated + * @ordered + */ + public static final int EXML_ELEMENT_REF__XML_ELEMENT_WRAPPER = EJAVA_ATTRIBUTE_FEATURE_COUNT + 10; + + /** + * The number of structural features of the 'EXml Element Ref' class. + * + * + * @generated + * @ordered + */ + public static final int EXML_ELEMENT_REF_FEATURE_COUNT = EJAVA_ATTRIBUTE_FEATURE_COUNT + 11; + + /** + * The meta object id for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementRefs EXml Element Refs}' class. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementRefs + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlElementRefs() + * @generated + */ + public static final int EXML_ELEMENT_REFS = 19; + + /** + * The feature id for the 'Java Attribute' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ELEMENT_REFS__JAVA_ATTRIBUTE = EJAVA_ATTRIBUTE__JAVA_ATTRIBUTE; + + /** + * The feature id for the 'Xml Accessor Type' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ELEMENT_REFS__XML_ACCESSOR_TYPE = EJAVA_ATTRIBUTE__XML_ACCESSOR_TYPE; + + /** + * The feature id for the 'Xml Access Methods' containment reference. + * + * + * @generated + * @ordered + */ + public static final int EXML_ELEMENT_REFS__XML_ACCESS_METHODS = EJAVA_ATTRIBUTE_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Xml Java Type Adapter' containment reference. + * + * + * @generated + * @ordered + */ + public static final int EXML_ELEMENT_REFS__XML_JAVA_TYPE_ADAPTER = EJAVA_ATTRIBUTE_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Read Only' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ELEMENT_REFS__READ_ONLY = EJAVA_ATTRIBUTE_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Write Only' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ELEMENT_REFS__WRITE_ONLY = EJAVA_ATTRIBUTE_FEATURE_COUNT + 3; + + /** + * The feature id for the 'Xml Properties' containment reference list. + * + * + * @generated + * @ordered + */ + public static final int EXML_ELEMENT_REFS__XML_PROPERTIES = EJAVA_ATTRIBUTE_FEATURE_COUNT + 4; + + /** + * The feature id for the 'Xml Mixed' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ELEMENT_REFS__XML_MIXED = EJAVA_ATTRIBUTE_FEATURE_COUNT + 5; + + /** + * The feature id for the 'Xml Element Refs' containment reference list. + * + * + * @generated + * @ordered + */ + public static final int EXML_ELEMENT_REFS__XML_ELEMENT_REFS = EJAVA_ATTRIBUTE_FEATURE_COUNT + 6; + + /** + * The feature id for the 'Xml Element Wrapper' containment reference. + * + * + * @generated + * @ordered + */ + public static final int EXML_ELEMENT_REFS__XML_ELEMENT_WRAPPER = EJAVA_ATTRIBUTE_FEATURE_COUNT + 7; + + /** + * The number of structural features of the 'EXml Element Refs' class. + * + * + * @generated + * @ordered + */ + public static final int EXML_ELEMENT_REFS_FEATURE_COUNT = EJAVA_ATTRIBUTE_FEATURE_COUNT + 8; + + /** + * The meta object id for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElements EXml Elements}' class. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElements + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlElements() + * @generated + */ + public static final int EXML_ELEMENTS = 20; + + /** + * The feature id for the 'Java Attribute' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ELEMENTS__JAVA_ATTRIBUTE = EJAVA_ATTRIBUTE__JAVA_ATTRIBUTE; + + /** + * The feature id for the 'Xml Accessor Type' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ELEMENTS__XML_ACCESSOR_TYPE = EJAVA_ATTRIBUTE__XML_ACCESSOR_TYPE; + + /** + * The feature id for the 'Xml Access Methods' containment reference. + * + * + * @generated + * @ordered + */ + public static final int EXML_ELEMENTS__XML_ACCESS_METHODS = EJAVA_ATTRIBUTE_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Container Type' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ELEMENTS__CONTAINER_TYPE = EJAVA_ATTRIBUTE_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Read Only' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ELEMENTS__READ_ONLY = EJAVA_ATTRIBUTE_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Write Only' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ELEMENTS__WRITE_ONLY = EJAVA_ATTRIBUTE_FEATURE_COUNT + 3; + + /** + * The feature id for the 'Xml Properties' containment reference list. + * + * + * @generated + * @ordered + */ + public static final int EXML_ELEMENTS__XML_PROPERTIES = EJAVA_ATTRIBUTE_FEATURE_COUNT + 4; + + /** + * The feature id for the 'Xml Id Ref' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ELEMENTS__XML_ID_REF = EJAVA_ATTRIBUTE_FEATURE_COUNT + 5; + + /** + * The feature id for the 'Xml List' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ELEMENTS__XML_LIST = EJAVA_ATTRIBUTE_FEATURE_COUNT + 6; + + /** + * The feature id for the 'Xml Elements' containment reference list. + * + * + * @generated + * @ordered + */ + public static final int EXML_ELEMENTS__XML_ELEMENTS = EJAVA_ATTRIBUTE_FEATURE_COUNT + 7; + + /** + * The feature id for the 'Xml Element Wrapper' containment reference. + * + * + * @generated + * @ordered + */ + public static final int EXML_ELEMENTS__XML_ELEMENT_WRAPPER = EJAVA_ATTRIBUTE_FEATURE_COUNT + 8; + + /** + * The feature id for the 'Xml Join Nodes' containment reference list. + * + * + * @generated + * @ordered + */ + public static final int EXML_ELEMENTS__XML_JOIN_NODES = EJAVA_ATTRIBUTE_FEATURE_COUNT + 9; + + /** + * The number of structural features of the 'EXml Elements' class. + * + * + * @generated + * @ordered + */ + public static final int EXML_ELEMENTS_FEATURE_COUNT = EJAVA_ATTRIBUTE_FEATURE_COUNT + 10; + + /** + * The meta object id for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementWrapper EXml Element Wrapper}' class. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementWrapper + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlElementWrapper() + * @generated + */ + public static final int EXML_ELEMENT_WRAPPER = 21; + + /** + * The feature id for the 'Name' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ELEMENT_WRAPPER__NAME = 0; + + /** + * The feature id for the 'Namespace' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ELEMENT_WRAPPER__NAMESPACE = 1; + + /** + * The feature id for the 'Nillable' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ELEMENT_WRAPPER__NILLABLE = 2; + + /** + * The feature id for the 'Required' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ELEMENT_WRAPPER__REQUIRED = 3; + + /** + * The number of structural features of the 'EXml Element Wrapper' class. + * + * + * @generated + * @ordered + */ + public static final int EXML_ELEMENT_WRAPPER_FEATURE_COUNT = 4; + + /** + * The meta object id for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlEnum EXml Enum}' class. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlEnum + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlEnum() + * @generated + */ + public static final int EXML_ENUM = 22; + + /** + * The feature id for the 'Java Enum' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ENUM__JAVA_ENUM = 0; + + /** + * The feature id for the 'Value' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ENUM__VALUE = 1; + + /** + * The feature id for the 'Xml Enum Values' containment reference list. + * + * + * @generated + * @ordered + */ + public static final int EXML_ENUM__XML_ENUM_VALUES = 2; + + /** + * The number of structural features of the 'EXml Enum' class. + * + * + * @generated + * @ordered + */ + public static final int EXML_ENUM_FEATURE_COUNT = 3; + + /** + * The meta object id for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlEnumValue EXml Enum Value}' class. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlEnumValue + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlEnumValue() + * @generated + */ + public static final int EXML_ENUM_VALUE = 23; + + /** + * The feature id for the 'Java Enum Value' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ENUM_VALUE__JAVA_ENUM_VALUE = 0; + + /** + * The number of structural features of the 'EXml Enum Value' class. + * + * + * @generated + * @ordered + */ + public static final int EXML_ENUM_VALUE_FEATURE_COUNT = 1; + + /** + * The meta object id for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlInverseReference EXml Inverse Reference}' class. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlInverseReference + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlInverseReference() + * @generated + */ + public static final int EXML_INVERSE_REFERENCE = 24; + + /** + * The feature id for the 'Java Attribute' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_INVERSE_REFERENCE__JAVA_ATTRIBUTE = EJAVA_ATTRIBUTE__JAVA_ATTRIBUTE; + + /** + * The feature id for the 'Xml Accessor Type' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_INVERSE_REFERENCE__XML_ACCESSOR_TYPE = EJAVA_ATTRIBUTE__XML_ACCESSOR_TYPE; + + /** + * The feature id for the 'Xml Access Methods' containment reference. + * + * + * @generated + * @ordered + */ + public static final int EXML_INVERSE_REFERENCE__XML_ACCESS_METHODS = EJAVA_ATTRIBUTE_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Container Type' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_INVERSE_REFERENCE__CONTAINER_TYPE = EJAVA_ATTRIBUTE_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Type' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_INVERSE_REFERENCE__TYPE = EJAVA_ATTRIBUTE_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Xml Properties' containment reference list. + * + * + * @generated + * @ordered + */ + public static final int EXML_INVERSE_REFERENCE__XML_PROPERTIES = EJAVA_ATTRIBUTE_FEATURE_COUNT + 3; + + /** + * The feature id for the 'Mapped By' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_INVERSE_REFERENCE__MAPPED_BY = EJAVA_ATTRIBUTE_FEATURE_COUNT + 4; + + /** + * The number of structural features of the 'EXml Inverse Reference' class. + * + * + * @generated + * @ordered + */ + public static final int EXML_INVERSE_REFERENCE_FEATURE_COUNT = EJAVA_ATTRIBUTE_FEATURE_COUNT + 5; + + /** + * The meta object id for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlIsSetNullPolicy EXml Is Set Null Policy}' class. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlIsSetNullPolicy + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlIsSetNullPolicy() + * @generated + */ + public static final int EXML_IS_SET_NULL_POLICY = 25; + + /** + * The feature id for the 'Xsi Nil Represents Null' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_IS_SET_NULL_POLICY__XSI_NIL_REPRESENTS_NULL = EABSTRACT_XML_NULL_POLICY__XSI_NIL_REPRESENTS_NULL; + + /** + * The feature id for the 'Empty Node Represents Null' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_IS_SET_NULL_POLICY__EMPTY_NODE_REPRESENTS_NULL = EABSTRACT_XML_NULL_POLICY__EMPTY_NODE_REPRESENTS_NULL; + + /** + * The feature id for the 'Null Representation For Xml' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_IS_SET_NULL_POLICY__NULL_REPRESENTATION_FOR_XML = EABSTRACT_XML_NULL_POLICY__NULL_REPRESENTATION_FOR_XML; + + /** + * The feature id for the 'Is Set Method Name' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_IS_SET_NULL_POLICY__IS_SET_METHOD_NAME = EABSTRACT_XML_NULL_POLICY_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Xml Is Set Parameters' containment reference list. + * + * + * @generated + * @ordered + */ + public static final int EXML_IS_SET_NULL_POLICY__XML_IS_SET_PARAMETERS = EABSTRACT_XML_NULL_POLICY_FEATURE_COUNT + 1; + + /** + * The number of structural features of the 'EXml Is Set Null Policy' class. + * + * + * @generated + * @ordered + */ + public static final int EXML_IS_SET_NULL_POLICY_FEATURE_COUNT = EABSTRACT_XML_NULL_POLICY_FEATURE_COUNT + 2; + + /** + * The meta object id for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlIsSetParameter EXml Is Set Parameter}' class. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlIsSetParameter + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlIsSetParameter() + * @generated + */ + public static final int EXML_IS_SET_PARAMETER = 26; + + /** + * The feature id for the 'Value' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_IS_SET_PARAMETER__VALUE = 0; + + /** + * The feature id for the 'Type' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_IS_SET_PARAMETER__TYPE = 1; + + /** + * The number of structural features of the 'EXml Is Set Parameter' class. + * + * + * @generated + * @ordered + */ + public static final int EXML_IS_SET_PARAMETER_FEATURE_COUNT = 2; + + /** + * The meta object id for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlJavaTypeAdapter EXml Java Type Adapter}' class. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlJavaTypeAdapter + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlJavaTypeAdapter() + * @generated + */ + public static final int EXML_JAVA_TYPE_ADAPTER = 27; + + /** + * The feature id for the 'Java Attribute' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_JAVA_TYPE_ADAPTER__JAVA_ATTRIBUTE = EJAVA_ATTRIBUTE__JAVA_ATTRIBUTE; + + /** + * The feature id for the 'Xml Accessor Type' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_JAVA_TYPE_ADAPTER__XML_ACCESSOR_TYPE = EJAVA_ATTRIBUTE__XML_ACCESSOR_TYPE; + + /** + * The feature id for the 'Value' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_JAVA_TYPE_ADAPTER__VALUE = EJAVA_ATTRIBUTE_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Type' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_JAVA_TYPE_ADAPTER__TYPE = EJAVA_ATTRIBUTE_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Value Type' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_JAVA_TYPE_ADAPTER__VALUE_TYPE = EJAVA_ATTRIBUTE_FEATURE_COUNT + 2; + + /** + * The number of structural features of the 'EXml Java Type Adapter' class. + * + * + * @generated + * @ordered + */ + public static final int EXML_JAVA_TYPE_ADAPTER_FEATURE_COUNT = EJAVA_ATTRIBUTE_FEATURE_COUNT + 3; + + /** + * The meta object id for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlJoinNode EXml Join Node}' class. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlJoinNode + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlJoinNode() + * @generated + */ + public static final int EXML_JOIN_NODE = 28; + + /** + * The feature id for the 'Xml Path' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_JOIN_NODE__XML_PATH = 0; + + /** + * The feature id for the 'Referenced Xml Path' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_JOIN_NODE__REFERENCED_XML_PATH = 1; + + /** + * The number of structural features of the 'EXml Join Node' class. + * + * + * @generated + * @ordered + */ + public static final int EXML_JOIN_NODE_FEATURE_COUNT = 2; + + /** + * The meta object id for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlJoinNodes EXml Join Nodes}' class. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlJoinNodes + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlJoinNodes() + * @generated + */ + public static final int EXML_JOIN_NODES = 29; + + /** + * The feature id for the 'Java Attribute' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_JOIN_NODES__JAVA_ATTRIBUTE = EJAVA_ATTRIBUTE__JAVA_ATTRIBUTE; + + /** + * The feature id for the 'Xml Accessor Type' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_JOIN_NODES__XML_ACCESSOR_TYPE = EJAVA_ATTRIBUTE__XML_ACCESSOR_TYPE; + + /** + * The feature id for the 'Container Type' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_JOIN_NODES__CONTAINER_TYPE = EJAVA_ATTRIBUTE_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Type' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_JOIN_NODES__TYPE = EJAVA_ATTRIBUTE_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Xml Join Nodes' containment reference list. + * + * + * @generated + * @ordered + */ + public static final int EXML_JOIN_NODES__XML_JOIN_NODES = EJAVA_ATTRIBUTE_FEATURE_COUNT + 2; + + /** + * The number of structural features of the 'EXml Join Nodes' class. + * + * + * @generated + * @ordered + */ + public static final int EXML_JOIN_NODES_FEATURE_COUNT = EJAVA_ATTRIBUTE_FEATURE_COUNT + 3; + + /** + * The meta object id for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlMap EXml Map}' class. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlMap + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlMap() + * @generated + */ + public static final int EXML_MAP = 30; + + /** + * The feature id for the 'Key' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_MAP__KEY = 0; + + /** + * The feature id for the 'Value' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_MAP__VALUE = 1; + + /** + * The number of structural features of the 'EXml Map' class. + * + * + * @generated + * @ordered + */ + public static final int EXML_MAP_FEATURE_COUNT = 2; + + /** + * The meta object id for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlNullPolicy EXml Null Policy}' class. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlNullPolicy + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlNullPolicy() + * @generated + */ + public static final int EXML_NULL_POLICY = 31; + + /** + * The feature id for the 'Xsi Nil Represents Null' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_NULL_POLICY__XSI_NIL_REPRESENTS_NULL = EABSTRACT_XML_NULL_POLICY__XSI_NIL_REPRESENTS_NULL; + + /** + * The feature id for the 'Empty Node Represents Null' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_NULL_POLICY__EMPTY_NODE_REPRESENTS_NULL = EABSTRACT_XML_NULL_POLICY__EMPTY_NODE_REPRESENTS_NULL; + + /** + * The feature id for the 'Null Representation For Xml' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_NULL_POLICY__NULL_REPRESENTATION_FOR_XML = EABSTRACT_XML_NULL_POLICY__NULL_REPRESENTATION_FOR_XML; + + /** + * The feature id for the 'Is Set Performed For Absent Node' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_NULL_POLICY__IS_SET_PERFORMED_FOR_ABSENT_NODE = EABSTRACT_XML_NULL_POLICY_FEATURE_COUNT + 0; + + /** + * The number of structural features of the 'EXml Null Policy' class. + * + * + * @generated + * @ordered + */ + public static final int EXML_NULL_POLICY_FEATURE_COUNT = EABSTRACT_XML_NULL_POLICY_FEATURE_COUNT + 1; + + /** + * The meta object id for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlNs EXml Ns}' class. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlNs + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlNs() + * @generated + */ + public static final int EXML_NS = 32; + + /** + * The feature id for the 'Namespace Uri' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_NS__NAMESPACE_URI = 0; + + /** + * The feature id for the 'Prefix' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_NS__PREFIX = 1; + + /** + * The number of structural features of the 'EXml Ns' class. + * + * + * @generated + * @ordered + */ + public static final int EXML_NS_FEATURE_COUNT = 2; + + /** + * The meta object id for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlProperty EXml Property}' class. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlProperty + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlProperty() + * @generated + */ + public static final int EXML_PROPERTY = 33; + + /** + * The feature id for the 'Name' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_PROPERTY__NAME = 0; + + /** + * The feature id for the 'Value' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_PROPERTY__VALUE = 1; + + /** + * The feature id for the 'Value Type' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_PROPERTY__VALUE_TYPE = 2; + + /** + * The number of structural features of the 'EXml Property' class. + * + * + * @generated + * @ordered + */ + public static final int EXML_PROPERTY_FEATURE_COUNT = 3; + + /** + * The meta object id for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlReadTransformer EXml Read Transformer}' class. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlReadTransformer + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlReadTransformer() + * @generated + */ + public static final int EXML_READ_TRANSFORMER = 34; + + /** + * The feature id for the 'Method' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_READ_TRANSFORMER__METHOD = EABSTRACT_XML_TRANSFORMER__METHOD; + + /** + * The feature id for the 'Transformer Class' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_READ_TRANSFORMER__TRANSFORMER_CLASS = EABSTRACT_XML_TRANSFORMER__TRANSFORMER_CLASS; + + /** + * The number of structural features of the 'EXml Read Transformer' class. + * + * + * @generated + * @ordered + */ + public static final int EXML_READ_TRANSFORMER_FEATURE_COUNT = EABSTRACT_XML_TRANSFORMER_FEATURE_COUNT + 0; + + /** + * The meta object id for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlRegistry EXml Registry}' class. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlRegistry + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlRegistry() + * @generated + */ + public static final int EXML_REGISTRY = 35; + + /** + * The feature id for the 'Name' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_REGISTRY__NAME = 0; + + /** + * The feature id for the 'Xml Element Decls' containment reference list. + * + * + * @generated + * @ordered + */ + public static final int EXML_REGISTRY__XML_ELEMENT_DECLS = 1; + + /** + * The number of structural features of the 'EXml Registry' class. + * + * + * @generated + * @ordered + */ + public static final int EXML_REGISTRY_FEATURE_COUNT = 2; + + /** + * The meta object id for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlRootElement EXml Root Element}' class. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlRootElement + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlRootElement() + * @generated + */ + public static final int EXML_ROOT_ELEMENT = 36; + + /** + * The feature id for the 'Name' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ROOT_ELEMENT__NAME = 0; + + /** + * The feature id for the 'Namespace' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_ROOT_ELEMENT__NAMESPACE = 1; + + /** + * The number of structural features of the 'EXml Root Element' class. + * + * + * @generated + * @ordered + */ + public static final int EXML_ROOT_ELEMENT_FEATURE_COUNT = 2; + + /** + * The meta object id for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlSchema EXml Schema}' class. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlSchema + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlSchema() + * @generated + */ + public static final int EXML_SCHEMA = 37; + + /** + * The feature id for the 'Attribute Form Default' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_SCHEMA__ATTRIBUTE_FORM_DEFAULT = 0; + + /** + * The feature id for the 'Element Form Default' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_SCHEMA__ELEMENT_FORM_DEFAULT = 1; + + /** + * The feature id for the 'Location' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_SCHEMA__LOCATION = 2; + + /** + * The feature id for the 'Namespace' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_SCHEMA__NAMESPACE = 3; + + /** + * The feature id for the 'Xmlns' containment reference list. + * + * + * @generated + * @ordered + */ + public static final int EXML_SCHEMA__XMLNS = 4; + + /** + * The number of structural features of the 'EXml Schema' class. + * + * + * @generated + * @ordered + */ + public static final int EXML_SCHEMA_FEATURE_COUNT = 5; + + /** + * The meta object id for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlSchemaType EXml Schema Type}' class. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlSchemaType + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlSchemaType() + * @generated + */ + public static final int EXML_SCHEMA_TYPE = 38; + + /** + * The feature id for the 'Name' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_SCHEMA_TYPE__NAME = 0; + + /** + * The feature id for the 'Namespace' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_SCHEMA_TYPE__NAMESPACE = 1; + + /** + * The feature id for the 'Type' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_SCHEMA_TYPE__TYPE = 2; + + /** + * The number of structural features of the 'EXml Schema Type' class. + * + * + * @generated + * @ordered + */ + public static final int EXML_SCHEMA_TYPE_FEATURE_COUNT = 3; + + /** + * The meta object id for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlTransformation EXml Transformation}' class. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlTransformation + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlTransformation() + * @generated + */ + public static final int EXML_TRANSFORMATION = 39; + + /** + * The feature id for the 'Java Attribute' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_TRANSFORMATION__JAVA_ATTRIBUTE = EJAVA_ATTRIBUTE__JAVA_ATTRIBUTE; + + /** + * The feature id for the 'Xml Accessor Type' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_TRANSFORMATION__XML_ACCESSOR_TYPE = EJAVA_ATTRIBUTE__XML_ACCESSOR_TYPE; + + /** + * The feature id for the 'Xml Access Methods' containment reference. + * + * + * @generated + * @ordered + */ + public static final int EXML_TRANSFORMATION__XML_ACCESS_METHODS = EJAVA_ATTRIBUTE_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Xml Properties' containment reference list. + * + * + * @generated + * @ordered + */ + public static final int EXML_TRANSFORMATION__XML_PROPERTIES = EJAVA_ATTRIBUTE_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Optional' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_TRANSFORMATION__OPTIONAL = EJAVA_ATTRIBUTE_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Xml Read Transformer' containment reference. + * + * + * @generated + * @ordered + */ + public static final int EXML_TRANSFORMATION__XML_READ_TRANSFORMER = EJAVA_ATTRIBUTE_FEATURE_COUNT + 3; + + /** + * The feature id for the 'Xml Write Transformers' containment reference list. + * + * + * @generated + * @ordered + */ + public static final int EXML_TRANSFORMATION__XML_WRITE_TRANSFORMERS = EJAVA_ATTRIBUTE_FEATURE_COUNT + 4; + + /** + * The number of structural features of the 'EXml Transformation' class. + * + * + * @generated + * @ordered + */ + public static final int EXML_TRANSFORMATION_FEATURE_COUNT = EJAVA_ATTRIBUTE_FEATURE_COUNT + 5; + + /** + * The meta object id for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlTransient EXml Transient}' class. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlTransient + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlTransient() + * @generated + */ + public static final int EXML_TRANSIENT = 40; + + /** + * The feature id for the 'Java Attribute' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_TRANSIENT__JAVA_ATTRIBUTE = EJAVA_ATTRIBUTE__JAVA_ATTRIBUTE; + + /** + * The feature id for the 'Xml Accessor Type' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_TRANSIENT__XML_ACCESSOR_TYPE = EJAVA_ATTRIBUTE__XML_ACCESSOR_TYPE; + + /** + * The feature id for the 'Xml Location' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_TRANSIENT__XML_LOCATION = EJAVA_ATTRIBUTE_FEATURE_COUNT + 0; + + /** + * The number of structural features of the 'EXml Transient' class. + * + * + * @generated + * @ordered + */ + public static final int EXML_TRANSIENT_FEATURE_COUNT = EJAVA_ATTRIBUTE_FEATURE_COUNT + 1; + + /** + * The meta object id for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlType EXml Type}' class. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlType + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlType() + * @generated + */ + public static final int EXML_TYPE = 41; + + /** + * The feature id for the 'Name' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_TYPE__NAME = 0; + + /** + * The feature id for the 'Namespace' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_TYPE__NAMESPACE = 1; + + /** + * The feature id for the 'Factory Class' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_TYPE__FACTORY_CLASS = 2; + + /** + * The feature id for the 'Factory Method' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_TYPE__FACTORY_METHOD = 3; + + /** + * The feature id for the 'Prop Order' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_TYPE__PROP_ORDER = 4; + + /** + * The number of structural features of the 'EXml Type' class. + * + * + * @generated + * @ordered + */ + public static final int EXML_TYPE_FEATURE_COUNT = 5; + + /** + * The meta object id for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlValue EXml Value}' class. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlValue + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlValue() + * @generated + */ + public static final int EXML_VALUE = 42; + + /** + * The feature id for the 'Java Attribute' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_VALUE__JAVA_ATTRIBUTE = EJAVA_ATTRIBUTE__JAVA_ATTRIBUTE; + + /** + * The feature id for the 'Xml Accessor Type' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_VALUE__XML_ACCESSOR_TYPE = EJAVA_ATTRIBUTE__XML_ACCESSOR_TYPE; + + /** + * The feature id for the 'Xml Access Methods' containment reference. + * + * + * @generated + * @ordered + */ + public static final int EXML_VALUE__XML_ACCESS_METHODS = EJAVA_ATTRIBUTE_FEATURE_COUNT + 0; + + /** + * The feature id for the 'Xml Java Type Adapter' containment reference. + * + * + * @generated + * @ordered + */ + public static final int EXML_VALUE__XML_JAVA_TYPE_ADAPTER = EJAVA_ATTRIBUTE_FEATURE_COUNT + 1; + + /** + * The feature id for the 'Container Type' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_VALUE__CONTAINER_TYPE = EJAVA_ATTRIBUTE_FEATURE_COUNT + 2; + + /** + * The feature id for the 'Read Only' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_VALUE__READ_ONLY = EJAVA_ATTRIBUTE_FEATURE_COUNT + 3; + + /** + * The feature id for the 'Write Only' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_VALUE__WRITE_ONLY = EJAVA_ATTRIBUTE_FEATURE_COUNT + 4; + + /** + * The feature id for the 'Type' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_VALUE__TYPE = EJAVA_ATTRIBUTE_FEATURE_COUNT + 5; + + /** + * The feature id for the 'Xml Properties' containment reference list. + * + * + * @generated + * @ordered + */ + public static final int EXML_VALUE__XML_PROPERTIES = EJAVA_ATTRIBUTE_FEATURE_COUNT + 6; + + /** + * The feature id for the 'Cdata' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_VALUE__CDATA = EJAVA_ATTRIBUTE_FEATURE_COUNT + 7; + + /** + * The feature id for the 'Xml Abstract Null Policy' containment reference. + * + * + * @generated + * @ordered + */ + public static final int EXML_VALUE__XML_ABSTRACT_NULL_POLICY = EJAVA_ATTRIBUTE_FEATURE_COUNT + 8; + + /** + * The number of structural features of the 'EXml Value' class. + * + * + * @generated + * @ordered + */ + public static final int EXML_VALUE_FEATURE_COUNT = EJAVA_ATTRIBUTE_FEATURE_COUNT + 9; + + /** + * The meta object id for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlVirtualAccessMethods EXml Virtual Access Methods}' class. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlVirtualAccessMethods + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlVirtualAccessMethods() + * @generated + */ + public static final int EXML_VIRTUAL_ACCESS_METHODS = 43; + + /** + * The feature id for the 'Get Method' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_VIRTUAL_ACCESS_METHODS__GET_METHOD = 0; + + /** + * The feature id for the 'Set Method' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_VIRTUAL_ACCESS_METHODS__SET_METHOD = 1; + + /** + * The feature id for the 'Schema' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_VIRTUAL_ACCESS_METHODS__SCHEMA = 2; + + /** + * The number of structural features of the 'EXml Virtual Access Methods' class. + * + * + * @generated + * @ordered + */ + public static final int EXML_VIRTUAL_ACCESS_METHODS_FEATURE_COUNT = 3; + + /** + * The meta object id for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlWriteTransformer EXml Write Transformer}' class. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlWriteTransformer + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlWriteTransformer() + * @generated + */ + public static final int EXML_WRITE_TRANSFORMER = 44; + + /** + * The feature id for the 'Method' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_WRITE_TRANSFORMER__METHOD = EABSTRACT_XML_TRANSFORMER__METHOD; + + /** + * The feature id for the 'Transformer Class' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_WRITE_TRANSFORMER__TRANSFORMER_CLASS = EABSTRACT_XML_TRANSFORMER__TRANSFORMER_CLASS; + + /** + * The feature id for the 'Xml Path' attribute. + * + * + * @generated + * @ordered + */ + public static final int EXML_WRITE_TRANSFORMER__XML_PATH = EABSTRACT_XML_TRANSFORMER_FEATURE_COUNT + 0; + + /** + * The number of structural features of the 'EXml Write Transformer' class. + * + * + * @generated + * @ordered + */ + public static final int EXML_WRITE_TRANSFORMER_FEATURE_COUNT = EABSTRACT_XML_TRANSFORMER_FEATURE_COUNT + 1; + + /** + * The meta object id for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAccessOrder EXml Access Order}' enum. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAccessOrder + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlAccessOrder() + * @generated + */ + public static final int EXML_ACCESS_ORDER = 45; + + /** + * The meta object id for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAccessType EXml Access Type}' enum. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAccessType + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlAccessType() + * @generated + */ + public static final int EXML_ACCESS_TYPE = 46; + + /** + * The meta object id for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlMarshalNullRepresentation EXml Marshal Null Representation}' enum. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlMarshalNullRepresentation + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlMarshalNullRepresentation() + * @generated + */ + public static final int EXML_MARSHAL_NULL_REPRESENTATION = 47; + + /** + * The meta object id for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlNsForm EXml Ns Form}' enum. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlNsForm + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlNsForm() + * @generated + */ + public static final int EXML_NS_FORM = 48; + + /** + * The meta object id for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlVirtualAccessMethodsSchema EXml Virtual Access Methods Schema}' enum. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlVirtualAccessMethodsSchema + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlVirtualAccessMethodsSchema() + * @generated + */ + public static final int EXML_VIRTUAL_ACCESS_METHODS_SCHEMA = 49; + + /** + * The meta object id for the 'EProp Order' data type. + * + * + * @see java.util.List + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEPropOrder() + * @generated + */ + public static final int EPROP_ORDER = 50; + + /** + * The meta object id for the 'EXml See Also' data type. + * + * + * @see java.util.List + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlSeeAlso() + * @generated + */ + public static final int EXML_SEE_ALSO = 51; + + /** + * + * + * @generated + */ + private EClass eAbstractXmlNullPolicyEClass = null; + + /** + * + * + * @generated + */ + private EClass eAbstractXmlTransformerEClass = null; + + /** + * + * + * @generated + */ + private EClass eAccessibleJavaAttributeEClass = null; + + /** + * + * + * @generated + */ + private EClass eAdaptableJavaAttributeEClass = null; + + /** + * + * + * @generated + */ + private EClass eContainerJavaAttributeEClass = null; + + /** + * + * + * @generated + */ + private EClass eJavaAttributeEClass = null; + + /** + * + * + * @generated + */ + private EClass eJavaTypeEClass = null; + + /** + * + * + * @generated + */ + private EClass ePropertyHolderEClass = null; + + /** + * + * + * @generated + */ + private EClass eReadWriteJavaAttributeEClass = null; + + /** + * + * + * @generated + */ + private EClass eTypedJavaAttributeEClass = null; + + /** + * + * + * @generated + */ + private EClass eXmlAccessMethodsEClass = null; + + /** + * + * + * @generated + */ + private EClass eXmlAnyAttributeEClass = null; + + /** + * + * + * @generated + */ + private EClass eXmlAnyElementEClass = null; + + /** + * + * + * @generated + */ + private EClass eXmlAttributeEClass = null; + + /** + * + * + * @generated + */ + private EClass eXmlBindingsEClass = null; + + /** + * + * + * @generated + */ + private EClass eXmlClassExtractorEClass = null; + + /** + * + * + * @generated + */ + private EClass eXmlElementEClass = null; + + /** + * + * + * @generated + */ + private EClass eXmlElementDeclEClass = null; + + /** + * + * + * @generated + */ + private EClass eXmlElementRefEClass = null; + + /** + * + * + * @generated + */ + private EClass eXmlElementRefsEClass = null; + + /** + * + * + * @generated + */ + private EClass eXmlElementsEClass = null; + + /** + * + * + * @generated + */ + private EClass eXmlElementWrapperEClass = null; + + /** + * + * + * @generated + */ + private EClass eXmlEnumEClass = null; + + /** + * + * + * @generated + */ + private EClass eXmlEnumValueEClass = null; + + /** + * + * + * @generated + */ + private EClass eXmlInverseReferenceEClass = null; + + /** + * + * + * @generated + */ + private EClass eXmlIsSetNullPolicyEClass = null; + + /** + * + * + * @generated + */ + private EClass eXmlIsSetParameterEClass = null; + + /** + * + * + * @generated + */ + private EClass eXmlJavaTypeAdapterEClass = null; + + /** + * + * + * @generated + */ + private EClass eXmlJoinNodeEClass = null; + + /** + * + * + * @generated + */ + private EClass eXmlJoinNodesEClass = null; + + /** + * + * + * @generated + */ + private EClass eXmlMapEClass = null; + + /** + * + * + * @generated + */ + private EClass eXmlNullPolicyEClass = null; + + /** + * + * + * @generated + */ + private EClass eXmlNsEClass = null; + + /** + * + * + * @generated + */ + private EClass eXmlPropertyEClass = null; + + /** + * + * + * @generated + */ + private EClass eXmlReadTransformerEClass = null; + + /** + * + * + * @generated + */ + private EClass eXmlRegistryEClass = null; + + /** + * + * + * @generated + */ + private EClass eXmlRootElementEClass = null; + + /** + * + * + * @generated + */ + private EClass eXmlSchemaEClass = null; + + /** + * + * + * @generated + */ + private EClass eXmlSchemaTypeEClass = null; + + /** + * + * + * @generated + */ + private EClass eXmlTransformationEClass = null; + + /** + * + * + * @generated + */ + private EClass eXmlTransientEClass = null; + + /** + * + * + * @generated + */ + private EClass eXmlTypeEClass = null; + + /** + * + * + * @generated + */ + private EClass eXmlValueEClass = null; + + /** + * + * + * @generated + */ + private EClass eXmlVirtualAccessMethodsEClass = null; + + /** + * + * + * @generated + */ + private EClass eXmlWriteTransformerEClass = null; + + /** + * + * + * @generated + */ + private EEnum eXmlAccessOrderEEnum = null; + + /** + * + * + * @generated + */ + private EEnum eXmlAccessTypeEEnum = null; + + /** + * + * + * @generated + */ + private EEnum eXmlMarshalNullRepresentationEEnum = null; + + /** + * + * + * @generated + */ + private EEnum eXmlNsFormEEnum = null; + + /** + * + * + * @generated + */ + private EEnum eXmlVirtualAccessMethodsSchemaEEnum = null; + + /** + * + * + * @generated + */ + private EDataType ePropOrderEDataType = null; + + /** + * + * + * @generated + */ + private EDataType eXmlSeeAlsoEDataType = null; + + /** + * Creates an instance of the model Package, registered with + * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package + * package URI value. + *

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. + * + * + * @see org.eclipse.emf.ecore.EPackage.Registry + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#eNS_URI + * @see #init() + * @generated + */ + private OxmPackage() + { + super(eNS_URI, OxmFactory.eINSTANCE); + } + + /** + * + * + * @generated + */ + private static boolean isInited = false; + + /** + * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. + * + *

This method is used to initialize {@link OxmPackage#eINSTANCE} when that field is accessed. + * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. + * + * + * @see #eNS_URI + * @see #createPackageContents() + * @see #initializePackageContents() + * @generated + */ + public static OxmPackage init() + { + if (isInited) return (OxmPackage)EPackage.Registry.INSTANCE.getEPackage(OxmPackage.eNS_URI); + + // Obtain or create and register package + OxmPackage theOxmPackage = (OxmPackage)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof OxmPackage ? EPackage.Registry.INSTANCE.get(eNS_URI) : new OxmPackage()); + + isInited = true; + + // Initialize simple dependencies + CommonPackage.eINSTANCE.eClass(); + + // Create package meta-data objects + theOxmPackage.createPackageContents(); + + // Initialize created meta-data + theOxmPackage.initializePackageContents(); + + // Register package validator + EValidator.Registry.INSTANCE.put + (theOxmPackage, + new EValidator.Descriptor() + { + public EValidator getEValidator() + { + return OxmValidator.INSTANCE; + } + }); + + // Mark meta-data to indicate it can't be changed + theOxmPackage.freeze(); + + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(OxmPackage.eNS_URI, theOxmPackage); + return theOxmPackage; + } + + + /** + * Returns the meta object for class '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EAbstractXmlNullPolicy EAbstract Xml Null Policy}'. + * + * + * @return the meta object for class 'EAbstract Xml Null Policy'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EAbstractXmlNullPolicy + * @generated + */ + public EClass getEAbstractXmlNullPolicy() + { + return eAbstractXmlNullPolicyEClass; + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EAbstractXmlNullPolicy#isXsiNilRepresentsNull Xsi Nil Represents Null}'. + * + * + * @return the meta object for the attribute 'Xsi Nil Represents Null'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EAbstractXmlNullPolicy#isXsiNilRepresentsNull() + * @see #getEAbstractXmlNullPolicy() + * @generated + */ + public EAttribute getEAbstractXmlNullPolicy_XsiNilRepresentsNull() + { + return (EAttribute)eAbstractXmlNullPolicyEClass.getEStructuralFeatures().get(0); + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EAbstractXmlNullPolicy#isEmptyNodeRepresentsNull Empty Node Represents Null}'. + * + * + * @return the meta object for the attribute 'Empty Node Represents Null'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EAbstractXmlNullPolicy#isEmptyNodeRepresentsNull() + * @see #getEAbstractXmlNullPolicy() + * @generated + */ + public EAttribute getEAbstractXmlNullPolicy_EmptyNodeRepresentsNull() + { + return (EAttribute)eAbstractXmlNullPolicyEClass.getEStructuralFeatures().get(1); + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EAbstractXmlNullPolicy#getNullRepresentationForXml Null Representation For Xml}'. + * + * + * @return the meta object for the attribute 'Null Representation For Xml'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EAbstractXmlNullPolicy#getNullRepresentationForXml() + * @see #getEAbstractXmlNullPolicy() + * @generated + */ + public EAttribute getEAbstractXmlNullPolicy_NullRepresentationForXml() + { + return (EAttribute)eAbstractXmlNullPolicyEClass.getEStructuralFeatures().get(2); + } + + + /** + * Returns the meta object for class '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EAbstractXmlTransformer EAbstract Xml Transformer}'. + * + * + * @return the meta object for class 'EAbstract Xml Transformer'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EAbstractXmlTransformer + * @generated + */ + public EClass getEAbstractXmlTransformer() + { + return eAbstractXmlTransformerEClass; + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EAbstractXmlTransformer#getMethod Method}'. + * + * + * @return the meta object for the attribute 'Method'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EAbstractXmlTransformer#getMethod() + * @see #getEAbstractXmlTransformer() + * @generated + */ + public EAttribute getEAbstractXmlTransformer_Method() + { + return (EAttribute)eAbstractXmlTransformerEClass.getEStructuralFeatures().get(0); + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EAbstractXmlTransformer#getTransformerClass Transformer Class}'. + * + * + * @return the meta object for the attribute 'Transformer Class'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EAbstractXmlTransformer#getTransformerClass() + * @see #getEAbstractXmlTransformer() + * @generated + */ + public EAttribute getEAbstractXmlTransformer_TransformerClass() + { + return (EAttribute)eAbstractXmlTransformerEClass.getEStructuralFeatures().get(1); + } + + + /** + * Returns the meta object for class '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EAccessibleJavaAttribute EAccessible Java Attribute}'. + * + * + * @return the meta object for class 'EAccessible Java Attribute'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EAccessibleJavaAttribute + * @generated + */ + public EClass getEAccessibleJavaAttribute() + { + return eAccessibleJavaAttributeEClass; + } + + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EAccessibleJavaAttribute#getXmlAccessMethods Xml Access Methods}'. + * + * + * @return the meta object for the containment reference 'Xml Access Methods'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EAccessibleJavaAttribute#getXmlAccessMethods() + * @see #getEAccessibleJavaAttribute() + * @generated + */ + public EReference getEAccessibleJavaAttribute_XmlAccessMethods() + { + return (EReference)eAccessibleJavaAttributeEClass.getEStructuralFeatures().get(0); + } + + + /** + * Returns the meta object for class '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EAdaptableJavaAttribute EAdaptable Java Attribute}'. + * + * + * @return the meta object for class 'EAdaptable Java Attribute'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EAdaptableJavaAttribute + * @generated + */ + public EClass getEAdaptableJavaAttribute() + { + return eAdaptableJavaAttributeEClass; + } + + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EAdaptableJavaAttribute#getXmlJavaTypeAdapter Xml Java Type Adapter}'. + * + * + * @return the meta object for the containment reference 'Xml Java Type Adapter'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EAdaptableJavaAttribute#getXmlJavaTypeAdapter() + * @see #getEAdaptableJavaAttribute() + * @generated + */ + public EReference getEAdaptableJavaAttribute_XmlJavaTypeAdapter() + { + return (EReference)eAdaptableJavaAttributeEClass.getEStructuralFeatures().get(0); + } + + + /** + * Returns the meta object for class '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EContainerJavaAttribute EContainer Java Attribute}'. + * + * + * @return the meta object for class 'EContainer Java Attribute'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EContainerJavaAttribute + * @generated + */ + public EClass getEContainerJavaAttribute() + { + return eContainerJavaAttributeEClass; + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EContainerJavaAttribute#getContainerType Container Type}'. + * + * + * @return the meta object for the attribute 'Container Type'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EContainerJavaAttribute#getContainerType() + * @see #getEContainerJavaAttribute() + * @generated + */ + public EAttribute getEContainerJavaAttribute_ContainerType() + { + return (EAttribute)eContainerJavaAttributeEClass.getEStructuralFeatures().get(0); + } + + + /** + * Returns the meta object for class '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EJavaAttribute EJava Attribute}'. + * + * + * @return the meta object for class 'EJava Attribute'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EJavaAttribute + * @generated + */ + public EClass getEJavaAttribute() + { + return eJavaAttributeEClass; + } + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EJavaAttribute#getJavaAttribute Java Attribute}'. + * + * + * @return the meta object for the attribute 'Java Attribute'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EJavaAttribute#getJavaAttribute() + * @see #getEJavaAttribute() + * @generated + */ + public EAttribute getEJavaAttribute_JavaAttribute() + { + return (EAttribute)eJavaAttributeEClass.getEStructuralFeatures().get(0); + } + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EJavaAttribute#getXmlAccessorType Xml Accessor Type}'. + * + * + * @return the meta object for the attribute 'Xml Accessor Type'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EJavaAttribute#getXmlAccessorType() + * @see #getEJavaAttribute() + * @generated + */ + public EAttribute getEJavaAttribute_XmlAccessorType() + { + return (EAttribute)eJavaAttributeEClass.getEStructuralFeatures().get(1); + } + + + /** + * Returns the meta object for class '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EJavaType EJava Type}'. + * + * + * @return the meta object for class 'EJava Type'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EJavaType + * @generated + */ + public EClass getEJavaType() + { + return eJavaTypeEClass; + } + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EJavaType#getName Name}'. + * + * + * @return the meta object for the attribute 'Name'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EJavaType#getName() + * @see #getEJavaType() + * @generated + */ + public EAttribute getEJavaType_Name() + { + return (EAttribute)eJavaTypeEClass.getEStructuralFeatures().get(0); + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EJavaType#getSuperType Super Type}'. + * + * + * @return the meta object for the attribute 'Super Type'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EJavaType#getSuperType() + * @see #getEJavaType() + * @generated + */ + public EAttribute getEJavaType_SuperType() + { + return (EAttribute)eJavaTypeEClass.getEStructuralFeatures().get(1); + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EJavaType#getXmlAccessorOrder Xml Accessor Order}'. + * + * + * @return the meta object for the attribute 'Xml Accessor Order'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EJavaType#getXmlAccessorOrder() + * @see #getEJavaType() + * @generated + */ + public EAttribute getEJavaType_XmlAccessorOrder() + { + return (EAttribute)eJavaTypeEClass.getEStructuralFeatures().get(2); + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EJavaType#getXmlAccessorType Xml Accessor Type}'. + * + * + * @return the meta object for the attribute 'Xml Accessor Type'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EJavaType#getXmlAccessorType() + * @see #getEJavaType() + * @generated + */ + public EAttribute getEJavaType_XmlAccessorType() + { + return (EAttribute)eJavaTypeEClass.getEStructuralFeatures().get(3); + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EJavaType#getXmlCustomizer Xml Customizer}'. + * + * + * @return the meta object for the attribute 'Xml Customizer'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EJavaType#getXmlCustomizer() + * @see #getEJavaType() + * @generated + */ + public EAttribute getEJavaType_XmlCustomizer() + { + return (EAttribute)eJavaTypeEClass.getEStructuralFeatures().get(4); + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EJavaType#getXmlDiscriminatorNode Xml Discriminator Node}'. + * + * + * @return the meta object for the attribute 'Xml Discriminator Node'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EJavaType#getXmlDiscriminatorNode() + * @see #getEJavaType() + * @generated + */ + public EAttribute getEJavaType_XmlDiscriminatorNode() + { + return (EAttribute)eJavaTypeEClass.getEStructuralFeatures().get(5); + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EJavaType#getXmlDiscriminatorValue Xml Discriminator Value}'. + * + * + * @return the meta object for the attribute 'Xml Discriminator Value'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EJavaType#getXmlDiscriminatorValue() + * @see #getEJavaType() + * @generated + */ + public EAttribute getEJavaType_XmlDiscriminatorValue() + { + return (EAttribute)eJavaTypeEClass.getEStructuralFeatures().get(6); + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EJavaType#isXmlInlineBinaryData Xml Inline Binary Data}'. + * + * + * @return the meta object for the attribute 'Xml Inline Binary Data'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EJavaType#isXmlInlineBinaryData() + * @see #getEJavaType() + * @generated + */ + public EAttribute getEJavaType_XmlInlineBinaryData() + { + return (EAttribute)eJavaTypeEClass.getEStructuralFeatures().get(7); + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EJavaType#isXmlTransient Xml Transient}'. + * + * + * @return the meta object for the attribute 'Xml Transient'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EJavaType#isXmlTransient() + * @see #getEJavaType() + * @generated + */ + public EAttribute getEJavaType_XmlTransient() + { + return (EAttribute)eJavaTypeEClass.getEStructuralFeatures().get(8); + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EJavaType#getXmlNameTransformer Xml Name Transformer}'. + * + * + * @return the meta object for the attribute 'Xml Name Transformer'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EJavaType#getXmlNameTransformer() + * @see #getEJavaType() + * @generated + */ + public EAttribute getEJavaType_XmlNameTransformer() + { + return (EAttribute)eJavaTypeEClass.getEStructuralFeatures().get(9); + } + + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EJavaType#getXmlType Xml Type}'. + * + * + * @return the meta object for the containment reference 'Xml Type'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EJavaType#getXmlType() + * @see #getEJavaType() + * @generated + */ + public EReference getEJavaType_XmlType() + { + return (EReference)eJavaTypeEClass.getEStructuralFeatures().get(10); + } + + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EJavaType#getXmlRootElement Xml Root Element}'. + * + * + * @return the meta object for the containment reference 'Xml Root Element'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EJavaType#getXmlRootElement() + * @see #getEJavaType() + * @generated + */ + public EReference getEJavaType_XmlRootElement() + { + return (EReference)eJavaTypeEClass.getEStructuralFeatures().get(11); + } + + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EJavaType#getXmlVirtualAccessMethods Xml Virtual Access Methods}'. + * + * + * @return the meta object for the containment reference 'Xml Virtual Access Methods'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EJavaType#getXmlVirtualAccessMethods() + * @see #getEJavaType() + * @generated + */ + public EReference getEJavaType_XmlVirtualAccessMethods() + { + return (EReference)eJavaTypeEClass.getEStructuralFeatures().get(12); + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EJavaType#getXmlSeeAlso Xml See Also}'. + * + * + * @return the meta object for the attribute 'Xml See Also'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EJavaType#getXmlSeeAlso() + * @see #getEJavaType() + * @generated + */ + public EAttribute getEJavaType_XmlSeeAlso() + { + return (EAttribute)eJavaTypeEClass.getEStructuralFeatures().get(13); + } + + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EJavaType#getXmlJavaTypeAdapter Xml Java Type Adapter}'. + * + * + * @return the meta object for the containment reference 'Xml Java Type Adapter'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EJavaType#getXmlJavaTypeAdapter() + * @see #getEJavaType() + * @generated + */ + public EReference getEJavaType_XmlJavaTypeAdapter() + { + return (EReference)eJavaTypeEClass.getEStructuralFeatures().get(14); + } + + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EJavaType#getXmlClassExtractor Xml Class Extractor}'. + * + * + * @return the meta object for the containment reference 'Xml Class Extractor'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EJavaType#getXmlClassExtractor() + * @see #getEJavaType() + * @generated + */ + public EReference getEJavaType_XmlClassExtractor() + { + return (EReference)eJavaTypeEClass.getEStructuralFeatures().get(15); + } + + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EJavaType#getJavaAttributes Java Attributes}'. + * + * + * @return the meta object for the containment reference list 'Java Attributes'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EJavaType#getJavaAttributes() + * @see #getEJavaType() + * @generated + */ + public EReference getEJavaType_JavaAttributes() + { + return (EReference)eJavaTypeEClass.getEStructuralFeatures().get(16); + } + + /** + * Returns the meta object for class '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EPropertyHolder EProperty Holder}'. + * + * + * @return the meta object for class 'EProperty Holder'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EPropertyHolder + * @generated + */ + public EClass getEPropertyHolder() + { + return ePropertyHolderEClass; + } + + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EPropertyHolder#getXmlProperties Xml Properties}'. + * + * + * @return the meta object for the containment reference list 'Xml Properties'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EPropertyHolder#getXmlProperties() + * @see #getEPropertyHolder() + * @generated + */ + public EReference getEPropertyHolder_XmlProperties() + { + return (EReference)ePropertyHolderEClass.getEStructuralFeatures().get(0); + } + + + /** + * Returns the meta object for class '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EReadWriteJavaAttribute ERead Write Java Attribute}'. + * + * + * @return the meta object for class 'ERead Write Java Attribute'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EReadWriteJavaAttribute + * @generated + */ + public EClass getEReadWriteJavaAttribute() + { + return eReadWriteJavaAttributeEClass; + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EReadWriteJavaAttribute#isReadOnly Read Only}'. + * + * + * @return the meta object for the attribute 'Read Only'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EReadWriteJavaAttribute#isReadOnly() + * @see #getEReadWriteJavaAttribute() + * @generated + */ + public EAttribute getEReadWriteJavaAttribute_ReadOnly() + { + return (EAttribute)eReadWriteJavaAttributeEClass.getEStructuralFeatures().get(0); + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EReadWriteJavaAttribute#isWriteOnly Write Only}'. + * + * + * @return the meta object for the attribute 'Write Only'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EReadWriteJavaAttribute#isWriteOnly() + * @see #getEReadWriteJavaAttribute() + * @generated + */ + public EAttribute getEReadWriteJavaAttribute_WriteOnly() + { + return (EAttribute)eReadWriteJavaAttributeEClass.getEStructuralFeatures().get(1); + } + + + /** + * Returns the meta object for class '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.ETypedJavaAttribute ETyped Java Attribute}'. + * + * + * @return the meta object for class 'ETyped Java Attribute'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.ETypedJavaAttribute + * @generated + */ + public EClass getETypedJavaAttribute() + { + return eTypedJavaAttributeEClass; + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.ETypedJavaAttribute#getType Type}'. + * + * + * @return the meta object for the attribute 'Type'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.ETypedJavaAttribute#getType() + * @see #getETypedJavaAttribute() + * @generated + */ + public EAttribute getETypedJavaAttribute_Type() + { + return (EAttribute)eTypedJavaAttributeEClass.getEStructuralFeatures().get(0); + } + + + /** + * Returns the meta object for class '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAccessMethods EXml Access Methods}'. + * + * + * @return the meta object for class 'EXml Access Methods'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAccessMethods + * @generated + */ + public EClass getEXmlAccessMethods() + { + return eXmlAccessMethodsEClass; + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAccessMethods#getGetMethod Get Method}'. + * + * + * @return the meta object for the attribute 'Get Method'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAccessMethods#getGetMethod() + * @see #getEXmlAccessMethods() + * @generated + */ + public EAttribute getEXmlAccessMethods_GetMethod() + { + return (EAttribute)eXmlAccessMethodsEClass.getEStructuralFeatures().get(0); + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAccessMethods#getSetMethod Set Method}'. + * + * + * @return the meta object for the attribute 'Set Method'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAccessMethods#getSetMethod() + * @see #getEXmlAccessMethods() + * @generated + */ + public EAttribute getEXmlAccessMethods_SetMethod() + { + return (EAttribute)eXmlAccessMethodsEClass.getEStructuralFeatures().get(1); + } + + + /** + * Returns the meta object for class '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAnyAttribute EXml Any Attribute}'. + * + * + * @return the meta object for class 'EXml Any Attribute'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAnyAttribute + * @generated + */ + public EClass getEXmlAnyAttribute() + { + return eXmlAnyAttributeEClass; + } + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAnyAttribute#getXmlPath Xml Path}'. + * + * + * @return the meta object for the attribute 'Xml Path'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAnyAttribute#getXmlPath() + * @see #getEXmlAnyAttribute() + * @generated + */ + public EAttribute getEXmlAnyAttribute_XmlPath() + { + return (EAttribute)eXmlAnyAttributeEClass.getEStructuralFeatures().get(0); + } + + + /** + * Returns the meta object for class '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAnyElement EXml Any Element}'. + * + * + * @return the meta object for class 'EXml Any Element'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAnyElement + * @generated + */ + public EClass getEXmlAnyElement() + { + return eXmlAnyElementEClass; + } + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAnyElement#isXmlMixed Xml Mixed}'. + * + * + * @return the meta object for the attribute 'Xml Mixed'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAnyElement#isXmlMixed() + * @see #getEXmlAnyElement() + * @generated + */ + public EAttribute getEXmlAnyElement_XmlMixed() + { + return (EAttribute)eXmlAnyElementEClass.getEStructuralFeatures().get(0); + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAnyElement#isLax Lax}'. + * + * + * @return the meta object for the attribute 'Lax'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAnyElement#isLax() + * @see #getEXmlAnyElement() + * @generated + */ + public EAttribute getEXmlAnyElement_Lax() + { + return (EAttribute)eXmlAnyElementEClass.getEStructuralFeatures().get(1); + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAnyElement#getDomHandler Dom Handler}'. + * + * + * @return the meta object for the attribute 'Dom Handler'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAnyElement#getDomHandler() + * @see #getEXmlAnyElement() + * @generated + */ + public EAttribute getEXmlAnyElement_DomHandler() + { + return (EAttribute)eXmlAnyElementEClass.getEStructuralFeatures().get(2); + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAnyElement#getXmlPath Xml Path}'. + * + * + * @return the meta object for the attribute 'Xml Path'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAnyElement#getXmlPath() + * @see #getEXmlAnyElement() + * @generated + */ + public EAttribute getEXmlAnyElement_XmlPath() + { + return (EAttribute)eXmlAnyElementEClass.getEStructuralFeatures().get(3); + } + + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAnyElement#getXmlElementRefs Xml Element Refs}'. + * + * + * @return the meta object for the containment reference 'Xml Element Refs'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAnyElement#getXmlElementRefs() + * @see #getEXmlAnyElement() + * @generated + */ + public EReference getEXmlAnyElement_XmlElementRefs() + { + return (EReference)eXmlAnyElementEClass.getEStructuralFeatures().get(4); + } + + + /** + * Returns the meta object for class '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAttribute EXml Attribute}'. + * + * + * @return the meta object for class 'EXml Attribute'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAttribute + * @generated + */ + public EClass getEXmlAttribute() + { + return eXmlAttributeEClass; + } + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAttribute#getName Name}'. + * + * + * @return the meta object for the attribute 'Name'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAttribute#getName() + * @see #getEXmlAttribute() + * @generated + */ + public EAttribute getEXmlAttribute_Name() + { + return (EAttribute)eXmlAttributeEClass.getEStructuralFeatures().get(0); + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAttribute#getNamespace Namespace}'. + * + * + * @return the meta object for the attribute 'Namespace'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAttribute#getNamespace() + * @see #getEXmlAttribute() + * @generated + */ + public EAttribute getEXmlAttribute_Namespace() + { + return (EAttribute)eXmlAttributeEClass.getEStructuralFeatures().get(1); + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAttribute#isRequired Required}'. + * + * + * @return the meta object for the attribute 'Required'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAttribute#isRequired() + * @see #getEXmlAttribute() + * @generated + */ + public EAttribute getEXmlAttribute_Required() + { + return (EAttribute)eXmlAttributeEClass.getEStructuralFeatures().get(2); + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAttribute#isXmlId Xml Id}'. + * + * + * @return the meta object for the attribute 'Xml Id'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAttribute#isXmlId() + * @see #getEXmlAttribute() + * @generated + */ + public EAttribute getEXmlAttribute_XmlId() + { + return (EAttribute)eXmlAttributeEClass.getEStructuralFeatures().get(3); + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAttribute#isXmlIdRef Xml Id Ref}'. + * + * + * @return the meta object for the attribute 'Xml Id Ref'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAttribute#isXmlIdRef() + * @see #getEXmlAttribute() + * @generated + */ + public EAttribute getEXmlAttribute_XmlIdRef() + { + return (EAttribute)eXmlAttributeEClass.getEStructuralFeatures().get(4); + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAttribute#isXmlKey Xml Key}'. + * + * + * @return the meta object for the attribute 'Xml Key'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAttribute#isXmlKey() + * @see #getEXmlAttribute() + * @generated + */ + public EAttribute getEXmlAttribute_XmlKey() + { + return (EAttribute)eXmlAttributeEClass.getEStructuralFeatures().get(5); + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAttribute#isXmlList Xml List}'. + * + * + * @return the meta object for the attribute 'Xml List'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAttribute#isXmlList() + * @see #getEXmlAttribute() + * @generated + */ + public EAttribute getEXmlAttribute_XmlList() + { + return (EAttribute)eXmlAttributeEClass.getEStructuralFeatures().get(6); + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAttribute#isXmlInlineBinaryData Xml Inline Binary Data}'. + * + * + * @return the meta object for the attribute 'Xml Inline Binary Data'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAttribute#isXmlInlineBinaryData() + * @see #getEXmlAttribute() + * @generated + */ + public EAttribute getEXmlAttribute_XmlInlineBinaryData() + { + return (EAttribute)eXmlAttributeEClass.getEStructuralFeatures().get(7); + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAttribute#isXmlAttachmentRef Xml Attachment Ref}'. + * + * + * @return the meta object for the attribute 'Xml Attachment Ref'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAttribute#isXmlAttachmentRef() + * @see #getEXmlAttribute() + * @generated + */ + public EAttribute getEXmlAttribute_XmlAttachmentRef() + { + return (EAttribute)eXmlAttributeEClass.getEStructuralFeatures().get(8); + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAttribute#getXmlMimeType Xml Mime Type}'. + * + * + * @return the meta object for the attribute 'Xml Mime Type'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAttribute#getXmlMimeType() + * @see #getEXmlAttribute() + * @generated + */ + public EAttribute getEXmlAttribute_XmlMimeType() + { + return (EAttribute)eXmlAttributeEClass.getEStructuralFeatures().get(9); + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAttribute#getXmlPath Xml Path}'. + * + * + * @return the meta object for the attribute 'Xml Path'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAttribute#getXmlPath() + * @see #getEXmlAttribute() + * @generated + */ + public EAttribute getEXmlAttribute_XmlPath() + { + return (EAttribute)eXmlAttributeEClass.getEStructuralFeatures().get(10); + } + + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAttribute#getXmlAbstractNullPolicy Xml Abstract Null Policy}'. + * + * + * @return the meta object for the containment reference 'Xml Abstract Null Policy'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAttribute#getXmlAbstractNullPolicy() + * @see #getEXmlAttribute() + * @generated + */ + public EReference getEXmlAttribute_XmlAbstractNullPolicy() + { + return (EReference)eXmlAttributeEClass.getEStructuralFeatures().get(11); + } + + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAttribute#getXmlSchemaType Xml Schema Type}'. + * + * + * @return the meta object for the containment reference 'Xml Schema Type'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAttribute#getXmlSchemaType() + * @see #getEXmlAttribute() + * @generated + */ + public EReference getEXmlAttribute_XmlSchemaType() + { + return (EReference)eXmlAttributeEClass.getEStructuralFeatures().get(12); + } + + + /** + * Returns the meta object for class '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlBindings EXml Bindings}'. + * + * + * @return the meta object for class 'EXml Bindings'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlBindings + * @generated + */ + public EClass getEXmlBindings() + { + return eXmlBindingsEClass; + } + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlBindings#getXmlAccessorType Xml Accessor Type}'. + * + * + * @return the meta object for the attribute 'Xml Accessor Type'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlBindings#getXmlAccessorType() + * @see #getEXmlBindings() + * @generated + */ + public EAttribute getEXmlBindings_XmlAccessorType() + { + return (EAttribute)eXmlBindingsEClass.getEStructuralFeatures().get(0); + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlBindings#getXmlAccessorOrder Xml Accessor Order}'. + * + * + * @return the meta object for the attribute 'Xml Accessor Order'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlBindings#getXmlAccessorOrder() + * @see #getEXmlBindings() + * @generated + */ + public EAttribute getEXmlBindings_XmlAccessorOrder() + { + return (EAttribute)eXmlBindingsEClass.getEStructuralFeatures().get(1); + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlBindings#isXmlMappingMetadataComplete Xml Mapping Metadata Complete}'. + * + * + * @return the meta object for the attribute 'Xml Mapping Metadata Complete'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlBindings#isXmlMappingMetadataComplete() + * @see #getEXmlBindings() + * @generated + */ + public EAttribute getEXmlBindings_XmlMappingMetadataComplete() + { + return (EAttribute)eXmlBindingsEClass.getEStructuralFeatures().get(2); + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlBindings#getPackageName Package Name}'. + * + * + * @return the meta object for the attribute 'Package Name'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlBindings#getPackageName() + * @see #getEXmlBindings() + * @generated + */ + public EAttribute getEXmlBindings_PackageName() + { + return (EAttribute)eXmlBindingsEClass.getEStructuralFeatures().get(3); + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlBindings#getXmlNameTransformer Xml Name Transformer}'. + * + * + * @return the meta object for the attribute 'Xml Name Transformer'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlBindings#getXmlNameTransformer() + * @see #getEXmlBindings() + * @generated + */ + public EAttribute getEXmlBindings_XmlNameTransformer() + { + return (EAttribute)eXmlBindingsEClass.getEStructuralFeatures().get(4); + } + + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlBindings#getXmlSchema Xml Schema}'. + * + * + * @return the meta object for the containment reference 'Xml Schema'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlBindings#getXmlSchema() + * @see #getEXmlBindings() + * @generated + */ + public EReference getEXmlBindings_XmlSchema() + { + return (EReference)eXmlBindingsEClass.getEStructuralFeatures().get(5); + } + + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlBindings#getXmlSchemaType Xml Schema Type}'. + * + * + * @return the meta object for the containment reference 'Xml Schema Type'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlBindings#getXmlSchemaType() + * @see #getEXmlBindings() + * @generated + */ + public EReference getEXmlBindings_XmlSchemaType() + { + return (EReference)eXmlBindingsEClass.getEStructuralFeatures().get(6); + } + + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlBindings#getXmlSchemaTypes Xml Schema Types}'. + * + * + * @return the meta object for the containment reference list 'Xml Schema Types'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlBindings#getXmlSchemaTypes() + * @see #getEXmlBindings() + * @generated + */ + public EReference getEXmlBindings_XmlSchemaTypes() + { + return (EReference)eXmlBindingsEClass.getEStructuralFeatures().get(7); + } + + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlBindings#getXmlJavaTypeAdapters Xml Java Type Adapters}'. + * + * + * @return the meta object for the containment reference list 'Xml Java Type Adapters'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlBindings#getXmlJavaTypeAdapters() + * @see #getEXmlBindings() + * @generated + */ + public EReference getEXmlBindings_XmlJavaTypeAdapters() + { + return (EReference)eXmlBindingsEClass.getEStructuralFeatures().get(8); + } + + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlBindings#getXmlRegistries Xml Registries}'. + * + * + * @return the meta object for the containment reference list 'Xml Registries'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlBindings#getXmlRegistries() + * @see #getEXmlBindings() + * @generated + */ + public EReference getEXmlBindings_XmlRegistries() + { + return (EReference)eXmlBindingsEClass.getEStructuralFeatures().get(9); + } + + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlBindings#getXmlEnums Xml Enums}'. + * + * + * @return the meta object for the containment reference list 'Xml Enums'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlBindings#getXmlEnums() + * @see #getEXmlBindings() + * @generated + */ + public EReference getEXmlBindings_XmlEnums() + { + return (EReference)eXmlBindingsEClass.getEStructuralFeatures().get(10); + } + + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlBindings#getJavaTypes Java Types}'. + * + * + * @return the meta object for the containment reference list 'Java Types'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlBindings#getJavaTypes() + * @see #getEXmlBindings() + * @generated + */ + public EReference getEXmlBindings_JavaTypes() + { + return (EReference)eXmlBindingsEClass.getEStructuralFeatures().get(11); + } + + /** + * Returns the meta object for class '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlClassExtractor EXml Class Extractor}'. + * + * + * @return the meta object for class 'EXml Class Extractor'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlClassExtractor + * @generated + */ + public EClass getEXmlClassExtractor() + { + return eXmlClassExtractorEClass; + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlClassExtractor#getClassName Class Name}'. + * + * + * @return the meta object for the attribute 'Class Name'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlClassExtractor#getClassName() + * @see #getEXmlClassExtractor() + * @generated + */ + public EAttribute getEXmlClassExtractor_ClassName() + { + return (EAttribute)eXmlClassExtractorEClass.getEStructuralFeatures().get(0); + } + + + /** + * Returns the meta object for class '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElement EXml Element}'. + * + * + * @return the meta object for class 'EXml Element'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElement + * @generated + */ + public EClass getEXmlElement() + { + return eXmlElementEClass; + } + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElement#getName Name}'. + * + * + * @return the meta object for the attribute 'Name'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElement#getName() + * @see #getEXmlElement() + * @generated + */ + public EAttribute getEXmlElement_Name() + { + return (EAttribute)eXmlElementEClass.getEStructuralFeatures().get(0); + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElement#getNamespace Namespace}'. + * + * + * @return the meta object for the attribute 'Namespace'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElement#getNamespace() + * @see #getEXmlElement() + * @generated + */ + public EAttribute getEXmlElement_Namespace() + { + return (EAttribute)eXmlElementEClass.getEStructuralFeatures().get(1); + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElement#getDefaultValue Default Value}'. + * + * + * @return the meta object for the attribute 'Default Value'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElement#getDefaultValue() + * @see #getEXmlElement() + * @generated + */ + public EAttribute getEXmlElement_DefaultValue() + { + return (EAttribute)eXmlElementEClass.getEStructuralFeatures().get(2); + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElement#isNillable Nillable}'. + * + * + * @return the meta object for the attribute 'Nillable'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElement#isNillable() + * @see #getEXmlElement() + * @generated + */ + public EAttribute getEXmlElement_Nillable() + { + return (EAttribute)eXmlElementEClass.getEStructuralFeatures().get(3); + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElement#isRequired Required}'. + * + * + * @return the meta object for the attribute 'Required'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElement#isRequired() + * @see #getEXmlElement() + * @generated + */ + public EAttribute getEXmlElement_Required() + { + return (EAttribute)eXmlElementEClass.getEStructuralFeatures().get(4); + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElement#isXmlId Xml Id}'. + * + * + * @return the meta object for the attribute 'Xml Id'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElement#isXmlId() + * @see #getEXmlElement() + * @generated + */ + public EAttribute getEXmlElement_XmlId() + { + return (EAttribute)eXmlElementEClass.getEStructuralFeatures().get(5); + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElement#isXmlIdRef Xml Id Ref}'. + * + * + * @return the meta object for the attribute 'Xml Id Ref'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElement#isXmlIdRef() + * @see #getEXmlElement() + * @generated + */ + public EAttribute getEXmlElement_XmlIdRef() + { + return (EAttribute)eXmlElementEClass.getEStructuralFeatures().get(6); + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElement#isXmlKey Xml Key}'. + * + * + * @return the meta object for the attribute 'Xml Key'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElement#isXmlKey() + * @see #getEXmlElement() + * @generated + */ + public EAttribute getEXmlElement_XmlKey() + { + return (EAttribute)eXmlElementEClass.getEStructuralFeatures().get(7); + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElement#isXmlList Xml List}'. + * + * + * @return the meta object for the attribute 'Xml List'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElement#isXmlList() + * @see #getEXmlElement() + * @generated + */ + public EAttribute getEXmlElement_XmlList() + { + return (EAttribute)eXmlElementEClass.getEStructuralFeatures().get(8); + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElement#isXmlInlineBinaryData Xml Inline Binary Data}'. + * + * + * @return the meta object for the attribute 'Xml Inline Binary Data'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElement#isXmlInlineBinaryData() + * @see #getEXmlElement() + * @generated + */ + public EAttribute getEXmlElement_XmlInlineBinaryData() + { + return (EAttribute)eXmlElementEClass.getEStructuralFeatures().get(9); + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElement#isXmlAttachmentRef Xml Attachment Ref}'. + * + * + * @return the meta object for the attribute 'Xml Attachment Ref'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElement#isXmlAttachmentRef() + * @see #getEXmlElement() + * @generated + */ + public EAttribute getEXmlElement_XmlAttachmentRef() + { + return (EAttribute)eXmlElementEClass.getEStructuralFeatures().get(10); + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElement#getXmlMimeType Xml Mime Type}'. + * + * + * @return the meta object for the attribute 'Xml Mime Type'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElement#getXmlMimeType() + * @see #getEXmlElement() + * @generated + */ + public EAttribute getEXmlElement_XmlMimeType() + { + return (EAttribute)eXmlElementEClass.getEStructuralFeatures().get(11); + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElement#isCdata Cdata}'. + * + * + * @return the meta object for the attribute 'Cdata'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElement#isCdata() + * @see #getEXmlElement() + * @generated + */ + public EAttribute getEXmlElement_Cdata() + { + return (EAttribute)eXmlElementEClass.getEStructuralFeatures().get(12); + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElement#getXmlPath Xml Path}'. + * + * + * @return the meta object for the attribute 'Xml Path'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElement#getXmlPath() + * @see #getEXmlElement() + * @generated + */ + public EAttribute getEXmlElement_XmlPath() + { + return (EAttribute)eXmlElementEClass.getEStructuralFeatures().get(13); + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElement#isXmlLocation Xml Location}'. + * + * + * @return the meta object for the attribute 'Xml Location'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElement#isXmlLocation() + * @see #getEXmlElement() + * @generated + */ + public EAttribute getEXmlElement_XmlLocation() + { + return (EAttribute)eXmlElementEClass.getEStructuralFeatures().get(14); + } + + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElement#getXmlAbstractNullPolicy Xml Abstract Null Policy}'. + * + * + * @return the meta object for the containment reference 'Xml Abstract Null Policy'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElement#getXmlAbstractNullPolicy() + * @see #getEXmlElement() + * @generated + */ + public EReference getEXmlElement_XmlAbstractNullPolicy() + { + return (EReference)eXmlElementEClass.getEStructuralFeatures().get(15); + } + + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElement#getXmlElementWrapper Xml Element Wrapper}'. + * + * + * @return the meta object for the containment reference 'Xml Element Wrapper'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElement#getXmlElementWrapper() + * @see #getEXmlElement() + * @generated + */ + public EReference getEXmlElement_XmlElementWrapper() + { + return (EReference)eXmlElementEClass.getEStructuralFeatures().get(16); + } + + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElement#getXmlMap Xml Map}'. + * + * + * @return the meta object for the containment reference 'Xml Map'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElement#getXmlMap() + * @see #getEXmlElement() + * @generated + */ + public EReference getEXmlElement_XmlMap() + { + return (EReference)eXmlElementEClass.getEStructuralFeatures().get(17); + } + + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElement#getXmlSchemaType Xml Schema Type}'. + * + * + * @return the meta object for the containment reference 'Xml Schema Type'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElement#getXmlSchemaType() + * @see #getEXmlElement() + * @generated + */ + public EReference getEXmlElement_XmlSchemaType() + { + return (EReference)eXmlElementEClass.getEStructuralFeatures().get(18); + } + + + /** + * Returns the meta object for class '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementDecl EXml Element Decl}'. + * + * + * @return the meta object for class 'EXml Element Decl'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementDecl + * @generated + */ + public EClass getEXmlElementDecl() + { + return eXmlElementDeclEClass; + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementDecl#getJavaMethod Java Method}'. + * + * + * @return the meta object for the attribute 'Java Method'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementDecl#getJavaMethod() + * @see #getEXmlElementDecl() + * @generated + */ + public EAttribute getEXmlElementDecl_JavaMethod() + { + return (EAttribute)eXmlElementDeclEClass.getEStructuralFeatures().get(0); + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementDecl#getName Name}'. + * + * + * @return the meta object for the attribute 'Name'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementDecl#getName() + * @see #getEXmlElementDecl() + * @generated + */ + public EAttribute getEXmlElementDecl_Name() + { + return (EAttribute)eXmlElementDeclEClass.getEStructuralFeatures().get(1); + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementDecl#getNamespace Namespace}'. + * + * + * @return the meta object for the attribute 'Namespace'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementDecl#getNamespace() + * @see #getEXmlElementDecl() + * @generated + */ + public EAttribute getEXmlElementDecl_Namespace() + { + return (EAttribute)eXmlElementDeclEClass.getEStructuralFeatures().get(2); + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementDecl#getDefaultValue Default Value}'. + * + * + * @return the meta object for the attribute 'Default Value'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementDecl#getDefaultValue() + * @see #getEXmlElementDecl() + * @generated + */ + public EAttribute getEXmlElementDecl_DefaultValue() + { + return (EAttribute)eXmlElementDeclEClass.getEStructuralFeatures().get(3); + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementDecl#getScope Scope}'. + * + * + * @return the meta object for the attribute 'Scope'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementDecl#getScope() + * @see #getEXmlElementDecl() + * @generated + */ + public EAttribute getEXmlElementDecl_Scope() + { + return (EAttribute)eXmlElementDeclEClass.getEStructuralFeatures().get(4); + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementDecl#getSubstitutionHeadName Substitution Head Name}'. + * + * + * @return the meta object for the attribute 'Substitution Head Name'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementDecl#getSubstitutionHeadName() + * @see #getEXmlElementDecl() + * @generated + */ + public EAttribute getEXmlElementDecl_SubstitutionHeadName() + { + return (EAttribute)eXmlElementDeclEClass.getEStructuralFeatures().get(5); + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementDecl#getSubstitutionHeadNamespace Substitution Head Namespace}'. + * + * + * @return the meta object for the attribute 'Substitution Head Namespace'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementDecl#getSubstitutionHeadNamespace() + * @see #getEXmlElementDecl() + * @generated + */ + public EAttribute getEXmlElementDecl_SubstitutionHeadNamespace() + { + return (EAttribute)eXmlElementDeclEClass.getEStructuralFeatures().get(6); + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementDecl#getType Type}'. + * + * + * @return the meta object for the attribute 'Type'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementDecl#getType() + * @see #getEXmlElementDecl() + * @generated + */ + public EAttribute getEXmlElementDecl_Type() + { + return (EAttribute)eXmlElementDeclEClass.getEStructuralFeatures().get(7); + } + + + /** + * Returns the meta object for class '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementRef EXml Element Ref}'. + * + * + * @return the meta object for class 'EXml Element Ref'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementRef + * @generated + */ + public EClass getEXmlElementRef() + { + return eXmlElementRefEClass; + } + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementRef#getName Name}'. + * + * + * @return the meta object for the attribute 'Name'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementRef#getName() + * @see #getEXmlElementRef() + * @generated + */ + public EAttribute getEXmlElementRef_Name() + { + return (EAttribute)eXmlElementRefEClass.getEStructuralFeatures().get(0); + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementRef#getNamespace Namespace}'. + * + * + * @return the meta object for the attribute 'Namespace'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementRef#getNamespace() + * @see #getEXmlElementRef() + * @generated + */ + public EAttribute getEXmlElementRef_Namespace() + { + return (EAttribute)eXmlElementRefEClass.getEStructuralFeatures().get(1); + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementRef#isXmlMixed Xml Mixed}'. + * + * + * @return the meta object for the attribute 'Xml Mixed'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementRef#isXmlMixed() + * @see #getEXmlElementRef() + * @generated + */ + public EAttribute getEXmlElementRef_XmlMixed() + { + return (EAttribute)eXmlElementRefEClass.getEStructuralFeatures().get(2); + } + + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementRef#getXmlElementWrapper Xml Element Wrapper}'. + * + * + * @return the meta object for the containment reference 'Xml Element Wrapper'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementRef#getXmlElementWrapper() + * @see #getEXmlElementRef() + * @generated + */ + public EReference getEXmlElementRef_XmlElementWrapper() + { + return (EReference)eXmlElementRefEClass.getEStructuralFeatures().get(3); + } + + + /** + * Returns the meta object for class '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementRefs EXml Element Refs}'. + * + * + * @return the meta object for class 'EXml Element Refs'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementRefs + * @generated + */ + public EClass getEXmlElementRefs() + { + return eXmlElementRefsEClass; + } + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementRefs#isXmlMixed Xml Mixed}'. + * + * + * @return the meta object for the attribute 'Xml Mixed'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementRefs#isXmlMixed() + * @see #getEXmlElementRefs() + * @generated + */ + public EAttribute getEXmlElementRefs_XmlMixed() + { + return (EAttribute)eXmlElementRefsEClass.getEStructuralFeatures().get(0); + } + + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementRefs#getXmlElementRefs Xml Element Refs}'. + * + * + * @return the meta object for the containment reference list 'Xml Element Refs'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementRefs#getXmlElementRefs() + * @see #getEXmlElementRefs() + * @generated + */ + public EReference getEXmlElementRefs_XmlElementRefs() + { + return (EReference)eXmlElementRefsEClass.getEStructuralFeatures().get(1); + } + + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementRefs#getXmlElementWrapper Xml Element Wrapper}'. + * + * + * @return the meta object for the containment reference 'Xml Element Wrapper'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementRefs#getXmlElementWrapper() + * @see #getEXmlElementRefs() + * @generated + */ + public EReference getEXmlElementRefs_XmlElementWrapper() + { + return (EReference)eXmlElementRefsEClass.getEStructuralFeatures().get(2); + } + + + /** + * Returns the meta object for class '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElements EXml Elements}'. + * + * + * @return the meta object for class 'EXml Elements'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElements + * @generated + */ + public EClass getEXmlElements() + { + return eXmlElementsEClass; + } + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElements#isXmlIdRef Xml Id Ref}'. + * + * + * @return the meta object for the attribute 'Xml Id Ref'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElements#isXmlIdRef() + * @see #getEXmlElements() + * @generated + */ + public EAttribute getEXmlElements_XmlIdRef() + { + return (EAttribute)eXmlElementsEClass.getEStructuralFeatures().get(0); + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElements#isXmlList Xml List}'. + * + * + * @return the meta object for the attribute 'Xml List'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElements#isXmlList() + * @see #getEXmlElements() + * @generated + */ + public EAttribute getEXmlElements_XmlList() + { + return (EAttribute)eXmlElementsEClass.getEStructuralFeatures().get(1); + } + + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElements#getXmlElements Xml Elements}'. + * + * + * @return the meta object for the containment reference list 'Xml Elements'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElements#getXmlElements() + * @see #getEXmlElements() + * @generated + */ + public EReference getEXmlElements_XmlElements() + { + return (EReference)eXmlElementsEClass.getEStructuralFeatures().get(2); + } + + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElements#getXmlElementWrapper Xml Element Wrapper}'. + * + * + * @return the meta object for the containment reference 'Xml Element Wrapper'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElements#getXmlElementWrapper() + * @see #getEXmlElements() + * @generated + */ + public EReference getEXmlElements_XmlElementWrapper() + { + return (EReference)eXmlElementsEClass.getEStructuralFeatures().get(3); + } + + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElements#getXmlJoinNodes Xml Join Nodes}'. + * + * + * @return the meta object for the containment reference list 'Xml Join Nodes'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElements#getXmlJoinNodes() + * @see #getEXmlElements() + * @generated + */ + public EReference getEXmlElements_XmlJoinNodes() + { + return (EReference)eXmlElementsEClass.getEStructuralFeatures().get(4); + } + + + /** + * Returns the meta object for class '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementWrapper EXml Element Wrapper}'. + * + * + * @return the meta object for class 'EXml Element Wrapper'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementWrapper + * @generated + */ + public EClass getEXmlElementWrapper() + { + return eXmlElementWrapperEClass; + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementWrapper#getName Name}'. + * + * + * @return the meta object for the attribute 'Name'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementWrapper#getName() + * @see #getEXmlElementWrapper() + * @generated + */ + public EAttribute getEXmlElementWrapper_Name() + { + return (EAttribute)eXmlElementWrapperEClass.getEStructuralFeatures().get(0); + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementWrapper#getNamespace Namespace}'. + * + * + * @return the meta object for the attribute 'Namespace'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementWrapper#getNamespace() + * @see #getEXmlElementWrapper() + * @generated + */ + public EAttribute getEXmlElementWrapper_Namespace() + { + return (EAttribute)eXmlElementWrapperEClass.getEStructuralFeatures().get(1); + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementWrapper#isNillable Nillable}'. + * + * + * @return the meta object for the attribute 'Nillable'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementWrapper#isNillable() + * @see #getEXmlElementWrapper() + * @generated + */ + public EAttribute getEXmlElementWrapper_Nillable() + { + return (EAttribute)eXmlElementWrapperEClass.getEStructuralFeatures().get(2); + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementWrapper#isRequired Required}'. + * + * + * @return the meta object for the attribute 'Required'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementWrapper#isRequired() + * @see #getEXmlElementWrapper() + * @generated + */ + public EAttribute getEXmlElementWrapper_Required() + { + return (EAttribute)eXmlElementWrapperEClass.getEStructuralFeatures().get(3); + } + + + /** + * Returns the meta object for class '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlEnum EXml Enum}'. + * + * + * @return the meta object for class 'EXml Enum'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlEnum + * @generated + */ + public EClass getEXmlEnum() + { + return eXmlEnumEClass; + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlEnum#getJavaEnum Java Enum}'. + * + * + * @return the meta object for the attribute 'Java Enum'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlEnum#getJavaEnum() + * @see #getEXmlEnum() + * @generated + */ + public EAttribute getEXmlEnum_JavaEnum() + { + return (EAttribute)eXmlEnumEClass.getEStructuralFeatures().get(0); + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlEnum#getValue Value}'. + * + * + * @return the meta object for the attribute 'Value'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlEnum#getValue() + * @see #getEXmlEnum() + * @generated + */ + public EAttribute getEXmlEnum_Value() + { + return (EAttribute)eXmlEnumEClass.getEStructuralFeatures().get(1); + } + + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlEnum#getXmlEnumValues Xml Enum Values}'. + * + * + * @return the meta object for the containment reference list 'Xml Enum Values'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlEnum#getXmlEnumValues() + * @see #getEXmlEnum() + * @generated + */ + public EReference getEXmlEnum_XmlEnumValues() + { + return (EReference)eXmlEnumEClass.getEStructuralFeatures().get(2); + } + + + /** + * Returns the meta object for class '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlEnumValue EXml Enum Value}'. + * + * + * @return the meta object for class 'EXml Enum Value'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlEnumValue + * @generated + */ + public EClass getEXmlEnumValue() + { + return eXmlEnumValueEClass; + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlEnumValue#getJavaEnumValue Java Enum Value}'. + * + * + * @return the meta object for the attribute 'Java Enum Value'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlEnumValue#getJavaEnumValue() + * @see #getEXmlEnumValue() + * @generated + */ + public EAttribute getEXmlEnumValue_JavaEnumValue() + { + return (EAttribute)eXmlEnumValueEClass.getEStructuralFeatures().get(0); + } + + + /** + * Returns the meta object for class '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlInverseReference EXml Inverse Reference}'. + * + * + * @return the meta object for class 'EXml Inverse Reference'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlInverseReference + * @generated + */ + public EClass getEXmlInverseReference() + { + return eXmlInverseReferenceEClass; + } + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlInverseReference#getMappedBy Mapped By}'. + * + * + * @return the meta object for the attribute 'Mapped By'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlInverseReference#getMappedBy() + * @see #getEXmlInverseReference() + * @generated + */ + public EAttribute getEXmlInverseReference_MappedBy() + { + return (EAttribute)eXmlInverseReferenceEClass.getEStructuralFeatures().get(0); + } + + + /** + * Returns the meta object for class '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlIsSetNullPolicy EXml Is Set Null Policy}'. + * + * + * @return the meta object for class 'EXml Is Set Null Policy'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlIsSetNullPolicy + * @generated + */ + public EClass getEXmlIsSetNullPolicy() + { + return eXmlIsSetNullPolicyEClass; + } + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlIsSetNullPolicy#getIsSetMethodName Is Set Method Name}'. + * + * + * @return the meta object for the attribute 'Is Set Method Name'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlIsSetNullPolicy#getIsSetMethodName() + * @see #getEXmlIsSetNullPolicy() + * @generated + */ + public EAttribute getEXmlIsSetNullPolicy_IsSetMethodName() + { + return (EAttribute)eXmlIsSetNullPolicyEClass.getEStructuralFeatures().get(0); + } + + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlIsSetNullPolicy#getXmlIsSetParameters Xml Is Set Parameters}'. + * + * + * @return the meta object for the containment reference list 'Xml Is Set Parameters'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlIsSetNullPolicy#getXmlIsSetParameters() + * @see #getEXmlIsSetNullPolicy() + * @generated + */ + public EReference getEXmlIsSetNullPolicy_XmlIsSetParameters() + { + return (EReference)eXmlIsSetNullPolicyEClass.getEStructuralFeatures().get(1); + } + + + /** + * Returns the meta object for class '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlIsSetParameter EXml Is Set Parameter}'. + * + * + * @return the meta object for class 'EXml Is Set Parameter'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlIsSetParameter + * @generated + */ + public EClass getEXmlIsSetParameter() + { + return eXmlIsSetParameterEClass; + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlIsSetParameter#getValue Value}'. + * + * + * @return the meta object for the attribute 'Value'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlIsSetParameter#getValue() + * @see #getEXmlIsSetParameter() + * @generated + */ + public EAttribute getEXmlIsSetParameter_Value() + { + return (EAttribute)eXmlIsSetParameterEClass.getEStructuralFeatures().get(0); + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlIsSetParameter#getType Type}'. + * + * + * @return the meta object for the attribute 'Type'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlIsSetParameter#getType() + * @see #getEXmlIsSetParameter() + * @generated + */ + public EAttribute getEXmlIsSetParameter_Type() + { + return (EAttribute)eXmlIsSetParameterEClass.getEStructuralFeatures().get(1); + } + + + /** + * Returns the meta object for class '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlJavaTypeAdapter EXml Java Type Adapter}'. + * + * + * @return the meta object for class 'EXml Java Type Adapter'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlJavaTypeAdapter + * @generated + */ + public EClass getEXmlJavaTypeAdapter() + { + return eXmlJavaTypeAdapterEClass; + } + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlJavaTypeAdapter#getValue Value}'. + * + * + * @return the meta object for the attribute 'Value'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlJavaTypeAdapter#getValue() + * @see #getEXmlJavaTypeAdapter() + * @generated + */ + public EAttribute getEXmlJavaTypeAdapter_Value() + { + return (EAttribute)eXmlJavaTypeAdapterEClass.getEStructuralFeatures().get(0); + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlJavaTypeAdapter#getType Type}'. + * + * + * @return the meta object for the attribute 'Type'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlJavaTypeAdapter#getType() + * @see #getEXmlJavaTypeAdapter() + * @generated + */ + public EAttribute getEXmlJavaTypeAdapter_Type() + { + return (EAttribute)eXmlJavaTypeAdapterEClass.getEStructuralFeatures().get(1); + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlJavaTypeAdapter#getValueType Value Type}'. + * + * + * @return the meta object for the attribute 'Value Type'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlJavaTypeAdapter#getValueType() + * @see #getEXmlJavaTypeAdapter() + * @generated + */ + public EAttribute getEXmlJavaTypeAdapter_ValueType() + { + return (EAttribute)eXmlJavaTypeAdapterEClass.getEStructuralFeatures().get(2); + } + + + /** + * Returns the meta object for class '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlJoinNode EXml Join Node}'. + * + * + * @return the meta object for class 'EXml Join Node'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlJoinNode + * @generated + */ + public EClass getEXmlJoinNode() + { + return eXmlJoinNodeEClass; + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlJoinNode#getXmlPath Xml Path}'. + * + * + * @return the meta object for the attribute 'Xml Path'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlJoinNode#getXmlPath() + * @see #getEXmlJoinNode() + * @generated + */ + public EAttribute getEXmlJoinNode_XmlPath() + { + return (EAttribute)eXmlJoinNodeEClass.getEStructuralFeatures().get(0); + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlJoinNode#getReferencedXmlPath Referenced Xml Path}'. + * + * + * @return the meta object for the attribute 'Referenced Xml Path'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlJoinNode#getReferencedXmlPath() + * @see #getEXmlJoinNode() + * @generated + */ + public EAttribute getEXmlJoinNode_ReferencedXmlPath() + { + return (EAttribute)eXmlJoinNodeEClass.getEStructuralFeatures().get(1); + } + + + /** + * Returns the meta object for class '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlJoinNodes EXml Join Nodes}'. + * + * + * @return the meta object for class 'EXml Join Nodes'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlJoinNodes + * @generated + */ + public EClass getEXmlJoinNodes() + { + return eXmlJoinNodesEClass; + } + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlJoinNodes#getXmlJoinNodes Xml Join Nodes}'. + * + * + * @return the meta object for the containment reference list 'Xml Join Nodes'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlJoinNodes#getXmlJoinNodes() + * @see #getEXmlJoinNodes() + * @generated + */ + public EReference getEXmlJoinNodes_XmlJoinNodes() + { + return (EReference)eXmlJoinNodesEClass.getEStructuralFeatures().get(0); + } + + + /** + * Returns the meta object for class '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlMap EXml Map}'. + * + * + * @return the meta object for class 'EXml Map'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlMap + * @generated + */ + public EClass getEXmlMap() + { + return eXmlMapEClass; + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlMap#getKey Key}'. + * + * + * @return the meta object for the attribute 'Key'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlMap#getKey() + * @see #getEXmlMap() + * @generated + */ + public EAttribute getEXmlMap_Key() + { + return (EAttribute)eXmlMapEClass.getEStructuralFeatures().get(0); + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlMap#getValue Value}'. + * + * + * @return the meta object for the attribute 'Value'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlMap#getValue() + * @see #getEXmlMap() + * @generated + */ + public EAttribute getEXmlMap_Value() + { + return (EAttribute)eXmlMapEClass.getEStructuralFeatures().get(1); + } + + + /** + * Returns the meta object for class '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlNullPolicy EXml Null Policy}'. + * + * + * @return the meta object for class 'EXml Null Policy'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlNullPolicy + * @generated + */ + public EClass getEXmlNullPolicy() + { + return eXmlNullPolicyEClass; + } + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlNullPolicy#isIsSetPerformedForAbsentNode Is Set Performed For Absent Node}'. + * + * + * @return the meta object for the attribute 'Is Set Performed For Absent Node'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlNullPolicy#isIsSetPerformedForAbsentNode() + * @see #getEXmlNullPolicy() + * @generated + */ + public EAttribute getEXmlNullPolicy_IsSetPerformedForAbsentNode() + { + return (EAttribute)eXmlNullPolicyEClass.getEStructuralFeatures().get(0); + } + + + /** + * Returns the meta object for class '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlNs EXml Ns}'. + * + * + * @return the meta object for class 'EXml Ns'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlNs + * @generated + */ + public EClass getEXmlNs() + { + return eXmlNsEClass; + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlNs#getNamespaceUri Namespace Uri}'. + * + * + * @return the meta object for the attribute 'Namespace Uri'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlNs#getNamespaceUri() + * @see #getEXmlNs() + * @generated + */ + public EAttribute getEXmlNs_NamespaceUri() + { + return (EAttribute)eXmlNsEClass.getEStructuralFeatures().get(0); + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlNs#getPrefix Prefix}'. + * + * + * @return the meta object for the attribute 'Prefix'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlNs#getPrefix() + * @see #getEXmlNs() + * @generated + */ + public EAttribute getEXmlNs_Prefix() + { + return (EAttribute)eXmlNsEClass.getEStructuralFeatures().get(1); + } + + + /** + * Returns the meta object for class '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlProperty EXml Property}'. + * + * + * @return the meta object for class 'EXml Property'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlProperty + * @generated + */ + public EClass getEXmlProperty() + { + return eXmlPropertyEClass; + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlProperty#getName Name}'. + * + * + * @return the meta object for the attribute 'Name'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlProperty#getName() + * @see #getEXmlProperty() + * @generated + */ + public EAttribute getEXmlProperty_Name() + { + return (EAttribute)eXmlPropertyEClass.getEStructuralFeatures().get(0); + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlProperty#getValue Value}'. + * + * + * @return the meta object for the attribute 'Value'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlProperty#getValue() + * @see #getEXmlProperty() + * @generated + */ + public EAttribute getEXmlProperty_Value() + { + return (EAttribute)eXmlPropertyEClass.getEStructuralFeatures().get(1); + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlProperty#getValueType Value Type}'. + * + * + * @return the meta object for the attribute 'Value Type'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlProperty#getValueType() + * @see #getEXmlProperty() + * @generated + */ + public EAttribute getEXmlProperty_ValueType() + { + return (EAttribute)eXmlPropertyEClass.getEStructuralFeatures().get(2); + } + + + /** + * Returns the meta object for class '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlReadTransformer EXml Read Transformer}'. + * + * + * @return the meta object for class 'EXml Read Transformer'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlReadTransformer + * @generated + */ + public EClass getEXmlReadTransformer() + { + return eXmlReadTransformerEClass; + } + + + /** + * Returns the meta object for class '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlRegistry EXml Registry}'. + * + * + * @return the meta object for class 'EXml Registry'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlRegistry + * @generated + */ + public EClass getEXmlRegistry() + { + return eXmlRegistryEClass; + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlRegistry#getName Name}'. + * + * + * @return the meta object for the attribute 'Name'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlRegistry#getName() + * @see #getEXmlRegistry() + * @generated + */ + public EAttribute getEXmlRegistry_Name() + { + return (EAttribute)eXmlRegistryEClass.getEStructuralFeatures().get(0); + } + + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlRegistry#getXmlElementDecls Xml Element Decls}'. + * + * + * @return the meta object for the containment reference list 'Xml Element Decls'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlRegistry#getXmlElementDecls() + * @see #getEXmlRegistry() + * @generated + */ + public EReference getEXmlRegistry_XmlElementDecls() + { + return (EReference)eXmlRegistryEClass.getEStructuralFeatures().get(1); + } + + + /** + * Returns the meta object for class '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlRootElement EXml Root Element}'. + * + * + * @return the meta object for class 'EXml Root Element'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlRootElement + * @generated + */ + public EClass getEXmlRootElement() + { + return eXmlRootElementEClass; + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlRootElement#getName Name}'. + * + * + * @return the meta object for the attribute 'Name'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlRootElement#getName() + * @see #getEXmlRootElement() + * @generated + */ + public EAttribute getEXmlRootElement_Name() + { + return (EAttribute)eXmlRootElementEClass.getEStructuralFeatures().get(0); + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlRootElement#getNamespace Namespace}'. + * + * + * @return the meta object for the attribute 'Namespace'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlRootElement#getNamespace() + * @see #getEXmlRootElement() + * @generated + */ + public EAttribute getEXmlRootElement_Namespace() + { + return (EAttribute)eXmlRootElementEClass.getEStructuralFeatures().get(1); + } + + + /** + * Returns the meta object for class '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlSchema EXml Schema}'. + * + * + * @return the meta object for class 'EXml Schema'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlSchema + * @generated + */ + public EClass getEXmlSchema() + { + return eXmlSchemaEClass; + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlSchema#getAttributeFormDefault Attribute Form Default}'. + * + * + * @return the meta object for the attribute 'Attribute Form Default'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlSchema#getAttributeFormDefault() + * @see #getEXmlSchema() + * @generated + */ + public EAttribute getEXmlSchema_AttributeFormDefault() + { + return (EAttribute)eXmlSchemaEClass.getEStructuralFeatures().get(0); + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlSchema#getElementFormDefault Element Form Default}'. + * + * + * @return the meta object for the attribute 'Element Form Default'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlSchema#getElementFormDefault() + * @see #getEXmlSchema() + * @generated + */ + public EAttribute getEXmlSchema_ElementFormDefault() + { + return (EAttribute)eXmlSchemaEClass.getEStructuralFeatures().get(1); + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlSchema#getLocation Location}'. + * + * + * @return the meta object for the attribute 'Location'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlSchema#getLocation() + * @see #getEXmlSchema() + * @generated + */ + public EAttribute getEXmlSchema_Location() + { + return (EAttribute)eXmlSchemaEClass.getEStructuralFeatures().get(2); + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlSchema#getNamespace Namespace}'. + * + * + * @return the meta object for the attribute 'Namespace'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlSchema#getNamespace() + * @see #getEXmlSchema() + * @generated + */ + public EAttribute getEXmlSchema_Namespace() + { + return (EAttribute)eXmlSchemaEClass.getEStructuralFeatures().get(3); + } + + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlSchema#getXmlns Xmlns}'. + * + * + * @return the meta object for the containment reference list 'Xmlns'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlSchema#getXmlns() + * @see #getEXmlSchema() + * @generated + */ + public EReference getEXmlSchema_Xmlns() + { + return (EReference)eXmlSchemaEClass.getEStructuralFeatures().get(4); + } + + + /** + * Returns the meta object for class '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlSchemaType EXml Schema Type}'. + * + * + * @return the meta object for class 'EXml Schema Type'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlSchemaType + * @generated + */ + public EClass getEXmlSchemaType() + { + return eXmlSchemaTypeEClass; + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlSchemaType#getName Name}'. + * + * + * @return the meta object for the attribute 'Name'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlSchemaType#getName() + * @see #getEXmlSchemaType() + * @generated + */ + public EAttribute getEXmlSchemaType_Name() + { + return (EAttribute)eXmlSchemaTypeEClass.getEStructuralFeatures().get(0); + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlSchemaType#getNamespace Namespace}'. + * + * + * @return the meta object for the attribute 'Namespace'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlSchemaType#getNamespace() + * @see #getEXmlSchemaType() + * @generated + */ + public EAttribute getEXmlSchemaType_Namespace() + { + return (EAttribute)eXmlSchemaTypeEClass.getEStructuralFeatures().get(1); + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlSchemaType#getType Type}'. + * + * + * @return the meta object for the attribute 'Type'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlSchemaType#getType() + * @see #getEXmlSchemaType() + * @generated + */ + public EAttribute getEXmlSchemaType_Type() + { + return (EAttribute)eXmlSchemaTypeEClass.getEStructuralFeatures().get(2); + } + + + /** + * Returns the meta object for class '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlTransformation EXml Transformation}'. + * + * + * @return the meta object for class 'EXml Transformation'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlTransformation + * @generated + */ + public EClass getEXmlTransformation() + { + return eXmlTransformationEClass; + } + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlTransformation#isOptional Optional}'. + * + * + * @return the meta object for the attribute 'Optional'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlTransformation#isOptional() + * @see #getEXmlTransformation() + * @generated + */ + public EAttribute getEXmlTransformation_Optional() + { + return (EAttribute)eXmlTransformationEClass.getEStructuralFeatures().get(0); + } + + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlTransformation#getXmlReadTransformer Xml Read Transformer}'. + * + * + * @return the meta object for the containment reference 'Xml Read Transformer'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlTransformation#getXmlReadTransformer() + * @see #getEXmlTransformation() + * @generated + */ + public EReference getEXmlTransformation_XmlReadTransformer() + { + return (EReference)eXmlTransformationEClass.getEStructuralFeatures().get(1); + } + + + /** + * Returns the meta object for the containment reference list '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlTransformation#getXmlWriteTransformers Xml Write Transformers}'. + * + * + * @return the meta object for the containment reference list 'Xml Write Transformers'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlTransformation#getXmlWriteTransformers() + * @see #getEXmlTransformation() + * @generated + */ + public EReference getEXmlTransformation_XmlWriteTransformers() + { + return (EReference)eXmlTransformationEClass.getEStructuralFeatures().get(2); + } + + + /** + * Returns the meta object for class '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlTransient EXml Transient}'. + * + * + * @return the meta object for class 'EXml Transient'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlTransient + * @generated + */ + public EClass getEXmlTransient() + { + return eXmlTransientEClass; + } + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlTransient#isXmlLocation Xml Location}'. + * + * + * @return the meta object for the attribute 'Xml Location'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlTransient#isXmlLocation() + * @see #getEXmlTransient() + * @generated + */ + public EAttribute getEXmlTransient_XmlLocation() + { + return (EAttribute)eXmlTransientEClass.getEStructuralFeatures().get(0); + } + + + /** + * Returns the meta object for class '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlType EXml Type}'. + * + * + * @return the meta object for class 'EXml Type'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlType + * @generated + */ + public EClass getEXmlType() + { + return eXmlTypeEClass; + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlType#getName Name}'. + * + * + * @return the meta object for the attribute 'Name'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlType#getName() + * @see #getEXmlType() + * @generated + */ + public EAttribute getEXmlType_Name() + { + return (EAttribute)eXmlTypeEClass.getEStructuralFeatures().get(0); + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlType#getNamespace Namespace}'. + * + * + * @return the meta object for the attribute 'Namespace'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlType#getNamespace() + * @see #getEXmlType() + * @generated + */ + public EAttribute getEXmlType_Namespace() + { + return (EAttribute)eXmlTypeEClass.getEStructuralFeatures().get(1); + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlType#getFactoryClass Factory Class}'. + * + * + * @return the meta object for the attribute 'Factory Class'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlType#getFactoryClass() + * @see #getEXmlType() + * @generated + */ + public EAttribute getEXmlType_FactoryClass() + { + return (EAttribute)eXmlTypeEClass.getEStructuralFeatures().get(2); + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlType#getFactoryMethod Factory Method}'. + * + * + * @return the meta object for the attribute 'Factory Method'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlType#getFactoryMethod() + * @see #getEXmlType() + * @generated + */ + public EAttribute getEXmlType_FactoryMethod() + { + return (EAttribute)eXmlTypeEClass.getEStructuralFeatures().get(3); + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlType#getPropOrder Prop Order}'. + * + * + * @return the meta object for the attribute 'Prop Order'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlType#getPropOrder() + * @see #getEXmlType() + * @generated + */ + public EAttribute getEXmlType_PropOrder() + { + return (EAttribute)eXmlTypeEClass.getEStructuralFeatures().get(4); + } + + + /** + * Returns the meta object for class '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlValue EXml Value}'. + * + * + * @return the meta object for class 'EXml Value'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlValue + * @generated + */ + public EClass getEXmlValue() + { + return eXmlValueEClass; + } + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlValue#isCdata Cdata}'. + * + * + * @return the meta object for the attribute 'Cdata'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlValue#isCdata() + * @see #getEXmlValue() + * @generated + */ + public EAttribute getEXmlValue_Cdata() + { + return (EAttribute)eXmlValueEClass.getEStructuralFeatures().get(0); + } + + + /** + * Returns the meta object for the containment reference '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlValue#getXmlAbstractNullPolicy Xml Abstract Null Policy}'. + * + * + * @return the meta object for the containment reference 'Xml Abstract Null Policy'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlValue#getXmlAbstractNullPolicy() + * @see #getEXmlValue() + * @generated + */ + public EReference getEXmlValue_XmlAbstractNullPolicy() + { + return (EReference)eXmlValueEClass.getEStructuralFeatures().get(1); + } + + + /** + * Returns the meta object for class '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlVirtualAccessMethods EXml Virtual Access Methods}'. + * + * + * @return the meta object for class 'EXml Virtual Access Methods'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlVirtualAccessMethods + * @generated + */ + public EClass getEXmlVirtualAccessMethods() + { + return eXmlVirtualAccessMethodsEClass; + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlVirtualAccessMethods#getGetMethod Get Method}'. + * + * + * @return the meta object for the attribute 'Get Method'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlVirtualAccessMethods#getGetMethod() + * @see #getEXmlVirtualAccessMethods() + * @generated + */ + public EAttribute getEXmlVirtualAccessMethods_GetMethod() + { + return (EAttribute)eXmlVirtualAccessMethodsEClass.getEStructuralFeatures().get(0); + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlVirtualAccessMethods#getSetMethod Set Method}'. + * + * + * @return the meta object for the attribute 'Set Method'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlVirtualAccessMethods#getSetMethod() + * @see #getEXmlVirtualAccessMethods() + * @generated + */ + public EAttribute getEXmlVirtualAccessMethods_SetMethod() + { + return (EAttribute)eXmlVirtualAccessMethodsEClass.getEStructuralFeatures().get(1); + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlVirtualAccessMethods#getSchema Schema}'. + * + * + * @return the meta object for the attribute 'Schema'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlVirtualAccessMethods#getSchema() + * @see #getEXmlVirtualAccessMethods() + * @generated + */ + public EAttribute getEXmlVirtualAccessMethods_Schema() + { + return (EAttribute)eXmlVirtualAccessMethodsEClass.getEStructuralFeatures().get(2); + } + + + /** + * Returns the meta object for class '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlWriteTransformer EXml Write Transformer}'. + * + * + * @return the meta object for class 'EXml Write Transformer'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlWriteTransformer + * @generated + */ + public EClass getEXmlWriteTransformer() + { + return eXmlWriteTransformerEClass; + } + + + /** + * Returns the meta object for the attribute '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlWriteTransformer#getXmlPath Xml Path}'. + * + * + * @return the meta object for the attribute 'Xml Path'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlWriteTransformer#getXmlPath() + * @see #getEXmlWriteTransformer() + * @generated + */ + public EAttribute getEXmlWriteTransformer_XmlPath() + { + return (EAttribute)eXmlWriteTransformerEClass.getEStructuralFeatures().get(0); + } + + + /** + * Returns the meta object for enum '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAccessOrder EXml Access Order}'. + * + * + * @return the meta object for enum 'EXml Access Order'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAccessOrder + * @generated + */ + public EEnum getEXmlAccessOrder() + { + return eXmlAccessOrderEEnum; + } + + + /** + * Returns the meta object for enum '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAccessType EXml Access Type}'. + * + * + * @return the meta object for enum 'EXml Access Type'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAccessType + * @generated + */ + public EEnum getEXmlAccessType() + { + return eXmlAccessTypeEEnum; + } + + + /** + * Returns the meta object for enum '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlMarshalNullRepresentation EXml Marshal Null Representation}'. + * + * + * @return the meta object for enum 'EXml Marshal Null Representation'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlMarshalNullRepresentation + * @generated + */ + public EEnum getEXmlMarshalNullRepresentation() + { + return eXmlMarshalNullRepresentationEEnum; + } + + + /** + * Returns the meta object for enum '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlNsForm EXml Ns Form}'. + * + * + * @return the meta object for enum 'EXml Ns Form'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlNsForm + * @generated + */ + public EEnum getEXmlNsForm() + { + return eXmlNsFormEEnum; + } + + + /** + * Returns the meta object for enum '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlVirtualAccessMethodsSchema EXml Virtual Access Methods Schema}'. + * + * + * @return the meta object for enum 'EXml Virtual Access Methods Schema'. + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlVirtualAccessMethodsSchema + * @generated + */ + public EEnum getEXmlVirtualAccessMethodsSchema() + { + return eXmlVirtualAccessMethodsSchemaEEnum; + } + + + /** + * Returns the meta object for data type '{@link java.util.List EProp Order}'. + * + * + * @return the meta object for data type 'EProp Order'. + * @see java.util.List + * @model instanceClass="java.util.List" + * extendedMetaData="itemType='http://www.eclipse.org/emf/2003/XMLType#string'" + * @generated + */ + public EDataType getEPropOrder() + { + return ePropOrderEDataType; + } + + + /** + * Returns the meta object for data type '{@link java.util.List EXml See Also}'. + * + * + * @return the meta object for data type 'EXml See Also'. + * @see java.util.List + * @model instanceClass="java.util.List" + * extendedMetaData="itemType='http://www.eclipse.org/emf/2003/XMLType#string'" + * @generated + */ + public EDataType getEXmlSeeAlso() + { + return eXmlSeeAlsoEDataType; + } + + + /** + * Returns the factory that creates the instances of the model. + * + * + * @return the factory that creates the instances of the model. + * @generated + */ + public OxmFactory getOxmFactory() + { + return (OxmFactory)getEFactoryInstance(); + } + + /** + * + * + * @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. + * + * + * @generated + */ + public void createPackageContents() + { + if (isCreated) return; + isCreated = true; + + // Create classes and their features + eAbstractXmlNullPolicyEClass = createEClass(EABSTRACT_XML_NULL_POLICY); + createEAttribute(eAbstractXmlNullPolicyEClass, EABSTRACT_XML_NULL_POLICY__XSI_NIL_REPRESENTS_NULL); + createEAttribute(eAbstractXmlNullPolicyEClass, EABSTRACT_XML_NULL_POLICY__EMPTY_NODE_REPRESENTS_NULL); + createEAttribute(eAbstractXmlNullPolicyEClass, EABSTRACT_XML_NULL_POLICY__NULL_REPRESENTATION_FOR_XML); + + eAbstractXmlTransformerEClass = createEClass(EABSTRACT_XML_TRANSFORMER); + createEAttribute(eAbstractXmlTransformerEClass, EABSTRACT_XML_TRANSFORMER__METHOD); + createEAttribute(eAbstractXmlTransformerEClass, EABSTRACT_XML_TRANSFORMER__TRANSFORMER_CLASS); + + eAccessibleJavaAttributeEClass = createEClass(EACCESSIBLE_JAVA_ATTRIBUTE); + createEReference(eAccessibleJavaAttributeEClass, EACCESSIBLE_JAVA_ATTRIBUTE__XML_ACCESS_METHODS); + + eAdaptableJavaAttributeEClass = createEClass(EADAPTABLE_JAVA_ATTRIBUTE); + createEReference(eAdaptableJavaAttributeEClass, EADAPTABLE_JAVA_ATTRIBUTE__XML_JAVA_TYPE_ADAPTER); + + eContainerJavaAttributeEClass = createEClass(ECONTAINER_JAVA_ATTRIBUTE); + createEAttribute(eContainerJavaAttributeEClass, ECONTAINER_JAVA_ATTRIBUTE__CONTAINER_TYPE); + + eJavaAttributeEClass = createEClass(EJAVA_ATTRIBUTE); + createEAttribute(eJavaAttributeEClass, EJAVA_ATTRIBUTE__JAVA_ATTRIBUTE); + createEAttribute(eJavaAttributeEClass, EJAVA_ATTRIBUTE__XML_ACCESSOR_TYPE); + + eJavaTypeEClass = createEClass(EJAVA_TYPE); + createEAttribute(eJavaTypeEClass, EJAVA_TYPE__NAME); + createEAttribute(eJavaTypeEClass, EJAVA_TYPE__SUPER_TYPE); + createEAttribute(eJavaTypeEClass, EJAVA_TYPE__XML_ACCESSOR_ORDER); + createEAttribute(eJavaTypeEClass, EJAVA_TYPE__XML_ACCESSOR_TYPE); + createEAttribute(eJavaTypeEClass, EJAVA_TYPE__XML_CUSTOMIZER); + createEAttribute(eJavaTypeEClass, EJAVA_TYPE__XML_DISCRIMINATOR_NODE); + createEAttribute(eJavaTypeEClass, EJAVA_TYPE__XML_DISCRIMINATOR_VALUE); + createEAttribute(eJavaTypeEClass, EJAVA_TYPE__XML_INLINE_BINARY_DATA); + createEAttribute(eJavaTypeEClass, EJAVA_TYPE__XML_TRANSIENT); + createEAttribute(eJavaTypeEClass, EJAVA_TYPE__XML_NAME_TRANSFORMER); + createEReference(eJavaTypeEClass, EJAVA_TYPE__XML_TYPE); + createEReference(eJavaTypeEClass, EJAVA_TYPE__XML_ROOT_ELEMENT); + createEReference(eJavaTypeEClass, EJAVA_TYPE__XML_VIRTUAL_ACCESS_METHODS); + createEAttribute(eJavaTypeEClass, EJAVA_TYPE__XML_SEE_ALSO); + createEReference(eJavaTypeEClass, EJAVA_TYPE__XML_JAVA_TYPE_ADAPTER); + createEReference(eJavaTypeEClass, EJAVA_TYPE__XML_CLASS_EXTRACTOR); + createEReference(eJavaTypeEClass, EJAVA_TYPE__JAVA_ATTRIBUTES); + + ePropertyHolderEClass = createEClass(EPROPERTY_HOLDER); + createEReference(ePropertyHolderEClass, EPROPERTY_HOLDER__XML_PROPERTIES); + + eReadWriteJavaAttributeEClass = createEClass(EREAD_WRITE_JAVA_ATTRIBUTE); + createEAttribute(eReadWriteJavaAttributeEClass, EREAD_WRITE_JAVA_ATTRIBUTE__READ_ONLY); + createEAttribute(eReadWriteJavaAttributeEClass, EREAD_WRITE_JAVA_ATTRIBUTE__WRITE_ONLY); + + eTypedJavaAttributeEClass = createEClass(ETYPED_JAVA_ATTRIBUTE); + createEAttribute(eTypedJavaAttributeEClass, ETYPED_JAVA_ATTRIBUTE__TYPE); + + eXmlAccessMethodsEClass = createEClass(EXML_ACCESS_METHODS); + createEAttribute(eXmlAccessMethodsEClass, EXML_ACCESS_METHODS__GET_METHOD); + createEAttribute(eXmlAccessMethodsEClass, EXML_ACCESS_METHODS__SET_METHOD); + + eXmlAnyAttributeEClass = createEClass(EXML_ANY_ATTRIBUTE); + createEAttribute(eXmlAnyAttributeEClass, EXML_ANY_ATTRIBUTE__XML_PATH); + + eXmlAnyElementEClass = createEClass(EXML_ANY_ELEMENT); + createEAttribute(eXmlAnyElementEClass, EXML_ANY_ELEMENT__XML_MIXED); + createEAttribute(eXmlAnyElementEClass, EXML_ANY_ELEMENT__LAX); + createEAttribute(eXmlAnyElementEClass, EXML_ANY_ELEMENT__DOM_HANDLER); + createEAttribute(eXmlAnyElementEClass, EXML_ANY_ELEMENT__XML_PATH); + createEReference(eXmlAnyElementEClass, EXML_ANY_ELEMENT__XML_ELEMENT_REFS); + + eXmlAttributeEClass = createEClass(EXML_ATTRIBUTE); + createEAttribute(eXmlAttributeEClass, EXML_ATTRIBUTE__NAME); + createEAttribute(eXmlAttributeEClass, EXML_ATTRIBUTE__NAMESPACE); + createEAttribute(eXmlAttributeEClass, EXML_ATTRIBUTE__REQUIRED); + createEAttribute(eXmlAttributeEClass, EXML_ATTRIBUTE__XML_ID); + createEAttribute(eXmlAttributeEClass, EXML_ATTRIBUTE__XML_ID_REF); + createEAttribute(eXmlAttributeEClass, EXML_ATTRIBUTE__XML_KEY); + createEAttribute(eXmlAttributeEClass, EXML_ATTRIBUTE__XML_LIST); + createEAttribute(eXmlAttributeEClass, EXML_ATTRIBUTE__XML_INLINE_BINARY_DATA); + createEAttribute(eXmlAttributeEClass, EXML_ATTRIBUTE__XML_ATTACHMENT_REF); + createEAttribute(eXmlAttributeEClass, EXML_ATTRIBUTE__XML_MIME_TYPE); + createEAttribute(eXmlAttributeEClass, EXML_ATTRIBUTE__XML_PATH); + createEReference(eXmlAttributeEClass, EXML_ATTRIBUTE__XML_ABSTRACT_NULL_POLICY); + createEReference(eXmlAttributeEClass, EXML_ATTRIBUTE__XML_SCHEMA_TYPE); + + eXmlBindingsEClass = createEClass(EXML_BINDINGS); + createEAttribute(eXmlBindingsEClass, EXML_BINDINGS__XML_ACCESSOR_TYPE); + createEAttribute(eXmlBindingsEClass, EXML_BINDINGS__XML_ACCESSOR_ORDER); + createEAttribute(eXmlBindingsEClass, EXML_BINDINGS__XML_MAPPING_METADATA_COMPLETE); + createEAttribute(eXmlBindingsEClass, EXML_BINDINGS__PACKAGE_NAME); + createEAttribute(eXmlBindingsEClass, EXML_BINDINGS__XML_NAME_TRANSFORMER); + createEReference(eXmlBindingsEClass, EXML_BINDINGS__XML_SCHEMA); + createEReference(eXmlBindingsEClass, EXML_BINDINGS__XML_SCHEMA_TYPE); + createEReference(eXmlBindingsEClass, EXML_BINDINGS__XML_SCHEMA_TYPES); + createEReference(eXmlBindingsEClass, EXML_BINDINGS__XML_JAVA_TYPE_ADAPTERS); + createEReference(eXmlBindingsEClass, EXML_BINDINGS__XML_REGISTRIES); + createEReference(eXmlBindingsEClass, EXML_BINDINGS__XML_ENUMS); + createEReference(eXmlBindingsEClass, EXML_BINDINGS__JAVA_TYPES); + + eXmlClassExtractorEClass = createEClass(EXML_CLASS_EXTRACTOR); + createEAttribute(eXmlClassExtractorEClass, EXML_CLASS_EXTRACTOR__CLASS_NAME); + + eXmlElementEClass = createEClass(EXML_ELEMENT); + createEAttribute(eXmlElementEClass, EXML_ELEMENT__NAME); + createEAttribute(eXmlElementEClass, EXML_ELEMENT__NAMESPACE); + createEAttribute(eXmlElementEClass, EXML_ELEMENT__DEFAULT_VALUE); + createEAttribute(eXmlElementEClass, EXML_ELEMENT__NILLABLE); + createEAttribute(eXmlElementEClass, EXML_ELEMENT__REQUIRED); + createEAttribute(eXmlElementEClass, EXML_ELEMENT__XML_ID); + createEAttribute(eXmlElementEClass, EXML_ELEMENT__XML_ID_REF); + createEAttribute(eXmlElementEClass, EXML_ELEMENT__XML_KEY); + createEAttribute(eXmlElementEClass, EXML_ELEMENT__XML_LIST); + createEAttribute(eXmlElementEClass, EXML_ELEMENT__XML_INLINE_BINARY_DATA); + createEAttribute(eXmlElementEClass, EXML_ELEMENT__XML_ATTACHMENT_REF); + createEAttribute(eXmlElementEClass, EXML_ELEMENT__XML_MIME_TYPE); + createEAttribute(eXmlElementEClass, EXML_ELEMENT__CDATA); + createEAttribute(eXmlElementEClass, EXML_ELEMENT__XML_PATH); + createEAttribute(eXmlElementEClass, EXML_ELEMENT__XML_LOCATION); + createEReference(eXmlElementEClass, EXML_ELEMENT__XML_ABSTRACT_NULL_POLICY); + createEReference(eXmlElementEClass, EXML_ELEMENT__XML_ELEMENT_WRAPPER); + createEReference(eXmlElementEClass, EXML_ELEMENT__XML_MAP); + createEReference(eXmlElementEClass, EXML_ELEMENT__XML_SCHEMA_TYPE); + + eXmlElementDeclEClass = createEClass(EXML_ELEMENT_DECL); + createEAttribute(eXmlElementDeclEClass, EXML_ELEMENT_DECL__JAVA_METHOD); + createEAttribute(eXmlElementDeclEClass, EXML_ELEMENT_DECL__NAME); + createEAttribute(eXmlElementDeclEClass, EXML_ELEMENT_DECL__NAMESPACE); + createEAttribute(eXmlElementDeclEClass, EXML_ELEMENT_DECL__DEFAULT_VALUE); + createEAttribute(eXmlElementDeclEClass, EXML_ELEMENT_DECL__SCOPE); + createEAttribute(eXmlElementDeclEClass, EXML_ELEMENT_DECL__SUBSTITUTION_HEAD_NAME); + createEAttribute(eXmlElementDeclEClass, EXML_ELEMENT_DECL__SUBSTITUTION_HEAD_NAMESPACE); + createEAttribute(eXmlElementDeclEClass, EXML_ELEMENT_DECL__TYPE); + + eXmlElementRefEClass = createEClass(EXML_ELEMENT_REF); + createEAttribute(eXmlElementRefEClass, EXML_ELEMENT_REF__NAME); + createEAttribute(eXmlElementRefEClass, EXML_ELEMENT_REF__NAMESPACE); + createEAttribute(eXmlElementRefEClass, EXML_ELEMENT_REF__XML_MIXED); + createEReference(eXmlElementRefEClass, EXML_ELEMENT_REF__XML_ELEMENT_WRAPPER); + + eXmlElementRefsEClass = createEClass(EXML_ELEMENT_REFS); + createEAttribute(eXmlElementRefsEClass, EXML_ELEMENT_REFS__XML_MIXED); + createEReference(eXmlElementRefsEClass, EXML_ELEMENT_REFS__XML_ELEMENT_REFS); + createEReference(eXmlElementRefsEClass, EXML_ELEMENT_REFS__XML_ELEMENT_WRAPPER); + + eXmlElementsEClass = createEClass(EXML_ELEMENTS); + createEAttribute(eXmlElementsEClass, EXML_ELEMENTS__XML_ID_REF); + createEAttribute(eXmlElementsEClass, EXML_ELEMENTS__XML_LIST); + createEReference(eXmlElementsEClass, EXML_ELEMENTS__XML_ELEMENTS); + createEReference(eXmlElementsEClass, EXML_ELEMENTS__XML_ELEMENT_WRAPPER); + createEReference(eXmlElementsEClass, EXML_ELEMENTS__XML_JOIN_NODES); + + eXmlElementWrapperEClass = createEClass(EXML_ELEMENT_WRAPPER); + createEAttribute(eXmlElementWrapperEClass, EXML_ELEMENT_WRAPPER__NAME); + createEAttribute(eXmlElementWrapperEClass, EXML_ELEMENT_WRAPPER__NAMESPACE); + createEAttribute(eXmlElementWrapperEClass, EXML_ELEMENT_WRAPPER__NILLABLE); + createEAttribute(eXmlElementWrapperEClass, EXML_ELEMENT_WRAPPER__REQUIRED); + + eXmlEnumEClass = createEClass(EXML_ENUM); + createEAttribute(eXmlEnumEClass, EXML_ENUM__JAVA_ENUM); + createEAttribute(eXmlEnumEClass, EXML_ENUM__VALUE); + createEReference(eXmlEnumEClass, EXML_ENUM__XML_ENUM_VALUES); + + eXmlEnumValueEClass = createEClass(EXML_ENUM_VALUE); + createEAttribute(eXmlEnumValueEClass, EXML_ENUM_VALUE__JAVA_ENUM_VALUE); + + eXmlInverseReferenceEClass = createEClass(EXML_INVERSE_REFERENCE); + createEAttribute(eXmlInverseReferenceEClass, EXML_INVERSE_REFERENCE__MAPPED_BY); + + eXmlIsSetNullPolicyEClass = createEClass(EXML_IS_SET_NULL_POLICY); + createEAttribute(eXmlIsSetNullPolicyEClass, EXML_IS_SET_NULL_POLICY__IS_SET_METHOD_NAME); + createEReference(eXmlIsSetNullPolicyEClass, EXML_IS_SET_NULL_POLICY__XML_IS_SET_PARAMETERS); + + eXmlIsSetParameterEClass = createEClass(EXML_IS_SET_PARAMETER); + createEAttribute(eXmlIsSetParameterEClass, EXML_IS_SET_PARAMETER__VALUE); + createEAttribute(eXmlIsSetParameterEClass, EXML_IS_SET_PARAMETER__TYPE); + + eXmlJavaTypeAdapterEClass = createEClass(EXML_JAVA_TYPE_ADAPTER); + createEAttribute(eXmlJavaTypeAdapterEClass, EXML_JAVA_TYPE_ADAPTER__VALUE); + createEAttribute(eXmlJavaTypeAdapterEClass, EXML_JAVA_TYPE_ADAPTER__TYPE); + createEAttribute(eXmlJavaTypeAdapterEClass, EXML_JAVA_TYPE_ADAPTER__VALUE_TYPE); + + eXmlJoinNodeEClass = createEClass(EXML_JOIN_NODE); + createEAttribute(eXmlJoinNodeEClass, EXML_JOIN_NODE__XML_PATH); + createEAttribute(eXmlJoinNodeEClass, EXML_JOIN_NODE__REFERENCED_XML_PATH); + + eXmlJoinNodesEClass = createEClass(EXML_JOIN_NODES); + createEReference(eXmlJoinNodesEClass, EXML_JOIN_NODES__XML_JOIN_NODES); + + eXmlMapEClass = createEClass(EXML_MAP); + createEAttribute(eXmlMapEClass, EXML_MAP__KEY); + createEAttribute(eXmlMapEClass, EXML_MAP__VALUE); + + eXmlNullPolicyEClass = createEClass(EXML_NULL_POLICY); + createEAttribute(eXmlNullPolicyEClass, EXML_NULL_POLICY__IS_SET_PERFORMED_FOR_ABSENT_NODE); + + eXmlNsEClass = createEClass(EXML_NS); + createEAttribute(eXmlNsEClass, EXML_NS__NAMESPACE_URI); + createEAttribute(eXmlNsEClass, EXML_NS__PREFIX); + + eXmlPropertyEClass = createEClass(EXML_PROPERTY); + createEAttribute(eXmlPropertyEClass, EXML_PROPERTY__NAME); + createEAttribute(eXmlPropertyEClass, EXML_PROPERTY__VALUE); + createEAttribute(eXmlPropertyEClass, EXML_PROPERTY__VALUE_TYPE); + + eXmlReadTransformerEClass = createEClass(EXML_READ_TRANSFORMER); + + eXmlRegistryEClass = createEClass(EXML_REGISTRY); + createEAttribute(eXmlRegistryEClass, EXML_REGISTRY__NAME); + createEReference(eXmlRegistryEClass, EXML_REGISTRY__XML_ELEMENT_DECLS); + + eXmlRootElementEClass = createEClass(EXML_ROOT_ELEMENT); + createEAttribute(eXmlRootElementEClass, EXML_ROOT_ELEMENT__NAME); + createEAttribute(eXmlRootElementEClass, EXML_ROOT_ELEMENT__NAMESPACE); + + eXmlSchemaEClass = createEClass(EXML_SCHEMA); + createEAttribute(eXmlSchemaEClass, EXML_SCHEMA__ATTRIBUTE_FORM_DEFAULT); + createEAttribute(eXmlSchemaEClass, EXML_SCHEMA__ELEMENT_FORM_DEFAULT); + createEAttribute(eXmlSchemaEClass, EXML_SCHEMA__LOCATION); + createEAttribute(eXmlSchemaEClass, EXML_SCHEMA__NAMESPACE); + createEReference(eXmlSchemaEClass, EXML_SCHEMA__XMLNS); + + eXmlSchemaTypeEClass = createEClass(EXML_SCHEMA_TYPE); + createEAttribute(eXmlSchemaTypeEClass, EXML_SCHEMA_TYPE__NAME); + createEAttribute(eXmlSchemaTypeEClass, EXML_SCHEMA_TYPE__NAMESPACE); + createEAttribute(eXmlSchemaTypeEClass, EXML_SCHEMA_TYPE__TYPE); + + eXmlTransformationEClass = createEClass(EXML_TRANSFORMATION); + createEAttribute(eXmlTransformationEClass, EXML_TRANSFORMATION__OPTIONAL); + createEReference(eXmlTransformationEClass, EXML_TRANSFORMATION__XML_READ_TRANSFORMER); + createEReference(eXmlTransformationEClass, EXML_TRANSFORMATION__XML_WRITE_TRANSFORMERS); + + eXmlTransientEClass = createEClass(EXML_TRANSIENT); + createEAttribute(eXmlTransientEClass, EXML_TRANSIENT__XML_LOCATION); + + eXmlTypeEClass = createEClass(EXML_TYPE); + createEAttribute(eXmlTypeEClass, EXML_TYPE__NAME); + createEAttribute(eXmlTypeEClass, EXML_TYPE__NAMESPACE); + createEAttribute(eXmlTypeEClass, EXML_TYPE__FACTORY_CLASS); + createEAttribute(eXmlTypeEClass, EXML_TYPE__FACTORY_METHOD); + createEAttribute(eXmlTypeEClass, EXML_TYPE__PROP_ORDER); + + eXmlValueEClass = createEClass(EXML_VALUE); + createEAttribute(eXmlValueEClass, EXML_VALUE__CDATA); + createEReference(eXmlValueEClass, EXML_VALUE__XML_ABSTRACT_NULL_POLICY); + + eXmlVirtualAccessMethodsEClass = createEClass(EXML_VIRTUAL_ACCESS_METHODS); + createEAttribute(eXmlVirtualAccessMethodsEClass, EXML_VIRTUAL_ACCESS_METHODS__GET_METHOD); + createEAttribute(eXmlVirtualAccessMethodsEClass, EXML_VIRTUAL_ACCESS_METHODS__SET_METHOD); + createEAttribute(eXmlVirtualAccessMethodsEClass, EXML_VIRTUAL_ACCESS_METHODS__SCHEMA); + + eXmlWriteTransformerEClass = createEClass(EXML_WRITE_TRANSFORMER); + createEAttribute(eXmlWriteTransformerEClass, EXML_WRITE_TRANSFORMER__XML_PATH); + + // Create enums + eXmlAccessOrderEEnum = createEEnum(EXML_ACCESS_ORDER); + eXmlAccessTypeEEnum = createEEnum(EXML_ACCESS_TYPE); + eXmlMarshalNullRepresentationEEnum = createEEnum(EXML_MARSHAL_NULL_REPRESENTATION); + eXmlNsFormEEnum = createEEnum(EXML_NS_FORM); + eXmlVirtualAccessMethodsSchemaEEnum = createEEnum(EXML_VIRTUAL_ACCESS_METHODS_SCHEMA); + + // Create data types + ePropOrderEDataType = createEDataType(EPROP_ORDER); + eXmlSeeAlsoEDataType = createEDataType(EXML_SEE_ALSO); + } + + /** + * + * + * @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. + * + * + * @generated + */ + public void initializePackageContents() + { + if (isInitialized) return; + isInitialized = true; + + // Initialize package + setName(eNAME); + setNsPrefix(eNS_PREFIX); + setNsURI(eNS_URI); + + // Obtain other dependent packages + CommonPackage theCommonPackage = (CommonPackage)EPackage.Registry.INSTANCE.getEPackage(CommonPackage.eNS_URI); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + eJavaTypeEClass.getESuperTypes().add(this.getEPropertyHolder()); + eXmlAnyAttributeEClass.getESuperTypes().add(this.getEJavaAttribute()); + eXmlAnyAttributeEClass.getESuperTypes().add(this.getEAccessibleJavaAttribute()); + eXmlAnyAttributeEClass.getESuperTypes().add(this.getEContainerJavaAttribute()); + eXmlAnyAttributeEClass.getESuperTypes().add(this.getEReadWriteJavaAttribute()); + eXmlAnyAttributeEClass.getESuperTypes().add(this.getEPropertyHolder()); + eXmlAnyElementEClass.getESuperTypes().add(this.getEJavaAttribute()); + eXmlAnyElementEClass.getESuperTypes().add(this.getEAccessibleJavaAttribute()); + eXmlAnyElementEClass.getESuperTypes().add(this.getEAdaptableJavaAttribute()); + eXmlAnyElementEClass.getESuperTypes().add(this.getEContainerJavaAttribute()); + eXmlAnyElementEClass.getESuperTypes().add(this.getEReadWriteJavaAttribute()); + eXmlAnyElementEClass.getESuperTypes().add(this.getEPropertyHolder()); + eXmlAttributeEClass.getESuperTypes().add(this.getEJavaAttribute()); + eXmlAttributeEClass.getESuperTypes().add(this.getEAccessibleJavaAttribute()); + eXmlAttributeEClass.getESuperTypes().add(this.getEAdaptableJavaAttribute()); + eXmlAttributeEClass.getESuperTypes().add(this.getEContainerJavaAttribute()); + eXmlAttributeEClass.getESuperTypes().add(this.getEReadWriteJavaAttribute()); + eXmlAttributeEClass.getESuperTypes().add(this.getETypedJavaAttribute()); + eXmlAttributeEClass.getESuperTypes().add(this.getEPropertyHolder()); + eXmlBindingsEClass.getESuperTypes().add(theCommonPackage.getERootObjectImpl()); + eXmlElementEClass.getESuperTypes().add(this.getEJavaAttribute()); + eXmlElementEClass.getESuperTypes().add(this.getEAccessibleJavaAttribute()); + eXmlElementEClass.getESuperTypes().add(this.getEAdaptableJavaAttribute()); + eXmlElementEClass.getESuperTypes().add(this.getEContainerJavaAttribute()); + eXmlElementEClass.getESuperTypes().add(this.getEPropertyHolder()); + eXmlElementEClass.getESuperTypes().add(this.getEReadWriteJavaAttribute()); + eXmlElementRefEClass.getESuperTypes().add(this.getEJavaAttribute()); + eXmlElementRefEClass.getESuperTypes().add(this.getEAccessibleJavaAttribute()); + eXmlElementRefEClass.getESuperTypes().add(this.getEAdaptableJavaAttribute()); + eXmlElementRefEClass.getESuperTypes().add(this.getEContainerJavaAttribute()); + eXmlElementRefEClass.getESuperTypes().add(this.getEReadWriteJavaAttribute()); + eXmlElementRefEClass.getESuperTypes().add(this.getETypedJavaAttribute()); + eXmlElementRefEClass.getESuperTypes().add(this.getEPropertyHolder()); + eXmlElementRefsEClass.getESuperTypes().add(this.getEJavaAttribute()); + eXmlElementRefsEClass.getESuperTypes().add(this.getEAccessibleJavaAttribute()); + eXmlElementRefsEClass.getESuperTypes().add(this.getEAdaptableJavaAttribute()); + eXmlElementRefsEClass.getESuperTypes().add(this.getEReadWriteJavaAttribute()); + eXmlElementRefsEClass.getESuperTypes().add(this.getEPropertyHolder()); + eXmlElementsEClass.getESuperTypes().add(this.getEJavaAttribute()); + eXmlElementsEClass.getESuperTypes().add(this.getEAccessibleJavaAttribute()); + eXmlElementsEClass.getESuperTypes().add(this.getEContainerJavaAttribute()); + eXmlElementsEClass.getESuperTypes().add(this.getEReadWriteJavaAttribute()); + eXmlElementsEClass.getESuperTypes().add(this.getEPropertyHolder()); + eXmlInverseReferenceEClass.getESuperTypes().add(this.getEJavaAttribute()); + eXmlInverseReferenceEClass.getESuperTypes().add(this.getEAccessibleJavaAttribute()); + eXmlInverseReferenceEClass.getESuperTypes().add(this.getEContainerJavaAttribute()); + eXmlInverseReferenceEClass.getESuperTypes().add(this.getETypedJavaAttribute()); + eXmlInverseReferenceEClass.getESuperTypes().add(this.getEPropertyHolder()); + eXmlIsSetNullPolicyEClass.getESuperTypes().add(this.getEAbstractXmlNullPolicy()); + eXmlJavaTypeAdapterEClass.getESuperTypes().add(this.getEJavaAttribute()); + eXmlJoinNodesEClass.getESuperTypes().add(this.getEJavaAttribute()); + eXmlJoinNodesEClass.getESuperTypes().add(this.getEContainerJavaAttribute()); + eXmlJoinNodesEClass.getESuperTypes().add(this.getETypedJavaAttribute()); + eXmlNullPolicyEClass.getESuperTypes().add(this.getEAbstractXmlNullPolicy()); + eXmlReadTransformerEClass.getESuperTypes().add(this.getEAbstractXmlTransformer()); + eXmlTransformationEClass.getESuperTypes().add(this.getEJavaAttribute()); + eXmlTransformationEClass.getESuperTypes().add(this.getEAccessibleJavaAttribute()); + eXmlTransformationEClass.getESuperTypes().add(this.getEPropertyHolder()); + eXmlTransientEClass.getESuperTypes().add(this.getEJavaAttribute()); + eXmlValueEClass.getESuperTypes().add(this.getEJavaAttribute()); + eXmlValueEClass.getESuperTypes().add(this.getEAccessibleJavaAttribute()); + eXmlValueEClass.getESuperTypes().add(this.getEAdaptableJavaAttribute()); + eXmlValueEClass.getESuperTypes().add(this.getEContainerJavaAttribute()); + eXmlValueEClass.getESuperTypes().add(this.getEReadWriteJavaAttribute()); + eXmlValueEClass.getESuperTypes().add(this.getETypedJavaAttribute()); + eXmlValueEClass.getESuperTypes().add(this.getEPropertyHolder()); + eXmlWriteTransformerEClass.getESuperTypes().add(this.getEAbstractXmlTransformer()); + + // Initialize classes and features; add operations and parameters + initEClass(eAbstractXmlNullPolicyEClass, EAbstractXmlNullPolicy.class, "EAbstractXmlNullPolicy", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getEAbstractXmlNullPolicy_XsiNilRepresentsNull(), ecorePackage.getEBoolean(), "xsiNilRepresentsNull", null, 0, 1, EAbstractXmlNullPolicy.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEAbstractXmlNullPolicy_EmptyNodeRepresentsNull(), ecorePackage.getEBoolean(), "emptyNodeRepresentsNull", null, 0, 1, EAbstractXmlNullPolicy.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEAbstractXmlNullPolicy_NullRepresentationForXml(), this.getEXmlMarshalNullRepresentation(), "nullRepresentationForXml", null, 0, 1, EAbstractXmlNullPolicy.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(eAbstractXmlTransformerEClass, EAbstractXmlTransformer.class, "EAbstractXmlTransformer", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getEAbstractXmlTransformer_Method(), ecorePackage.getEString(), "method", null, 0, 1, EAbstractXmlTransformer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEAbstractXmlTransformer_TransformerClass(), ecorePackage.getEString(), "transformerClass", null, 0, 1, EAbstractXmlTransformer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(eAccessibleJavaAttributeEClass, EAccessibleJavaAttribute.class, "EAccessibleJavaAttribute", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getEAccessibleJavaAttribute_XmlAccessMethods(), this.getEXmlAccessMethods(), null, "xmlAccessMethods", null, 0, 1, EAccessibleJavaAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(eAdaptableJavaAttributeEClass, EAdaptableJavaAttribute.class, "EAdaptableJavaAttribute", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getEAdaptableJavaAttribute_XmlJavaTypeAdapter(), this.getEXmlJavaTypeAdapter(), null, "xmlJavaTypeAdapter", null, 0, 1, EAdaptableJavaAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(eContainerJavaAttributeEClass, EContainerJavaAttribute.class, "EContainerJavaAttribute", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getEContainerJavaAttribute_ContainerType(), ecorePackage.getEString(), "containerType", null, 0, 1, EContainerJavaAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(eJavaAttributeEClass, EJavaAttribute.class, "EJavaAttribute", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getEJavaAttribute_JavaAttribute(), ecorePackage.getEString(), "javaAttribute", null, 0, 1, EJavaAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEJavaAttribute_XmlAccessorType(), this.getEXmlAccessType(), "xmlAccessorType", null, 0, 1, EJavaAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(eJavaTypeEClass, EJavaType.class, "EJavaType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getEJavaType_Name(), ecorePackage.getEString(), "name", null, 0, 1, EJavaType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEJavaType_SuperType(), ecorePackage.getEString(), "superType", null, 0, 1, EJavaType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEJavaType_XmlAccessorOrder(), this.getEXmlAccessOrder(), "xmlAccessorOrder", null, 0, 1, EJavaType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEJavaType_XmlAccessorType(), this.getEXmlAccessType(), "xmlAccessorType", null, 0, 1, EJavaType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEJavaType_XmlCustomizer(), ecorePackage.getEString(), "xmlCustomizer", null, 0, 1, EJavaType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEJavaType_XmlDiscriminatorNode(), ecorePackage.getEString(), "xmlDiscriminatorNode", null, 0, 1, EJavaType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEJavaType_XmlDiscriminatorValue(), ecorePackage.getEString(), "xmlDiscriminatorValue", null, 0, 1, EJavaType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEJavaType_XmlInlineBinaryData(), ecorePackage.getEBoolean(), "xmlInlineBinaryData", null, 0, 1, EJavaType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEJavaType_XmlTransient(), ecorePackage.getEBoolean(), "xmlTransient", null, 0, 1, EJavaType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEJavaType_XmlNameTransformer(), ecorePackage.getEString(), "xmlNameTransformer", null, 0, 1, EJavaType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getEJavaType_XmlType(), this.getEXmlType(), null, "xmlType", null, 0, 1, EJavaType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getEJavaType_XmlRootElement(), this.getEXmlRootElement(), null, "xmlRootElement", null, 0, 1, EJavaType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getEJavaType_XmlVirtualAccessMethods(), this.getEXmlVirtualAccessMethods(), null, "xmlVirtualAccessMethods", null, 0, 1, EJavaType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEJavaType_XmlSeeAlso(), this.getEXmlSeeAlso(), "xmlSeeAlso", null, 0, 1, EJavaType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getEJavaType_XmlJavaTypeAdapter(), this.getEXmlJavaTypeAdapter(), null, "xmlJavaTypeAdapter", null, 0, 1, EJavaType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getEJavaType_XmlClassExtractor(), this.getEXmlClassExtractor(), null, "xmlClassExtractor", null, 0, 1, EJavaType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getEJavaType_JavaAttributes(), this.getEJavaAttribute(), null, "javaAttributes", null, 0, -1, EJavaType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(ePropertyHolderEClass, EPropertyHolder.class, "EPropertyHolder", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getEPropertyHolder_XmlProperties(), this.getEXmlProperty(), null, "xmlProperties", null, 0, -1, EPropertyHolder.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(eReadWriteJavaAttributeEClass, EReadWriteJavaAttribute.class, "EReadWriteJavaAttribute", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getEReadWriteJavaAttribute_ReadOnly(), ecorePackage.getEBoolean(), "readOnly", null, 0, 1, EReadWriteJavaAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEReadWriteJavaAttribute_WriteOnly(), ecorePackage.getEBoolean(), "writeOnly", null, 0, 1, EReadWriteJavaAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(eTypedJavaAttributeEClass, ETypedJavaAttribute.class, "ETypedJavaAttribute", IS_ABSTRACT, IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getETypedJavaAttribute_Type(), ecorePackage.getEString(), "type", null, 0, 1, ETypedJavaAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(eXmlAccessMethodsEClass, EXmlAccessMethods.class, "EXmlAccessMethods", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getEXmlAccessMethods_GetMethod(), ecorePackage.getEString(), "getMethod", null, 0, 1, EXmlAccessMethods.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEXmlAccessMethods_SetMethod(), ecorePackage.getEString(), "setMethod", null, 0, 1, EXmlAccessMethods.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(eXmlAnyAttributeEClass, EXmlAnyAttribute.class, "EXmlAnyAttribute", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getEXmlAnyAttribute_XmlPath(), ecorePackage.getEString(), "xmlPath", null, 0, 1, EXmlAnyAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(eXmlAnyElementEClass, EXmlAnyElement.class, "EXmlAnyElement", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getEXmlAnyElement_XmlMixed(), ecorePackage.getEBoolean(), "xmlMixed", null, 0, 1, EXmlAnyElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEXmlAnyElement_Lax(), ecorePackage.getEBoolean(), "lax", null, 0, 1, EXmlAnyElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEXmlAnyElement_DomHandler(), ecorePackage.getEString(), "domHandler", null, 0, 1, EXmlAnyElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEXmlAnyElement_XmlPath(), ecorePackage.getEString(), "xmlPath", null, 0, 1, EXmlAnyElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getEXmlAnyElement_XmlElementRefs(), this.getEXmlElementRefs(), null, "xmlElementRefs", null, 0, 1, EXmlAnyElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(eXmlAttributeEClass, EXmlAttribute.class, "EXmlAttribute", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getEXmlAttribute_Name(), ecorePackage.getEString(), "name", null, 0, 1, EXmlAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEXmlAttribute_Namespace(), ecorePackage.getEString(), "namespace", null, 0, 1, EXmlAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEXmlAttribute_Required(), ecorePackage.getEBoolean(), "required", null, 0, 1, EXmlAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEXmlAttribute_XmlId(), ecorePackage.getEBoolean(), "xmlId", null, 0, 1, EXmlAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEXmlAttribute_XmlIdRef(), ecorePackage.getEBoolean(), "xmlIdRef", null, 0, 1, EXmlAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEXmlAttribute_XmlKey(), ecorePackage.getEBoolean(), "xmlKey", null, 0, 1, EXmlAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEXmlAttribute_XmlList(), ecorePackage.getEBoolean(), "xmlList", null, 0, 1, EXmlAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEXmlAttribute_XmlInlineBinaryData(), ecorePackage.getEBoolean(), "xmlInlineBinaryData", null, 0, 1, EXmlAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEXmlAttribute_XmlAttachmentRef(), ecorePackage.getEBoolean(), "xmlAttachmentRef", null, 0, 1, EXmlAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEXmlAttribute_XmlMimeType(), ecorePackage.getEString(), "xmlMimeType", null, 0, 1, EXmlAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEXmlAttribute_XmlPath(), ecorePackage.getEString(), "xmlPath", null, 0, 1, EXmlAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getEXmlAttribute_XmlAbstractNullPolicy(), this.getEAbstractXmlNullPolicy(), null, "xmlAbstractNullPolicy", null, 0, 1, EXmlAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getEXmlAttribute_XmlSchemaType(), this.getEXmlSchemaType(), null, "xmlSchemaType", null, 0, 1, EXmlAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(eXmlBindingsEClass, EXmlBindings.class, "EXmlBindings", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getEXmlBindings_XmlAccessorType(), this.getEXmlAccessType(), "xmlAccessorType", null, 0, 1, EXmlBindings.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEXmlBindings_XmlAccessorOrder(), this.getEXmlAccessOrder(), "xmlAccessorOrder", null, 0, 1, EXmlBindings.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEXmlBindings_XmlMappingMetadataComplete(), ecorePackage.getEBoolean(), "xmlMappingMetadataComplete", null, 0, 1, EXmlBindings.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEXmlBindings_PackageName(), ecorePackage.getEString(), "packageName", null, 0, 1, EXmlBindings.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEXmlBindings_XmlNameTransformer(), ecorePackage.getEString(), "xmlNameTransformer", null, 0, 1, EXmlBindings.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getEXmlBindings_XmlSchema(), this.getEXmlSchema(), null, "xmlSchema", null, 0, 1, EXmlBindings.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getEXmlBindings_XmlSchemaType(), this.getEXmlSchemaType(), null, "xmlSchemaType", null, 0, 1, EXmlBindings.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getEXmlBindings_XmlSchemaTypes(), this.getEXmlSchemaType(), null, "xmlSchemaTypes", null, 0, -1, EXmlBindings.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getEXmlBindings_XmlJavaTypeAdapters(), this.getEXmlJavaTypeAdapter(), null, "xmlJavaTypeAdapters", null, 0, -1, EXmlBindings.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getEXmlBindings_XmlRegistries(), this.getEXmlRegistry(), null, "xmlRegistries", null, 0, -1, EXmlBindings.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getEXmlBindings_XmlEnums(), this.getEXmlEnum(), null, "xmlEnums", null, 0, -1, EXmlBindings.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getEXmlBindings_JavaTypes(), this.getEJavaType(), null, "javaTypes", null, 0, -1, EXmlBindings.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(eXmlClassExtractorEClass, EXmlClassExtractor.class, "EXmlClassExtractor", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getEXmlClassExtractor_ClassName(), ecorePackage.getEString(), "className", null, 0, 1, EXmlClassExtractor.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(eXmlElementEClass, EXmlElement.class, "EXmlElement", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getEXmlElement_Name(), ecorePackage.getEString(), "name", null, 0, 1, EXmlElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEXmlElement_Namespace(), ecorePackage.getEString(), "namespace", null, 0, 1, EXmlElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEXmlElement_DefaultValue(), ecorePackage.getEString(), "defaultValue", null, 0, 1, EXmlElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEXmlElement_Nillable(), ecorePackage.getEBoolean(), "nillable", null, 0, 1, EXmlElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEXmlElement_Required(), ecorePackage.getEBoolean(), "required", null, 0, 1, EXmlElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEXmlElement_XmlId(), ecorePackage.getEBoolean(), "xmlId", null, 0, 1, EXmlElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEXmlElement_XmlIdRef(), ecorePackage.getEBoolean(), "xmlIdRef", null, 0, 1, EXmlElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEXmlElement_XmlKey(), ecorePackage.getEBoolean(), "xmlKey", null, 0, 1, EXmlElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEXmlElement_XmlList(), ecorePackage.getEBoolean(), "xmlList", null, 0, 1, EXmlElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEXmlElement_XmlInlineBinaryData(), ecorePackage.getEBoolean(), "xmlInlineBinaryData", null, 0, 1, EXmlElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEXmlElement_XmlAttachmentRef(), ecorePackage.getEBoolean(), "xmlAttachmentRef", null, 0, 1, EXmlElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEXmlElement_XmlMimeType(), ecorePackage.getEString(), "xmlMimeType", null, 0, 1, EXmlElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEXmlElement_Cdata(), ecorePackage.getEBoolean(), "cdata", null, 0, 1, EXmlElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEXmlElement_XmlPath(), ecorePackage.getEString(), "xmlPath", null, 0, 1, EXmlElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEXmlElement_XmlLocation(), ecorePackage.getEBoolean(), "xmlLocation", null, 0, 1, EXmlElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getEXmlElement_XmlAbstractNullPolicy(), this.getEAbstractXmlNullPolicy(), null, "xmlAbstractNullPolicy", null, 0, 1, EXmlElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getEXmlElement_XmlElementWrapper(), this.getEXmlElementWrapper(), null, "xmlElementWrapper", null, 0, 1, EXmlElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getEXmlElement_XmlMap(), this.getEXmlElementWrapper(), null, "xmlMap", null, 0, 1, EXmlElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getEXmlElement_XmlSchemaType(), this.getEXmlSchemaType(), null, "xmlSchemaType", null, 0, 1, EXmlElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(eXmlElementDeclEClass, EXmlElementDecl.class, "EXmlElementDecl", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getEXmlElementDecl_JavaMethod(), ecorePackage.getEString(), "javaMethod", null, 0, 1, EXmlElementDecl.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEXmlElementDecl_Name(), ecorePackage.getEString(), "name", null, 0, 1, EXmlElementDecl.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEXmlElementDecl_Namespace(), ecorePackage.getEString(), "namespace", null, 0, 1, EXmlElementDecl.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEXmlElementDecl_DefaultValue(), ecorePackage.getEString(), "defaultValue", null, 0, 1, EXmlElementDecl.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEXmlElementDecl_Scope(), ecorePackage.getEString(), "scope", null, 0, 1, EXmlElementDecl.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEXmlElementDecl_SubstitutionHeadName(), ecorePackage.getEString(), "substitutionHeadName", null, 0, 1, EXmlElementDecl.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEXmlElementDecl_SubstitutionHeadNamespace(), ecorePackage.getEString(), "substitutionHeadNamespace", null, 0, 1, EXmlElementDecl.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEXmlElementDecl_Type(), ecorePackage.getEString(), "type", null, 0, 1, EXmlElementDecl.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(eXmlElementRefEClass, EXmlElementRef.class, "EXmlElementRef", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getEXmlElementRef_Name(), ecorePackage.getEString(), "name", null, 0, 1, EXmlElementRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEXmlElementRef_Namespace(), ecorePackage.getEString(), "namespace", null, 0, 1, EXmlElementRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEXmlElementRef_XmlMixed(), ecorePackage.getEBoolean(), "xmlMixed", null, 0, 1, EXmlElementRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getEXmlElementRef_XmlElementWrapper(), this.getEXmlElementWrapper(), null, "xmlElementWrapper", null, 0, 1, EXmlElementRef.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(eXmlElementRefsEClass, EXmlElementRefs.class, "EXmlElementRefs", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getEXmlElementRefs_XmlMixed(), ecorePackage.getEBoolean(), "xmlMixed", null, 0, 1, EXmlElementRefs.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getEXmlElementRefs_XmlElementRefs(), this.getEXmlElementRef(), null, "xmlElementRefs", null, 0, -1, EXmlElementRefs.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getEXmlElementRefs_XmlElementWrapper(), this.getEXmlElementWrapper(), null, "xmlElementWrapper", null, 0, 1, EXmlElementRefs.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(eXmlElementsEClass, EXmlElements.class, "EXmlElements", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getEXmlElements_XmlIdRef(), ecorePackage.getEBoolean(), "xmlIdRef", null, 0, 1, EXmlElements.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEXmlElements_XmlList(), ecorePackage.getEBoolean(), "xmlList", null, 0, 1, EXmlElements.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getEXmlElements_XmlElements(), this.getEXmlElement(), null, "xmlElements", null, 0, -1, EXmlElements.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getEXmlElements_XmlElementWrapper(), this.getEXmlElementWrapper(), null, "xmlElementWrapper", null, 0, 1, EXmlElements.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getEXmlElements_XmlJoinNodes(), this.getEXmlJoinNodes(), null, "xmlJoinNodes", null, 0, -1, EXmlElements.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(eXmlElementWrapperEClass, EXmlElementWrapper.class, "EXmlElementWrapper", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getEXmlElementWrapper_Name(), ecorePackage.getEString(), "name", null, 0, 1, EXmlElementWrapper.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEXmlElementWrapper_Namespace(), ecorePackage.getEString(), "namespace", null, 0, 1, EXmlElementWrapper.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEXmlElementWrapper_Nillable(), ecorePackage.getEBoolean(), "nillable", null, 0, 1, EXmlElementWrapper.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEXmlElementWrapper_Required(), ecorePackage.getEBoolean(), "required", null, 0, 1, EXmlElementWrapper.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(eXmlEnumEClass, EXmlEnum.class, "EXmlEnum", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getEXmlEnum_JavaEnum(), ecorePackage.getEString(), "javaEnum", null, 0, 1, EXmlEnum.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEXmlEnum_Value(), ecorePackage.getEString(), "value", null, 0, 1, EXmlEnum.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getEXmlEnum_XmlEnumValues(), this.getEXmlEnumValue(), null, "xmlEnumValues", null, 0, -1, EXmlEnum.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(eXmlEnumValueEClass, EXmlEnumValue.class, "EXmlEnumValue", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getEXmlEnumValue_JavaEnumValue(), ecorePackage.getEString(), "javaEnumValue", null, 0, 1, EXmlEnumValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(eXmlInverseReferenceEClass, EXmlInverseReference.class, "EXmlInverseReference", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getEXmlInverseReference_MappedBy(), ecorePackage.getEString(), "mappedBy", null, 0, 1, EXmlInverseReference.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(eXmlIsSetNullPolicyEClass, EXmlIsSetNullPolicy.class, "EXmlIsSetNullPolicy", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getEXmlIsSetNullPolicy_IsSetMethodName(), ecorePackage.getEString(), "isSetMethodName", null, 0, 1, EXmlIsSetNullPolicy.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getEXmlIsSetNullPolicy_XmlIsSetParameters(), this.getEXmlIsSetParameter(), null, "xmlIsSetParameters", null, 0, -1, EXmlIsSetNullPolicy.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(eXmlIsSetParameterEClass, EXmlIsSetParameter.class, "EXmlIsSetParameter", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getEXmlIsSetParameter_Value(), ecorePackage.getEString(), "value", null, 0, 1, EXmlIsSetParameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEXmlIsSetParameter_Type(), ecorePackage.getEString(), "type", null, 0, 1, EXmlIsSetParameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(eXmlJavaTypeAdapterEClass, EXmlJavaTypeAdapter.class, "EXmlJavaTypeAdapter", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getEXmlJavaTypeAdapter_Value(), ecorePackage.getEString(), "value", null, 0, 1, EXmlJavaTypeAdapter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEXmlJavaTypeAdapter_Type(), ecorePackage.getEString(), "type", null, 0, 1, EXmlJavaTypeAdapter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEXmlJavaTypeAdapter_ValueType(), ecorePackage.getEString(), "valueType", null, 0, 1, EXmlJavaTypeAdapter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(eXmlJoinNodeEClass, EXmlJoinNode.class, "EXmlJoinNode", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getEXmlJoinNode_XmlPath(), ecorePackage.getEString(), "xmlPath", null, 0, 1, EXmlJoinNode.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEXmlJoinNode_ReferencedXmlPath(), ecorePackage.getEString(), "referencedXmlPath", null, 0, 1, EXmlJoinNode.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(eXmlJoinNodesEClass, EXmlJoinNodes.class, "EXmlJoinNodes", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getEXmlJoinNodes_XmlJoinNodes(), this.getEXmlJoinNode(), null, "xmlJoinNodes", null, 0, -1, EXmlJoinNodes.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(eXmlMapEClass, EXmlMap.class, "EXmlMap", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getEXmlMap_Key(), ecorePackage.getEString(), "key", null, 0, 1, EXmlMap.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEXmlMap_Value(), ecorePackage.getEString(), "value", null, 0, 1, EXmlMap.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(eXmlNullPolicyEClass, EXmlNullPolicy.class, "EXmlNullPolicy", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getEXmlNullPolicy_IsSetPerformedForAbsentNode(), ecorePackage.getEBoolean(), "isSetPerformedForAbsentNode", null, 0, 1, EXmlNullPolicy.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(eXmlNsEClass, EXmlNs.class, "EXmlNs", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getEXmlNs_NamespaceUri(), ecorePackage.getEString(), "namespaceUri", null, 0, 1, EXmlNs.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEXmlNs_Prefix(), ecorePackage.getEString(), "prefix", null, 0, 1, EXmlNs.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(eXmlPropertyEClass, EXmlProperty.class, "EXmlProperty", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getEXmlProperty_Name(), ecorePackage.getEString(), "name", null, 0, 1, EXmlProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEXmlProperty_Value(), ecorePackage.getEString(), "value", null, 0, 1, EXmlProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEXmlProperty_ValueType(), ecorePackage.getEString(), "valueType", null, 0, 1, EXmlProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(eXmlReadTransformerEClass, EXmlReadTransformer.class, "EXmlReadTransformer", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(eXmlRegistryEClass, EXmlRegistry.class, "EXmlRegistry", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getEXmlRegistry_Name(), ecorePackage.getEString(), "name", null, 0, 1, EXmlRegistry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getEXmlRegistry_XmlElementDecls(), this.getEXmlElementDecl(), null, "xmlElementDecls", null, 0, -1, EXmlRegistry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(eXmlRootElementEClass, EXmlRootElement.class, "EXmlRootElement", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getEXmlRootElement_Name(), ecorePackage.getEString(), "name", null, 0, 1, EXmlRootElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEXmlRootElement_Namespace(), ecorePackage.getEString(), "namespace", null, 0, 1, EXmlRootElement.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(eXmlSchemaEClass, EXmlSchema.class, "EXmlSchema", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getEXmlSchema_AttributeFormDefault(), this.getEXmlNsForm(), "attributeFormDefault", null, 0, 1, EXmlSchema.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEXmlSchema_ElementFormDefault(), this.getEXmlNsForm(), "elementFormDefault", null, 0, 1, EXmlSchema.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEXmlSchema_Location(), ecorePackage.getEString(), "location", null, 0, 1, EXmlSchema.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEXmlSchema_Namespace(), ecorePackage.getEString(), "namespace", null, 0, 1, EXmlSchema.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getEXmlSchema_Xmlns(), this.getEXmlNs(), null, "xmlns", null, 0, -1, EXmlSchema.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(eXmlSchemaTypeEClass, EXmlSchemaType.class, "EXmlSchemaType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getEXmlSchemaType_Name(), ecorePackage.getEString(), "name", null, 0, 1, EXmlSchemaType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEXmlSchemaType_Namespace(), ecorePackage.getEString(), "namespace", null, 0, 1, EXmlSchemaType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEXmlSchemaType_Type(), ecorePackage.getEString(), "type", null, 0, 1, EXmlSchemaType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(eXmlTransformationEClass, EXmlTransformation.class, "EXmlTransformation", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getEXmlTransformation_Optional(), ecorePackage.getEBoolean(), "optional", null, 0, 1, EXmlTransformation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getEXmlTransformation_XmlReadTransformer(), this.getEXmlReadTransformer(), null, "xmlReadTransformer", null, 0, 1, EXmlTransformation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getEXmlTransformation_XmlWriteTransformers(), this.getEXmlWriteTransformer(), null, "xmlWriteTransformers", null, 0, -1, EXmlTransformation.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(eXmlTransientEClass, EXmlTransient.class, "EXmlTransient", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getEXmlTransient_XmlLocation(), ecorePackage.getEBoolean(), "xmlLocation", null, 0, 1, EXmlTransient.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(eXmlTypeEClass, EXmlType.class, "EXmlType", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getEXmlType_Name(), ecorePackage.getEString(), "name", null, 0, 1, EXmlType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEXmlType_Namespace(), ecorePackage.getEString(), "namespace", null, 0, 1, EXmlType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEXmlType_FactoryClass(), ecorePackage.getEString(), "factoryClass", null, 0, 1, EXmlType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEXmlType_FactoryMethod(), ecorePackage.getEString(), "factoryMethod", null, 0, 1, EXmlType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEXmlType_PropOrder(), this.getEPropOrder(), "propOrder", null, 0, 1, EXmlType.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(eXmlValueEClass, EXmlValue.class, "EXmlValue", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getEXmlValue_Cdata(), ecorePackage.getEBoolean(), "cdata", null, 0, 1, EXmlValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getEXmlValue_XmlAbstractNullPolicy(), this.getEAbstractXmlNullPolicy(), null, "xmlAbstractNullPolicy", null, 0, 1, EXmlValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(eXmlVirtualAccessMethodsEClass, EXmlVirtualAccessMethods.class, "EXmlVirtualAccessMethods", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getEXmlVirtualAccessMethods_GetMethod(), ecorePackage.getEString(), "getMethod", null, 0, 1, EXmlVirtualAccessMethods.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEXmlVirtualAccessMethods_SetMethod(), ecorePackage.getEString(), "setMethod", null, 0, 1, EXmlVirtualAccessMethods.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getEXmlVirtualAccessMethods_Schema(), this.getEXmlVirtualAccessMethodsSchema(), "schema", null, 0, 1, EXmlVirtualAccessMethods.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(eXmlWriteTransformerEClass, EXmlWriteTransformer.class, "EXmlWriteTransformer", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getEXmlWriteTransformer_XmlPath(), ecorePackage.getEString(), "xmlPath", null, 0, 1, EXmlWriteTransformer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + // Initialize enums and add enum literals + initEEnum(eXmlAccessOrderEEnum, EXmlAccessOrder.class, "EXmlAccessOrder"); + addEEnumLiteral(eXmlAccessOrderEEnum, EXmlAccessOrder.ALPHABETICAL); + addEEnumLiteral(eXmlAccessOrderEEnum, EXmlAccessOrder.UNDEFINED); + + initEEnum(eXmlAccessTypeEEnum, EXmlAccessType.class, "EXmlAccessType"); + addEEnumLiteral(eXmlAccessTypeEEnum, EXmlAccessType.FIELD); + addEEnumLiteral(eXmlAccessTypeEEnum, EXmlAccessType.NONE); + addEEnumLiteral(eXmlAccessTypeEEnum, EXmlAccessType.PROPERTY); + addEEnumLiteral(eXmlAccessTypeEEnum, EXmlAccessType.PUBLIC_MEMBER); + + initEEnum(eXmlMarshalNullRepresentationEEnum, EXmlMarshalNullRepresentation.class, "EXmlMarshalNullRepresentation"); + addEEnumLiteral(eXmlMarshalNullRepresentationEEnum, EXmlMarshalNullRepresentation.XSI_NIL); + addEEnumLiteral(eXmlMarshalNullRepresentationEEnum, EXmlMarshalNullRepresentation.ABSENT_NODE); + addEEnumLiteral(eXmlMarshalNullRepresentationEEnum, EXmlMarshalNullRepresentation.EMPTY_NODE); + + initEEnum(eXmlNsFormEEnum, EXmlNsForm.class, "EXmlNsForm"); + addEEnumLiteral(eXmlNsFormEEnum, EXmlNsForm.UNQUALIFIED); + addEEnumLiteral(eXmlNsFormEEnum, EXmlNsForm.QUALIFIED); + addEEnumLiteral(eXmlNsFormEEnum, EXmlNsForm.UNSET); + + initEEnum(eXmlVirtualAccessMethodsSchemaEEnum, EXmlVirtualAccessMethodsSchema.class, "EXmlVirtualAccessMethodsSchema"); + addEEnumLiteral(eXmlVirtualAccessMethodsSchemaEEnum, EXmlVirtualAccessMethodsSchema.NODES); + addEEnumLiteral(eXmlVirtualAccessMethodsSchemaEEnum, EXmlVirtualAccessMethodsSchema.ANY); + + // Initialize data types + initEDataType(ePropOrderEDataType, List.class, "EPropOrder", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); + initEDataType(eXmlSeeAlsoEDataType, List.class, "EXmlSeeAlso", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); + + // Create resource + createResource(eNS_URI); + + // Create annotations + // http:///org/eclipse/emf/ecore/util/ExtendedMetaData + createExtendedMetaDataAnnotations(); + } + + /** + * Initializes the annotations for http:///org/eclipse/emf/ecore/util/ExtendedMetaData. + * + * + * @generated + */ + protected void createExtendedMetaDataAnnotations() + { + String source = "http:///org/eclipse/emf/ecore/util/ExtendedMetaData"; + addAnnotation + (ePropOrderEDataType, + source, + new String[] + { + "itemType", "http://www.eclipse.org/emf/2003/XMLType#string" + }); + addAnnotation + (eXmlSeeAlsoEDataType, + source, + new String[] + { + "itemType", "http://www.eclipse.org/emf/2003/XMLType#string" + }); + } + + /** + * + * Defines literals for the meta objects that represent + *

    + *
  • each class,
  • + *
  • each feature of each class,
  • + *
  • each enum,
  • + *
  • and each data type
  • + *
+ * + * @generated + */ + public interface Literals + { + /** + * The meta object literal for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EAbstractXmlNullPolicy EAbstract Xml Null Policy}' class. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EAbstractXmlNullPolicy + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEAbstractXmlNullPolicy() + * @generated + */ + public static final EClass EABSTRACT_XML_NULL_POLICY = eINSTANCE.getEAbstractXmlNullPolicy(); + + /** + * The meta object literal for the 'Xsi Nil Represents Null' attribute feature. + * + * + * @generated + */ + public static final EAttribute EABSTRACT_XML_NULL_POLICY__XSI_NIL_REPRESENTS_NULL = eINSTANCE.getEAbstractXmlNullPolicy_XsiNilRepresentsNull(); + + /** + * The meta object literal for the 'Empty Node Represents Null' attribute feature. + * + * + * @generated + */ + public static final EAttribute EABSTRACT_XML_NULL_POLICY__EMPTY_NODE_REPRESENTS_NULL = eINSTANCE.getEAbstractXmlNullPolicy_EmptyNodeRepresentsNull(); + + /** + * The meta object literal for the 'Null Representation For Xml' attribute feature. + * + * + * @generated + */ + public static final EAttribute EABSTRACT_XML_NULL_POLICY__NULL_REPRESENTATION_FOR_XML = eINSTANCE.getEAbstractXmlNullPolicy_NullRepresentationForXml(); + + /** + * The meta object literal for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EAbstractXmlTransformer EAbstract Xml Transformer}' class. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EAbstractXmlTransformer + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEAbstractXmlTransformer() + * @generated + */ + public static final EClass EABSTRACT_XML_TRANSFORMER = eINSTANCE.getEAbstractXmlTransformer(); + + /** + * The meta object literal for the 'Method' attribute feature. + * + * + * @generated + */ + public static final EAttribute EABSTRACT_XML_TRANSFORMER__METHOD = eINSTANCE.getEAbstractXmlTransformer_Method(); + + /** + * The meta object literal for the 'Transformer Class' attribute feature. + * + * + * @generated + */ + public static final EAttribute EABSTRACT_XML_TRANSFORMER__TRANSFORMER_CLASS = eINSTANCE.getEAbstractXmlTransformer_TransformerClass(); + + /** + * The meta object literal for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EAccessibleJavaAttribute EAccessible Java Attribute}' class. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EAccessibleJavaAttribute + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEAccessibleJavaAttribute() + * @generated + */ + public static final EClass EACCESSIBLE_JAVA_ATTRIBUTE = eINSTANCE.getEAccessibleJavaAttribute(); + + /** + * The meta object literal for the 'Xml Access Methods' containment reference feature. + * + * + * @generated + */ + public static final EReference EACCESSIBLE_JAVA_ATTRIBUTE__XML_ACCESS_METHODS = eINSTANCE.getEAccessibleJavaAttribute_XmlAccessMethods(); + + /** + * The meta object literal for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EAdaptableJavaAttribute EAdaptable Java Attribute}' class. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EAdaptableJavaAttribute + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEAdaptableJavaAttribute() + * @generated + */ + public static final EClass EADAPTABLE_JAVA_ATTRIBUTE = eINSTANCE.getEAdaptableJavaAttribute(); + + /** + * The meta object literal for the 'Xml Java Type Adapter' containment reference feature. + * + * + * @generated + */ + public static final EReference EADAPTABLE_JAVA_ATTRIBUTE__XML_JAVA_TYPE_ADAPTER = eINSTANCE.getEAdaptableJavaAttribute_XmlJavaTypeAdapter(); + + /** + * The meta object literal for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EContainerJavaAttribute EContainer Java Attribute}' class. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EContainerJavaAttribute + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEContainerJavaAttribute() + * @generated + */ + public static final EClass ECONTAINER_JAVA_ATTRIBUTE = eINSTANCE.getEContainerJavaAttribute(); + + /** + * The meta object literal for the 'Container Type' attribute feature. + * + * + * @generated + */ + public static final EAttribute ECONTAINER_JAVA_ATTRIBUTE__CONTAINER_TYPE = eINSTANCE.getEContainerJavaAttribute_ContainerType(); + + /** + * The meta object literal for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EJavaAttribute EJava Attribute}' class. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EJavaAttribute + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEJavaAttribute() + * @generated + */ + public static final EClass EJAVA_ATTRIBUTE = eINSTANCE.getEJavaAttribute(); + + /** + * The meta object literal for the 'Java Attribute' attribute feature. + * + * + * @generated + */ + public static final EAttribute EJAVA_ATTRIBUTE__JAVA_ATTRIBUTE = eINSTANCE.getEJavaAttribute_JavaAttribute(); + + /** + * The meta object literal for the 'Xml Accessor Type' attribute feature. + * + * + * @generated + */ + public static final EAttribute EJAVA_ATTRIBUTE__XML_ACCESSOR_TYPE = eINSTANCE.getEJavaAttribute_XmlAccessorType(); + + /** + * The meta object literal for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EJavaType EJava Type}' class. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EJavaType + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEJavaType() + * @generated + */ + public static final EClass EJAVA_TYPE = eINSTANCE.getEJavaType(); + + /** + * The meta object literal for the 'Name' attribute feature. + * + * + * @generated + */ + public static final EAttribute EJAVA_TYPE__NAME = eINSTANCE.getEJavaType_Name(); + + /** + * The meta object literal for the 'Super Type' attribute feature. + * + * + * @generated + */ + public static final EAttribute EJAVA_TYPE__SUPER_TYPE = eINSTANCE.getEJavaType_SuperType(); + + /** + * The meta object literal for the 'Xml Accessor Order' attribute feature. + * + * + * @generated + */ + public static final EAttribute EJAVA_TYPE__XML_ACCESSOR_ORDER = eINSTANCE.getEJavaType_XmlAccessorOrder(); + + /** + * The meta object literal for the 'Xml Accessor Type' attribute feature. + * + * + * @generated + */ + public static final EAttribute EJAVA_TYPE__XML_ACCESSOR_TYPE = eINSTANCE.getEJavaType_XmlAccessorType(); + + /** + * The meta object literal for the 'Xml Customizer' attribute feature. + * + * + * @generated + */ + public static final EAttribute EJAVA_TYPE__XML_CUSTOMIZER = eINSTANCE.getEJavaType_XmlCustomizer(); + + /** + * The meta object literal for the 'Xml Discriminator Node' attribute feature. + * + * + * @generated + */ + public static final EAttribute EJAVA_TYPE__XML_DISCRIMINATOR_NODE = eINSTANCE.getEJavaType_XmlDiscriminatorNode(); + + /** + * The meta object literal for the 'Xml Discriminator Value' attribute feature. + * + * + * @generated + */ + public static final EAttribute EJAVA_TYPE__XML_DISCRIMINATOR_VALUE = eINSTANCE.getEJavaType_XmlDiscriminatorValue(); + + /** + * The meta object literal for the 'Xml Inline Binary Data' attribute feature. + * + * + * @generated + */ + public static final EAttribute EJAVA_TYPE__XML_INLINE_BINARY_DATA = eINSTANCE.getEJavaType_XmlInlineBinaryData(); + + /** + * The meta object literal for the 'Xml Transient' attribute feature. + * + * + * @generated + */ + public static final EAttribute EJAVA_TYPE__XML_TRANSIENT = eINSTANCE.getEJavaType_XmlTransient(); + + /** + * The meta object literal for the 'Xml Name Transformer' attribute feature. + * + * + * @generated + */ + public static final EAttribute EJAVA_TYPE__XML_NAME_TRANSFORMER = eINSTANCE.getEJavaType_XmlNameTransformer(); + + /** + * The meta object literal for the 'Xml Type' containment reference feature. + * + * + * @generated + */ + public static final EReference EJAVA_TYPE__XML_TYPE = eINSTANCE.getEJavaType_XmlType(); + + /** + * The meta object literal for the 'Xml Root Element' containment reference feature. + * + * + * @generated + */ + public static final EReference EJAVA_TYPE__XML_ROOT_ELEMENT = eINSTANCE.getEJavaType_XmlRootElement(); + + /** + * The meta object literal for the 'Xml Virtual Access Methods' containment reference feature. + * + * + * @generated + */ + public static final EReference EJAVA_TYPE__XML_VIRTUAL_ACCESS_METHODS = eINSTANCE.getEJavaType_XmlVirtualAccessMethods(); + + /** + * The meta object literal for the 'Xml See Also' attribute feature. + * + * + * @generated + */ + public static final EAttribute EJAVA_TYPE__XML_SEE_ALSO = eINSTANCE.getEJavaType_XmlSeeAlso(); + + /** + * The meta object literal for the 'Xml Java Type Adapter' containment reference feature. + * + * + * @generated + */ + public static final EReference EJAVA_TYPE__XML_JAVA_TYPE_ADAPTER = eINSTANCE.getEJavaType_XmlJavaTypeAdapter(); + + /** + * The meta object literal for the 'Xml Class Extractor' containment reference feature. + * + * + * @generated + */ + public static final EReference EJAVA_TYPE__XML_CLASS_EXTRACTOR = eINSTANCE.getEJavaType_XmlClassExtractor(); + + /** + * The meta object literal for the 'Java Attributes' containment reference list feature. + * + * + * @generated + */ + public static final EReference EJAVA_TYPE__JAVA_ATTRIBUTES = eINSTANCE.getEJavaType_JavaAttributes(); + + /** + * The meta object literal for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EPropertyHolder EProperty Holder}' class. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EPropertyHolder + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEPropertyHolder() + * @generated + */ + public static final EClass EPROPERTY_HOLDER = eINSTANCE.getEPropertyHolder(); + + /** + * The meta object literal for the 'Xml Properties' containment reference list feature. + * + * + * @generated + */ + public static final EReference EPROPERTY_HOLDER__XML_PROPERTIES = eINSTANCE.getEPropertyHolder_XmlProperties(); + + /** + * The meta object literal for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EReadWriteJavaAttribute ERead Write Java Attribute}' class. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EReadWriteJavaAttribute + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEReadWriteJavaAttribute() + * @generated + */ + public static final EClass EREAD_WRITE_JAVA_ATTRIBUTE = eINSTANCE.getEReadWriteJavaAttribute(); + + /** + * The meta object literal for the 'Read Only' attribute feature. + * + * + * @generated + */ + public static final EAttribute EREAD_WRITE_JAVA_ATTRIBUTE__READ_ONLY = eINSTANCE.getEReadWriteJavaAttribute_ReadOnly(); + + /** + * The meta object literal for the 'Write Only' attribute feature. + * + * + * @generated + */ + public static final EAttribute EREAD_WRITE_JAVA_ATTRIBUTE__WRITE_ONLY = eINSTANCE.getEReadWriteJavaAttribute_WriteOnly(); + + /** + * The meta object literal for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.ETypedJavaAttribute ETyped Java Attribute}' class. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.ETypedJavaAttribute + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getETypedJavaAttribute() + * @generated + */ + public static final EClass ETYPED_JAVA_ATTRIBUTE = eINSTANCE.getETypedJavaAttribute(); + + /** + * The meta object literal for the 'Type' attribute feature. + * + * + * @generated + */ + public static final EAttribute ETYPED_JAVA_ATTRIBUTE__TYPE = eINSTANCE.getETypedJavaAttribute_Type(); + + /** + * The meta object literal for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAccessMethods EXml Access Methods}' class. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAccessMethods + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlAccessMethods() + * @generated + */ + public static final EClass EXML_ACCESS_METHODS = eINSTANCE.getEXmlAccessMethods(); + + /** + * The meta object literal for the 'Get Method' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_ACCESS_METHODS__GET_METHOD = eINSTANCE.getEXmlAccessMethods_GetMethod(); + + /** + * The meta object literal for the 'Set Method' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_ACCESS_METHODS__SET_METHOD = eINSTANCE.getEXmlAccessMethods_SetMethod(); + + /** + * The meta object literal for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAnyAttribute EXml Any Attribute}' class. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAnyAttribute + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlAnyAttribute() + * @generated + */ + public static final EClass EXML_ANY_ATTRIBUTE = eINSTANCE.getEXmlAnyAttribute(); + + /** + * The meta object literal for the 'Xml Path' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_ANY_ATTRIBUTE__XML_PATH = eINSTANCE.getEXmlAnyAttribute_XmlPath(); + + /** + * The meta object literal for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAnyElement EXml Any Element}' class. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAnyElement + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlAnyElement() + * @generated + */ + public static final EClass EXML_ANY_ELEMENT = eINSTANCE.getEXmlAnyElement(); + + /** + * The meta object literal for the 'Xml Mixed' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_ANY_ELEMENT__XML_MIXED = eINSTANCE.getEXmlAnyElement_XmlMixed(); + + /** + * The meta object literal for the 'Lax' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_ANY_ELEMENT__LAX = eINSTANCE.getEXmlAnyElement_Lax(); + + /** + * The meta object literal for the 'Dom Handler' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_ANY_ELEMENT__DOM_HANDLER = eINSTANCE.getEXmlAnyElement_DomHandler(); + + /** + * The meta object literal for the 'Xml Path' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_ANY_ELEMENT__XML_PATH = eINSTANCE.getEXmlAnyElement_XmlPath(); + + /** + * The meta object literal for the 'Xml Element Refs' containment reference feature. + * + * + * @generated + */ + public static final EReference EXML_ANY_ELEMENT__XML_ELEMENT_REFS = eINSTANCE.getEXmlAnyElement_XmlElementRefs(); + + /** + * The meta object literal for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAttribute EXml Attribute}' class. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAttribute + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlAttribute() + * @generated + */ + public static final EClass EXML_ATTRIBUTE = eINSTANCE.getEXmlAttribute(); + + /** + * The meta object literal for the 'Name' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_ATTRIBUTE__NAME = eINSTANCE.getEXmlAttribute_Name(); + + /** + * The meta object literal for the 'Namespace' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_ATTRIBUTE__NAMESPACE = eINSTANCE.getEXmlAttribute_Namespace(); + + /** + * The meta object literal for the 'Required' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_ATTRIBUTE__REQUIRED = eINSTANCE.getEXmlAttribute_Required(); + + /** + * The meta object literal for the 'Xml Id' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_ATTRIBUTE__XML_ID = eINSTANCE.getEXmlAttribute_XmlId(); + + /** + * The meta object literal for the 'Xml Id Ref' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_ATTRIBUTE__XML_ID_REF = eINSTANCE.getEXmlAttribute_XmlIdRef(); + + /** + * The meta object literal for the 'Xml Key' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_ATTRIBUTE__XML_KEY = eINSTANCE.getEXmlAttribute_XmlKey(); + + /** + * The meta object literal for the 'Xml List' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_ATTRIBUTE__XML_LIST = eINSTANCE.getEXmlAttribute_XmlList(); + + /** + * The meta object literal for the 'Xml Inline Binary Data' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_ATTRIBUTE__XML_INLINE_BINARY_DATA = eINSTANCE.getEXmlAttribute_XmlInlineBinaryData(); + + /** + * The meta object literal for the 'Xml Attachment Ref' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_ATTRIBUTE__XML_ATTACHMENT_REF = eINSTANCE.getEXmlAttribute_XmlAttachmentRef(); + + /** + * The meta object literal for the 'Xml Mime Type' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_ATTRIBUTE__XML_MIME_TYPE = eINSTANCE.getEXmlAttribute_XmlMimeType(); + + /** + * The meta object literal for the 'Xml Path' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_ATTRIBUTE__XML_PATH = eINSTANCE.getEXmlAttribute_XmlPath(); + + /** + * The meta object literal for the 'Xml Abstract Null Policy' containment reference feature. + * + * + * @generated + */ + public static final EReference EXML_ATTRIBUTE__XML_ABSTRACT_NULL_POLICY = eINSTANCE.getEXmlAttribute_XmlAbstractNullPolicy(); + + /** + * The meta object literal for the 'Xml Schema Type' containment reference feature. + * + * + * @generated + */ + public static final EReference EXML_ATTRIBUTE__XML_SCHEMA_TYPE = eINSTANCE.getEXmlAttribute_XmlSchemaType(); + + /** + * The meta object literal for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlBindings EXml Bindings}' class. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlBindings + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlBindings() + * @generated + */ + public static final EClass EXML_BINDINGS = eINSTANCE.getEXmlBindings(); + + /** + * The meta object literal for the 'Xml Accessor Type' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_BINDINGS__XML_ACCESSOR_TYPE = eINSTANCE.getEXmlBindings_XmlAccessorType(); + + /** + * The meta object literal for the 'Xml Accessor Order' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_BINDINGS__XML_ACCESSOR_ORDER = eINSTANCE.getEXmlBindings_XmlAccessorOrder(); + + /** + * The meta object literal for the 'Xml Mapping Metadata Complete' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_BINDINGS__XML_MAPPING_METADATA_COMPLETE = eINSTANCE.getEXmlBindings_XmlMappingMetadataComplete(); + + /** + * The meta object literal for the 'Package Name' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_BINDINGS__PACKAGE_NAME = eINSTANCE.getEXmlBindings_PackageName(); + + /** + * The meta object literal for the 'Xml Name Transformer' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_BINDINGS__XML_NAME_TRANSFORMER = eINSTANCE.getEXmlBindings_XmlNameTransformer(); + + /** + * The meta object literal for the 'Xml Schema' containment reference feature. + * + * + * @generated + */ + public static final EReference EXML_BINDINGS__XML_SCHEMA = eINSTANCE.getEXmlBindings_XmlSchema(); + + /** + * The meta object literal for the 'Xml Schema Type' containment reference feature. + * + * + * @generated + */ + public static final EReference EXML_BINDINGS__XML_SCHEMA_TYPE = eINSTANCE.getEXmlBindings_XmlSchemaType(); + + /** + * The meta object literal for the 'Xml Schema Types' containment reference list feature. + * + * + * @generated + */ + public static final EReference EXML_BINDINGS__XML_SCHEMA_TYPES = eINSTANCE.getEXmlBindings_XmlSchemaTypes(); + + /** + * The meta object literal for the 'Xml Java Type Adapters' containment reference list feature. + * + * + * @generated + */ + public static final EReference EXML_BINDINGS__XML_JAVA_TYPE_ADAPTERS = eINSTANCE.getEXmlBindings_XmlJavaTypeAdapters(); + + /** + * The meta object literal for the 'Xml Registries' containment reference list feature. + * + * + * @generated + */ + public static final EReference EXML_BINDINGS__XML_REGISTRIES = eINSTANCE.getEXmlBindings_XmlRegistries(); + + /** + * The meta object literal for the 'Xml Enums' containment reference list feature. + * + * + * @generated + */ + public static final EReference EXML_BINDINGS__XML_ENUMS = eINSTANCE.getEXmlBindings_XmlEnums(); + + /** + * The meta object literal for the 'Java Types' containment reference list feature. + * + * + * @generated + */ + public static final EReference EXML_BINDINGS__JAVA_TYPES = eINSTANCE.getEXmlBindings_JavaTypes(); + + /** + * The meta object literal for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlClassExtractor EXml Class Extractor}' class. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlClassExtractor + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlClassExtractor() + * @generated + */ + public static final EClass EXML_CLASS_EXTRACTOR = eINSTANCE.getEXmlClassExtractor(); + + /** + * The meta object literal for the 'Class Name' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_CLASS_EXTRACTOR__CLASS_NAME = eINSTANCE.getEXmlClassExtractor_ClassName(); + + /** + * The meta object literal for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElement EXml Element}' class. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElement + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlElement() + * @generated + */ + public static final EClass EXML_ELEMENT = eINSTANCE.getEXmlElement(); + + /** + * The meta object literal for the 'Name' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_ELEMENT__NAME = eINSTANCE.getEXmlElement_Name(); + + /** + * The meta object literal for the 'Namespace' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_ELEMENT__NAMESPACE = eINSTANCE.getEXmlElement_Namespace(); + + /** + * The meta object literal for the 'Default Value' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_ELEMENT__DEFAULT_VALUE = eINSTANCE.getEXmlElement_DefaultValue(); + + /** + * The meta object literal for the 'Nillable' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_ELEMENT__NILLABLE = eINSTANCE.getEXmlElement_Nillable(); + + /** + * The meta object literal for the 'Required' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_ELEMENT__REQUIRED = eINSTANCE.getEXmlElement_Required(); + + /** + * The meta object literal for the 'Xml Id' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_ELEMENT__XML_ID = eINSTANCE.getEXmlElement_XmlId(); + + /** + * The meta object literal for the 'Xml Id Ref' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_ELEMENT__XML_ID_REF = eINSTANCE.getEXmlElement_XmlIdRef(); + + /** + * The meta object literal for the 'Xml Key' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_ELEMENT__XML_KEY = eINSTANCE.getEXmlElement_XmlKey(); + + /** + * The meta object literal for the 'Xml List' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_ELEMENT__XML_LIST = eINSTANCE.getEXmlElement_XmlList(); + + /** + * The meta object literal for the 'Xml Inline Binary Data' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_ELEMENT__XML_INLINE_BINARY_DATA = eINSTANCE.getEXmlElement_XmlInlineBinaryData(); + + /** + * The meta object literal for the 'Xml Attachment Ref' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_ELEMENT__XML_ATTACHMENT_REF = eINSTANCE.getEXmlElement_XmlAttachmentRef(); + + /** + * The meta object literal for the 'Xml Mime Type' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_ELEMENT__XML_MIME_TYPE = eINSTANCE.getEXmlElement_XmlMimeType(); + + /** + * The meta object literal for the 'Cdata' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_ELEMENT__CDATA = eINSTANCE.getEXmlElement_Cdata(); + + /** + * The meta object literal for the 'Xml Path' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_ELEMENT__XML_PATH = eINSTANCE.getEXmlElement_XmlPath(); + + /** + * The meta object literal for the 'Xml Location' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_ELEMENT__XML_LOCATION = eINSTANCE.getEXmlElement_XmlLocation(); + + /** + * The meta object literal for the 'Xml Abstract Null Policy' containment reference feature. + * + * + * @generated + */ + public static final EReference EXML_ELEMENT__XML_ABSTRACT_NULL_POLICY = eINSTANCE.getEXmlElement_XmlAbstractNullPolicy(); + + /** + * The meta object literal for the 'Xml Element Wrapper' containment reference feature. + * + * + * @generated + */ + public static final EReference EXML_ELEMENT__XML_ELEMENT_WRAPPER = eINSTANCE.getEXmlElement_XmlElementWrapper(); + + /** + * The meta object literal for the 'Xml Map' containment reference feature. + * + * + * @generated + */ + public static final EReference EXML_ELEMENT__XML_MAP = eINSTANCE.getEXmlElement_XmlMap(); + + /** + * The meta object literal for the 'Xml Schema Type' containment reference feature. + * + * + * @generated + */ + public static final EReference EXML_ELEMENT__XML_SCHEMA_TYPE = eINSTANCE.getEXmlElement_XmlSchemaType(); + + /** + * The meta object literal for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementDecl EXml Element Decl}' class. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementDecl + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlElementDecl() + * @generated + */ + public static final EClass EXML_ELEMENT_DECL = eINSTANCE.getEXmlElementDecl(); + + /** + * The meta object literal for the 'Java Method' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_ELEMENT_DECL__JAVA_METHOD = eINSTANCE.getEXmlElementDecl_JavaMethod(); + + /** + * The meta object literal for the 'Name' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_ELEMENT_DECL__NAME = eINSTANCE.getEXmlElementDecl_Name(); + + /** + * The meta object literal for the 'Namespace' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_ELEMENT_DECL__NAMESPACE = eINSTANCE.getEXmlElementDecl_Namespace(); + + /** + * The meta object literal for the 'Default Value' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_ELEMENT_DECL__DEFAULT_VALUE = eINSTANCE.getEXmlElementDecl_DefaultValue(); + + /** + * The meta object literal for the 'Scope' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_ELEMENT_DECL__SCOPE = eINSTANCE.getEXmlElementDecl_Scope(); + + /** + * The meta object literal for the 'Substitution Head Name' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_ELEMENT_DECL__SUBSTITUTION_HEAD_NAME = eINSTANCE.getEXmlElementDecl_SubstitutionHeadName(); + + /** + * The meta object literal for the 'Substitution Head Namespace' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_ELEMENT_DECL__SUBSTITUTION_HEAD_NAMESPACE = eINSTANCE.getEXmlElementDecl_SubstitutionHeadNamespace(); + + /** + * The meta object literal for the 'Type' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_ELEMENT_DECL__TYPE = eINSTANCE.getEXmlElementDecl_Type(); + + /** + * The meta object literal for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementRef EXml Element Ref}' class. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementRef + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlElementRef() + * @generated + */ + public static final EClass EXML_ELEMENT_REF = eINSTANCE.getEXmlElementRef(); + + /** + * The meta object literal for the 'Name' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_ELEMENT_REF__NAME = eINSTANCE.getEXmlElementRef_Name(); + + /** + * The meta object literal for the 'Namespace' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_ELEMENT_REF__NAMESPACE = eINSTANCE.getEXmlElementRef_Namespace(); + + /** + * The meta object literal for the 'Xml Mixed' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_ELEMENT_REF__XML_MIXED = eINSTANCE.getEXmlElementRef_XmlMixed(); + + /** + * The meta object literal for the 'Xml Element Wrapper' containment reference feature. + * + * + * @generated + */ + public static final EReference EXML_ELEMENT_REF__XML_ELEMENT_WRAPPER = eINSTANCE.getEXmlElementRef_XmlElementWrapper(); + + /** + * The meta object literal for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementRefs EXml Element Refs}' class. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementRefs + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlElementRefs() + * @generated + */ + public static final EClass EXML_ELEMENT_REFS = eINSTANCE.getEXmlElementRefs(); + + /** + * The meta object literal for the 'Xml Mixed' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_ELEMENT_REFS__XML_MIXED = eINSTANCE.getEXmlElementRefs_XmlMixed(); + + /** + * The meta object literal for the 'Xml Element Refs' containment reference list feature. + * + * + * @generated + */ + public static final EReference EXML_ELEMENT_REFS__XML_ELEMENT_REFS = eINSTANCE.getEXmlElementRefs_XmlElementRefs(); + + /** + * The meta object literal for the 'Xml Element Wrapper' containment reference feature. + * + * + * @generated + */ + public static final EReference EXML_ELEMENT_REFS__XML_ELEMENT_WRAPPER = eINSTANCE.getEXmlElementRefs_XmlElementWrapper(); + + /** + * The meta object literal for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElements EXml Elements}' class. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElements + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlElements() + * @generated + */ + public static final EClass EXML_ELEMENTS = eINSTANCE.getEXmlElements(); + + /** + * The meta object literal for the 'Xml Id Ref' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_ELEMENTS__XML_ID_REF = eINSTANCE.getEXmlElements_XmlIdRef(); + + /** + * The meta object literal for the 'Xml List' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_ELEMENTS__XML_LIST = eINSTANCE.getEXmlElements_XmlList(); + + /** + * The meta object literal for the 'Xml Elements' containment reference list feature. + * + * + * @generated + */ + public static final EReference EXML_ELEMENTS__XML_ELEMENTS = eINSTANCE.getEXmlElements_XmlElements(); + + /** + * The meta object literal for the 'Xml Element Wrapper' containment reference feature. + * + * + * @generated + */ + public static final EReference EXML_ELEMENTS__XML_ELEMENT_WRAPPER = eINSTANCE.getEXmlElements_XmlElementWrapper(); + + /** + * The meta object literal for the 'Xml Join Nodes' containment reference list feature. + * + * + * @generated + */ + public static final EReference EXML_ELEMENTS__XML_JOIN_NODES = eINSTANCE.getEXmlElements_XmlJoinNodes(); + + /** + * The meta object literal for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementWrapper EXml Element Wrapper}' class. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlElementWrapper + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlElementWrapper() + * @generated + */ + public static final EClass EXML_ELEMENT_WRAPPER = eINSTANCE.getEXmlElementWrapper(); + + /** + * The meta object literal for the 'Name' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_ELEMENT_WRAPPER__NAME = eINSTANCE.getEXmlElementWrapper_Name(); + + /** + * The meta object literal for the 'Namespace' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_ELEMENT_WRAPPER__NAMESPACE = eINSTANCE.getEXmlElementWrapper_Namespace(); + + /** + * The meta object literal for the 'Nillable' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_ELEMENT_WRAPPER__NILLABLE = eINSTANCE.getEXmlElementWrapper_Nillable(); + + /** + * The meta object literal for the 'Required' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_ELEMENT_WRAPPER__REQUIRED = eINSTANCE.getEXmlElementWrapper_Required(); + + /** + * The meta object literal for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlEnum EXml Enum}' class. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlEnum + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlEnum() + * @generated + */ + public static final EClass EXML_ENUM = eINSTANCE.getEXmlEnum(); + + /** + * The meta object literal for the 'Java Enum' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_ENUM__JAVA_ENUM = eINSTANCE.getEXmlEnum_JavaEnum(); + + /** + * The meta object literal for the 'Value' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_ENUM__VALUE = eINSTANCE.getEXmlEnum_Value(); + + /** + * The meta object literal for the 'Xml Enum Values' containment reference list feature. + * + * + * @generated + */ + public static final EReference EXML_ENUM__XML_ENUM_VALUES = eINSTANCE.getEXmlEnum_XmlEnumValues(); + + /** + * The meta object literal for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlEnumValue EXml Enum Value}' class. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlEnumValue + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlEnumValue() + * @generated + */ + public static final EClass EXML_ENUM_VALUE = eINSTANCE.getEXmlEnumValue(); + + /** + * The meta object literal for the 'Java Enum Value' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_ENUM_VALUE__JAVA_ENUM_VALUE = eINSTANCE.getEXmlEnumValue_JavaEnumValue(); + + /** + * The meta object literal for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlInverseReference EXml Inverse Reference}' class. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlInverseReference + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlInverseReference() + * @generated + */ + public static final EClass EXML_INVERSE_REFERENCE = eINSTANCE.getEXmlInverseReference(); + + /** + * The meta object literal for the 'Mapped By' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_INVERSE_REFERENCE__MAPPED_BY = eINSTANCE.getEXmlInverseReference_MappedBy(); + + /** + * The meta object literal for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlIsSetNullPolicy EXml Is Set Null Policy}' class. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlIsSetNullPolicy + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlIsSetNullPolicy() + * @generated + */ + public static final EClass EXML_IS_SET_NULL_POLICY = eINSTANCE.getEXmlIsSetNullPolicy(); + + /** + * The meta object literal for the 'Is Set Method Name' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_IS_SET_NULL_POLICY__IS_SET_METHOD_NAME = eINSTANCE.getEXmlIsSetNullPolicy_IsSetMethodName(); + + /** + * The meta object literal for the 'Xml Is Set Parameters' containment reference list feature. + * + * + * @generated + */ + public static final EReference EXML_IS_SET_NULL_POLICY__XML_IS_SET_PARAMETERS = eINSTANCE.getEXmlIsSetNullPolicy_XmlIsSetParameters(); + + /** + * The meta object literal for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlIsSetParameter EXml Is Set Parameter}' class. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlIsSetParameter + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlIsSetParameter() + * @generated + */ + public static final EClass EXML_IS_SET_PARAMETER = eINSTANCE.getEXmlIsSetParameter(); + + /** + * The meta object literal for the 'Value' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_IS_SET_PARAMETER__VALUE = eINSTANCE.getEXmlIsSetParameter_Value(); + + /** + * The meta object literal for the 'Type' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_IS_SET_PARAMETER__TYPE = eINSTANCE.getEXmlIsSetParameter_Type(); + + /** + * The meta object literal for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlJavaTypeAdapter EXml Java Type Adapter}' class. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlJavaTypeAdapter + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlJavaTypeAdapter() + * @generated + */ + public static final EClass EXML_JAVA_TYPE_ADAPTER = eINSTANCE.getEXmlJavaTypeAdapter(); + + /** + * The meta object literal for the 'Value' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_JAVA_TYPE_ADAPTER__VALUE = eINSTANCE.getEXmlJavaTypeAdapter_Value(); + + /** + * The meta object literal for the 'Type' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_JAVA_TYPE_ADAPTER__TYPE = eINSTANCE.getEXmlJavaTypeAdapter_Type(); + + /** + * The meta object literal for the 'Value Type' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_JAVA_TYPE_ADAPTER__VALUE_TYPE = eINSTANCE.getEXmlJavaTypeAdapter_ValueType(); + + /** + * The meta object literal for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlJoinNode EXml Join Node}' class. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlJoinNode + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlJoinNode() + * @generated + */ + public static final EClass EXML_JOIN_NODE = eINSTANCE.getEXmlJoinNode(); + + /** + * The meta object literal for the 'Xml Path' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_JOIN_NODE__XML_PATH = eINSTANCE.getEXmlJoinNode_XmlPath(); + + /** + * The meta object literal for the 'Referenced Xml Path' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_JOIN_NODE__REFERENCED_XML_PATH = eINSTANCE.getEXmlJoinNode_ReferencedXmlPath(); + + /** + * The meta object literal for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlJoinNodes EXml Join Nodes}' class. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlJoinNodes + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlJoinNodes() + * @generated + */ + public static final EClass EXML_JOIN_NODES = eINSTANCE.getEXmlJoinNodes(); + + /** + * The meta object literal for the 'Xml Join Nodes' containment reference list feature. + * + * + * @generated + */ + public static final EReference EXML_JOIN_NODES__XML_JOIN_NODES = eINSTANCE.getEXmlJoinNodes_XmlJoinNodes(); + + /** + * The meta object literal for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlMap EXml Map}' class. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlMap + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlMap() + * @generated + */ + public static final EClass EXML_MAP = eINSTANCE.getEXmlMap(); + + /** + * The meta object literal for the 'Key' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_MAP__KEY = eINSTANCE.getEXmlMap_Key(); + + /** + * The meta object literal for the 'Value' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_MAP__VALUE = eINSTANCE.getEXmlMap_Value(); + + /** + * The meta object literal for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlNullPolicy EXml Null Policy}' class. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlNullPolicy + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlNullPolicy() + * @generated + */ + public static final EClass EXML_NULL_POLICY = eINSTANCE.getEXmlNullPolicy(); + + /** + * The meta object literal for the 'Is Set Performed For Absent Node' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_NULL_POLICY__IS_SET_PERFORMED_FOR_ABSENT_NODE = eINSTANCE.getEXmlNullPolicy_IsSetPerformedForAbsentNode(); + + /** + * The meta object literal for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlNs EXml Ns}' class. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlNs + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlNs() + * @generated + */ + public static final EClass EXML_NS = eINSTANCE.getEXmlNs(); + + /** + * The meta object literal for the 'Namespace Uri' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_NS__NAMESPACE_URI = eINSTANCE.getEXmlNs_NamespaceUri(); + + /** + * The meta object literal for the 'Prefix' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_NS__PREFIX = eINSTANCE.getEXmlNs_Prefix(); + + /** + * The meta object literal for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlProperty EXml Property}' class. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlProperty + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlProperty() + * @generated + */ + public static final EClass EXML_PROPERTY = eINSTANCE.getEXmlProperty(); + + /** + * The meta object literal for the 'Name' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_PROPERTY__NAME = eINSTANCE.getEXmlProperty_Name(); + + /** + * The meta object literal for the 'Value' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_PROPERTY__VALUE = eINSTANCE.getEXmlProperty_Value(); + + /** + * The meta object literal for the 'Value Type' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_PROPERTY__VALUE_TYPE = eINSTANCE.getEXmlProperty_ValueType(); + + /** + * The meta object literal for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlReadTransformer EXml Read Transformer}' class. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlReadTransformer + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlReadTransformer() + * @generated + */ + public static final EClass EXML_READ_TRANSFORMER = eINSTANCE.getEXmlReadTransformer(); + + /** + * The meta object literal for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlRegistry EXml Registry}' class. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlRegistry + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlRegistry() + * @generated + */ + public static final EClass EXML_REGISTRY = eINSTANCE.getEXmlRegistry(); + + /** + * The meta object literal for the 'Name' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_REGISTRY__NAME = eINSTANCE.getEXmlRegistry_Name(); + + /** + * The meta object literal for the 'Xml Element Decls' containment reference list feature. + * + * + * @generated + */ + public static final EReference EXML_REGISTRY__XML_ELEMENT_DECLS = eINSTANCE.getEXmlRegistry_XmlElementDecls(); + + /** + * The meta object literal for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlRootElement EXml Root Element}' class. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlRootElement + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlRootElement() + * @generated + */ + public static final EClass EXML_ROOT_ELEMENT = eINSTANCE.getEXmlRootElement(); + + /** + * The meta object literal for the 'Name' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_ROOT_ELEMENT__NAME = eINSTANCE.getEXmlRootElement_Name(); + + /** + * The meta object literal for the 'Namespace' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_ROOT_ELEMENT__NAMESPACE = eINSTANCE.getEXmlRootElement_Namespace(); + + /** + * The meta object literal for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlSchema EXml Schema}' class. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlSchema + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlSchema() + * @generated + */ + public static final EClass EXML_SCHEMA = eINSTANCE.getEXmlSchema(); + + /** + * The meta object literal for the 'Attribute Form Default' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_SCHEMA__ATTRIBUTE_FORM_DEFAULT = eINSTANCE.getEXmlSchema_AttributeFormDefault(); + + /** + * The meta object literal for the 'Element Form Default' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_SCHEMA__ELEMENT_FORM_DEFAULT = eINSTANCE.getEXmlSchema_ElementFormDefault(); + + /** + * The meta object literal for the 'Location' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_SCHEMA__LOCATION = eINSTANCE.getEXmlSchema_Location(); + + /** + * The meta object literal for the 'Namespace' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_SCHEMA__NAMESPACE = eINSTANCE.getEXmlSchema_Namespace(); + + /** + * The meta object literal for the 'Xmlns' containment reference list feature. + * + * + * @generated + */ + public static final EReference EXML_SCHEMA__XMLNS = eINSTANCE.getEXmlSchema_Xmlns(); + + /** + * The meta object literal for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlSchemaType EXml Schema Type}' class. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlSchemaType + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlSchemaType() + * @generated + */ + public static final EClass EXML_SCHEMA_TYPE = eINSTANCE.getEXmlSchemaType(); + + /** + * The meta object literal for the 'Name' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_SCHEMA_TYPE__NAME = eINSTANCE.getEXmlSchemaType_Name(); + + /** + * The meta object literal for the 'Namespace' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_SCHEMA_TYPE__NAMESPACE = eINSTANCE.getEXmlSchemaType_Namespace(); + + /** + * The meta object literal for the 'Type' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_SCHEMA_TYPE__TYPE = eINSTANCE.getEXmlSchemaType_Type(); + + /** + * The meta object literal for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlTransformation EXml Transformation}' class. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlTransformation + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlTransformation() + * @generated + */ + public static final EClass EXML_TRANSFORMATION = eINSTANCE.getEXmlTransformation(); + + /** + * The meta object literal for the 'Optional' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_TRANSFORMATION__OPTIONAL = eINSTANCE.getEXmlTransformation_Optional(); + + /** + * The meta object literal for the 'Xml Read Transformer' containment reference feature. + * + * + * @generated + */ + public static final EReference EXML_TRANSFORMATION__XML_READ_TRANSFORMER = eINSTANCE.getEXmlTransformation_XmlReadTransformer(); + + /** + * The meta object literal for the 'Xml Write Transformers' containment reference list feature. + * + * + * @generated + */ + public static final EReference EXML_TRANSFORMATION__XML_WRITE_TRANSFORMERS = eINSTANCE.getEXmlTransformation_XmlWriteTransformers(); + + /** + * The meta object literal for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlTransient EXml Transient}' class. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlTransient + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlTransient() + * @generated + */ + public static final EClass EXML_TRANSIENT = eINSTANCE.getEXmlTransient(); + + /** + * The meta object literal for the 'Xml Location' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_TRANSIENT__XML_LOCATION = eINSTANCE.getEXmlTransient_XmlLocation(); + + /** + * The meta object literal for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlType EXml Type}' class. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlType + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlType() + * @generated + */ + public static final EClass EXML_TYPE = eINSTANCE.getEXmlType(); + + /** + * The meta object literal for the 'Name' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_TYPE__NAME = eINSTANCE.getEXmlType_Name(); + + /** + * The meta object literal for the 'Namespace' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_TYPE__NAMESPACE = eINSTANCE.getEXmlType_Namespace(); + + /** + * The meta object literal for the 'Factory Class' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_TYPE__FACTORY_CLASS = eINSTANCE.getEXmlType_FactoryClass(); + + /** + * The meta object literal for the 'Factory Method' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_TYPE__FACTORY_METHOD = eINSTANCE.getEXmlType_FactoryMethod(); + + /** + * The meta object literal for the 'Prop Order' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_TYPE__PROP_ORDER = eINSTANCE.getEXmlType_PropOrder(); + + /** + * The meta object literal for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlValue EXml Value}' class. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlValue + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlValue() + * @generated + */ + public static final EClass EXML_VALUE = eINSTANCE.getEXmlValue(); + + /** + * The meta object literal for the 'Cdata' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_VALUE__CDATA = eINSTANCE.getEXmlValue_Cdata(); + + /** + * The meta object literal for the 'Xml Abstract Null Policy' containment reference feature. + * + * + * @generated + */ + public static final EReference EXML_VALUE__XML_ABSTRACT_NULL_POLICY = eINSTANCE.getEXmlValue_XmlAbstractNullPolicy(); + + /** + * The meta object literal for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlVirtualAccessMethods EXml Virtual Access Methods}' class. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlVirtualAccessMethods + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlVirtualAccessMethods() + * @generated + */ + public static final EClass EXML_VIRTUAL_ACCESS_METHODS = eINSTANCE.getEXmlVirtualAccessMethods(); + + /** + * The meta object literal for the 'Get Method' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_VIRTUAL_ACCESS_METHODS__GET_METHOD = eINSTANCE.getEXmlVirtualAccessMethods_GetMethod(); + + /** + * The meta object literal for the 'Set Method' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_VIRTUAL_ACCESS_METHODS__SET_METHOD = eINSTANCE.getEXmlVirtualAccessMethods_SetMethod(); + + /** + * The meta object literal for the 'Schema' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_VIRTUAL_ACCESS_METHODS__SCHEMA = eINSTANCE.getEXmlVirtualAccessMethods_Schema(); + + /** + * The meta object literal for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlWriteTransformer EXml Write Transformer}' class. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlWriteTransformer + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlWriteTransformer() + * @generated + */ + public static final EClass EXML_WRITE_TRANSFORMER = eINSTANCE.getEXmlWriteTransformer(); + + /** + * The meta object literal for the 'Xml Path' attribute feature. + * + * + * @generated + */ + public static final EAttribute EXML_WRITE_TRANSFORMER__XML_PATH = eINSTANCE.getEXmlWriteTransformer_XmlPath(); + + /** + * The meta object literal for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAccessOrder EXml Access Order}' enum. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAccessOrder + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlAccessOrder() + * @generated + */ + public static final EEnum EXML_ACCESS_ORDER = eINSTANCE.getEXmlAccessOrder(); + + /** + * The meta object literal for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAccessType EXml Access Type}' enum. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAccessType + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlAccessType() + * @generated + */ + public static final EEnum EXML_ACCESS_TYPE = eINSTANCE.getEXmlAccessType(); + + /** + * The meta object literal for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlMarshalNullRepresentation EXml Marshal Null Representation}' enum. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlMarshalNullRepresentation + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlMarshalNullRepresentation() + * @generated + */ + public static final EEnum EXML_MARSHAL_NULL_REPRESENTATION = eINSTANCE.getEXmlMarshalNullRepresentation(); + + /** + * The meta object literal for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlNsForm EXml Ns Form}' enum. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlNsForm + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlNsForm() + * @generated + */ + public static final EEnum EXML_NS_FORM = eINSTANCE.getEXmlNsForm(); + + /** + * The meta object literal for the '{@link org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlVirtualAccessMethodsSchema EXml Virtual Access Methods Schema}' enum. + * + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlVirtualAccessMethodsSchema + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlVirtualAccessMethodsSchema() + * @generated + */ + public static final EEnum EXML_VIRTUAL_ACCESS_METHODS_SCHEMA = eINSTANCE.getEXmlVirtualAccessMethodsSchema(); + + /** + * The meta object literal for the 'EProp Order' data type. + * + * + * @see java.util.List + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEPropOrder() + * @generated + */ + public static final EDataType EPROP_ORDER = eINSTANCE.getEPropOrder(); + + /** + * The meta object literal for the 'EXml See Also' data type. + * + * + * @see java.util.List + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage#getEXmlSeeAlso() + * @generated + */ + public static final EDataType EXML_SEE_ALSO = eINSTANCE.getEXmlSeeAlso(); + + } + +} //OxmPackage diff --git a/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/OxmXmlResourceFactory.java b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/OxmXmlResourceFactory.java new file mode 100644 index 0000000000..690b8cc2be --- /dev/null +++ b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/OxmXmlResourceFactory.java @@ -0,0 +1,46 @@ +/******************************************************************************* + * Copyright (c) 2007, 2012 Oracle. All rights reserved. + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v1.0, which accompanies this distribution + * and is available at http://www.eclipse.org/legal/epl-v10.html. + * + * Contributors: + * Oracle - initial API and implementation + ******************************************************************************/ +package org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm; + +import org.eclipse.emf.common.util.URI; +import org.eclipse.jpt.common.core.resource.xml.JptXmlResource; +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; + +/** + * Provisional API: This interface is part of an interim API that is still + * under development and expected to change significantly before reaching + * stability. It is available at this early stage to solicit feedback from + * pioneering adopters on the understanding that any code that uses this API + * will almost certainly be broken (repeatedly) as the API evolves. + */ +public class OxmXmlResourceFactory + extends TranslatorResourceFactory { + + public OxmXmlResourceFactory() { + this(RendererFactory.getDefaultRendererFactory()); + } + + public OxmXmlResourceFactory(RendererFactory aRendererFactory) { + super(aRendererFactory); + } + + public OxmXmlResourceFactory(RendererFactory aRendererFactory, boolean listeningForUpdates) { + super(aRendererFactory, listeningForUpdates); + } + + + @Override + protected TranslatorResource createResource(URI uri, Renderer renderer) { + return new JptXmlResource(uri, renderer, EXmlBindings.CONTENT_TYPE, EXmlBindings.getRootTranslator()); + } +} diff --git a/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/util/OxmValidator.java b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/util/OxmValidator.java new file mode 100644 index 0000000000..c7ce432d68 --- /dev/null +++ b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/resource/oxm/util/OxmValidator.java @@ -0,0 +1,805 @@ +/** + */ +package org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.util; + +import java.util.Iterator; +import java.util.List; +import java.util.Map; + +import org.eclipse.emf.common.util.DiagnosticChain; +import org.eclipse.emf.common.util.ResourceLocator; + +import org.eclipse.emf.ecore.EObject; +import org.eclipse.emf.ecore.EPackage; + +import org.eclipse.emf.ecore.util.EObjectValidator; + +import org.eclipse.emf.ecore.xml.type.XMLTypePackage; + +import org.eclipse.emf.ecore.xml.type.util.XMLTypeValidator; + +import org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.*; + +/** + * + * The Validator for the model. + * + * @see org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.OxmPackage + * @generated + */ +public class OxmValidator extends EObjectValidator +{ + /** + * The cached model package + * + * + * @generated + */ + public static final OxmValidator INSTANCE = new OxmValidator(); + + /** + * A constant for the {@link org.eclipse.emf.common.util.Diagnostic#getSource() source} of diagnostic {@link org.eclipse.emf.common.util.Diagnostic#getCode() codes} from this package. + * + * + * @see org.eclipse.emf.common.util.Diagnostic#getSource() + * @see org.eclipse.emf.common.util.Diagnostic#getCode() + * @generated + */ + public static final String DIAGNOSTIC_SOURCE = "org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm"; + + /** + * A constant with a fixed name that can be used as the base value for additional hand written constants. + * + * + * @generated + */ + private static final int GENERATED_DIAGNOSTIC_CODE_COUNT = 0; + + /** + * A constant with a fixed name that can be used as the base value for additional hand written constants in a derived class. + * + * + * @generated + */ + protected static final int DIAGNOSTIC_CODE_COUNT = GENERATED_DIAGNOSTIC_CODE_COUNT; + + /** + * The cached base package validator. + * + * + * @generated + */ + protected XMLTypeValidator xmlTypeValidator; + + /** + * Creates an instance of the switch. + * + * + * @generated + */ + public OxmValidator() + { + super(); + xmlTypeValidator = XMLTypeValidator.INSTANCE; + } + + /** + * Returns the package of this validator switch. + * + * + * @generated + */ + @Override + protected EPackage getEPackage() + { + return OxmPackage.eINSTANCE; + } + + /** + * Calls validateXXX for the corresponding classifier of the model. + * + * + * @generated + */ + @Override + protected boolean validate(int classifierID, Object value, DiagnosticChain diagnostics, Map context) + { + switch (classifierID) + { + case OxmPackage.EABSTRACT_XML_NULL_POLICY: + return validateEAbstractXmlNullPolicy((EAbstractXmlNullPolicy)value, diagnostics, context); + case OxmPackage.EABSTRACT_XML_TRANSFORMER: + return validateEAbstractXmlTransformer((EAbstractXmlTransformer)value, diagnostics, context); + case OxmPackage.EACCESSIBLE_JAVA_ATTRIBUTE: + return validateEAccessibleJavaAttribute((EAccessibleJavaAttribute)value, diagnostics, context); + case OxmPackage.EADAPTABLE_JAVA_ATTRIBUTE: + return validateEAdaptableJavaAttribute((EAdaptableJavaAttribute)value, diagnostics, context); + case OxmPackage.ECONTAINER_JAVA_ATTRIBUTE: + return validateEContainerJavaAttribute((EContainerJavaAttribute)value, diagnostics, context); + case OxmPackage.EJAVA_ATTRIBUTE: + return validateEJavaAttribute((EJavaAttribute)value, diagnostics, context); + case OxmPackage.EJAVA_TYPE: + return validateEJavaType((EJavaType)value, diagnostics, context); + case OxmPackage.EPROPERTY_HOLDER: + return validateEPropertyHolder((EPropertyHolder)value, diagnostics, context); + case OxmPackage.EREAD_WRITE_JAVA_ATTRIBUTE: + return validateEReadWriteJavaAttribute((EReadWriteJavaAttribute)value, diagnostics, context); + case OxmPackage.ETYPED_JAVA_ATTRIBUTE: + return validateETypedJavaAttribute((ETypedJavaAttribute)value, diagnostics, context); + case OxmPackage.EXML_ACCESS_METHODS: + return validateEXmlAccessMethods((EXmlAccessMethods)value, diagnostics, context); + case OxmPackage.EXML_ANY_ATTRIBUTE: + return validateEXmlAnyAttribute((EXmlAnyAttribute)value, diagnostics, context); + case OxmPackage.EXML_ANY_ELEMENT: + return validateEXmlAnyElement((EXmlAnyElement)value, diagnostics, context); + case OxmPackage.EXML_ATTRIBUTE: + return validateEXmlAttribute((EXmlAttribute)value, diagnostics, context); + case OxmPackage.EXML_BINDINGS: + return validateEXmlBindings((EXmlBindings)value, diagnostics, context); + case OxmPackage.EXML_CLASS_EXTRACTOR: + return validateEXmlClassExtractor((EXmlClassExtractor)value, diagnostics, context); + case OxmPackage.EXML_ELEMENT: + return validateEXmlElement((EXmlElement)value, diagnostics, context); + case OxmPackage.EXML_ELEMENT_DECL: + return validateEXmlElementDecl((EXmlElementDecl)value, diagnostics, context); + case OxmPackage.EXML_ELEMENT_REF: + return validateEXmlElementRef((EXmlElementRef)value, diagnostics, context); + case OxmPackage.EXML_ELEMENT_REFS: + return validateEXmlElementRefs((EXmlElementRefs)value, diagnostics, context); + case OxmPackage.EXML_ELEMENTS: + return validateEXmlElements((EXmlElements)value, diagnostics, context); + case OxmPackage.EXML_ELEMENT_WRAPPER: + return validateEXmlElementWrapper((EXmlElementWrapper)value, diagnostics, context); + case OxmPackage.EXML_ENUM: + return validateEXmlEnum((EXmlEnum)value, diagnostics, context); + case OxmPackage.EXML_ENUM_VALUE: + return validateEXmlEnumValue((EXmlEnumValue)value, diagnostics, context); + case OxmPackage.EXML_INVERSE_REFERENCE: + return validateEXmlInverseReference((EXmlInverseReference)value, diagnostics, context); + case OxmPackage.EXML_IS_SET_NULL_POLICY: + return validateEXmlIsSetNullPolicy((EXmlIsSetNullPolicy)value, diagnostics, context); + case OxmPackage.EXML_IS_SET_PARAMETER: + return validateEXmlIsSetParameter((EXmlIsSetParameter)value, diagnostics, context); + case OxmPackage.EXML_JAVA_TYPE_ADAPTER: + return validateEXmlJavaTypeAdapter((EXmlJavaTypeAdapter)value, diagnostics, context); + case OxmPackage.EXML_JOIN_NODE: + return validateEXmlJoinNode((EXmlJoinNode)value, diagnostics, context); + case OxmPackage.EXML_JOIN_NODES: + return validateEXmlJoinNodes((EXmlJoinNodes)value, diagnostics, context); + case OxmPackage.EXML_MAP: + return validateEXmlMap((EXmlMap)value, diagnostics, context); + case OxmPackage.EXML_NULL_POLICY: + return validateEXmlNullPolicy((EXmlNullPolicy)value, diagnostics, context); + case OxmPackage.EXML_NS: + return validateEXmlNs((EXmlNs)value, diagnostics, context); + case OxmPackage.EXML_PROPERTY: + return validateEXmlProperty((EXmlProperty)value, diagnostics, context); + case OxmPackage.EXML_READ_TRANSFORMER: + return validateEXmlReadTransformer((EXmlReadTransformer)value, diagnostics, context); + case OxmPackage.EXML_REGISTRY: + return validateEXmlRegistry((EXmlRegistry)value, diagnostics, context); + case OxmPackage.EXML_ROOT_ELEMENT: + return validateEXmlRootElement((EXmlRootElement)value, diagnostics, context); + case OxmPackage.EXML_SCHEMA: + return validateEXmlSchema((EXmlSchema)value, diagnostics, context); + case OxmPackage.EXML_SCHEMA_TYPE: + return validateEXmlSchemaType((EXmlSchemaType)value, diagnostics, context); + case OxmPackage.EXML_TRANSFORMATION: + return validateEXmlTransformation((EXmlTransformation)value, diagnostics, context); + case OxmPackage.EXML_TRANSIENT: + return validateEXmlTransient((EXmlTransient)value, diagnostics, context); + case OxmPackage.EXML_TYPE: + return validateEXmlType((EXmlType)value, diagnostics, context); + case OxmPackage.EXML_VALUE: + return validateEXmlValue((EXmlValue)value, diagnostics, context); + case OxmPackage.EXML_VIRTUAL_ACCESS_METHODS: + return validateEXmlVirtualAccessMethods((EXmlVirtualAccessMethods)value, diagnostics, context); + case OxmPackage.EXML_WRITE_TRANSFORMER: + return validateEXmlWriteTransformer((EXmlWriteTransformer)value, diagnostics, context); + case OxmPackage.EXML_ACCESS_ORDER: + return validateEXmlAccessOrder((EXmlAccessOrder)value, diagnostics, context); + case OxmPackage.EXML_ACCESS_TYPE: + return validateEXmlAccessType((EXmlAccessType)value, diagnostics, context); + case OxmPackage.EXML_MARSHAL_NULL_REPRESENTATION: + return validateEXmlMarshalNullRepresentation((EXmlMarshalNullRepresentation)value, diagnostics, context); + case OxmPackage.EXML_NS_FORM: + return validateEXmlNsForm((EXmlNsForm)value, diagnostics, context); + case OxmPackage.EXML_VIRTUAL_ACCESS_METHODS_SCHEMA: + return validateEXmlVirtualAccessMethodsSchema((EXmlVirtualAccessMethodsSchema)value, diagnostics, context); + case OxmPackage.EPROP_ORDER: + return validateEPropOrder((List)value, diagnostics, context); + case OxmPackage.EXML_SEE_ALSO: + return validateEXmlSeeAlso((List)value, diagnostics, context); + default: + return true; + } + } + + /** + * + * + * @generated + */ + public boolean validateEAbstractXmlNullPolicy(EAbstractXmlNullPolicy eAbstractXmlNullPolicy, DiagnosticChain diagnostics, Map context) + { + return validate_EveryDefaultConstraint((EObject)eAbstractXmlNullPolicy, diagnostics, context); + } + + /** + * + * + * @generated + */ + public boolean validateEAbstractXmlTransformer(EAbstractXmlTransformer eAbstractXmlTransformer, DiagnosticChain diagnostics, Map context) + { + return validate_EveryDefaultConstraint((EObject)eAbstractXmlTransformer, diagnostics, context); + } + + /** + * + * + * @generated + */ + public boolean validateEAccessibleJavaAttribute(EAccessibleJavaAttribute eAccessibleJavaAttribute, DiagnosticChain diagnostics, Map context) + { + return validate_EveryDefaultConstraint((EObject)eAccessibleJavaAttribute, diagnostics, context); + } + + /** + * + * + * @generated + */ + public boolean validateEAdaptableJavaAttribute(EAdaptableJavaAttribute eAdaptableJavaAttribute, DiagnosticChain diagnostics, Map context) + { + return validate_EveryDefaultConstraint((EObject)eAdaptableJavaAttribute, diagnostics, context); + } + + /** + * + * + * @generated + */ + public boolean validateEContainerJavaAttribute(EContainerJavaAttribute eContainerJavaAttribute, DiagnosticChain diagnostics, Map context) + { + return validate_EveryDefaultConstraint((EObject)eContainerJavaAttribute, diagnostics, context); + } + + /** + * + * + * @generated + */ + public boolean validateEJavaAttribute(EJavaAttribute eJavaAttribute, DiagnosticChain diagnostics, Map context) + { + return validate_EveryDefaultConstraint((EObject)eJavaAttribute, diagnostics, context); + } + + /** + * + * + * @generated + */ + public boolean validateEJavaType(EJavaType eJavaType, DiagnosticChain diagnostics, Map context) + { + return validate_EveryDefaultConstraint((EObject)eJavaType, diagnostics, context); + } + + /** + * + * + * @generated + */ + public boolean validateEPropertyHolder(EPropertyHolder ePropertyHolder, DiagnosticChain diagnostics, Map context) + { + return validate_EveryDefaultConstraint((EObject)ePropertyHolder, diagnostics, context); + } + + /** + * + * + * @generated + */ + public boolean validateEReadWriteJavaAttribute(EReadWriteJavaAttribute eReadWriteJavaAttribute, DiagnosticChain diagnostics, Map context) + { + return validate_EveryDefaultConstraint((EObject)eReadWriteJavaAttribute, diagnostics, context); + } + + /** + * + * + * @generated + */ + public boolean validateETypedJavaAttribute(ETypedJavaAttribute eTypedJavaAttribute, DiagnosticChain diagnostics, Map context) + { + return validate_EveryDefaultConstraint((EObject)eTypedJavaAttribute, diagnostics, context); + } + + /** + * + * + * @generated + */ + public boolean validateEXmlAccessMethods(EXmlAccessMethods eXmlAccessMethods, DiagnosticChain diagnostics, Map context) + { + return validate_EveryDefaultConstraint((EObject)eXmlAccessMethods, diagnostics, context); + } + + /** + * + * + * @generated + */ + public boolean validateEXmlAnyAttribute(EXmlAnyAttribute eXmlAnyAttribute, DiagnosticChain diagnostics, Map context) + { + return validate_EveryDefaultConstraint((EObject)eXmlAnyAttribute, diagnostics, context); + } + + /** + * + * + * @generated + */ + public boolean validateEXmlAnyElement(EXmlAnyElement eXmlAnyElement, DiagnosticChain diagnostics, Map context) + { + return validate_EveryDefaultConstraint((EObject)eXmlAnyElement, diagnostics, context); + } + + /** + * + * + * @generated + */ + public boolean validateEXmlAttribute(EXmlAttribute eXmlAttribute, DiagnosticChain diagnostics, Map context) + { + return validate_EveryDefaultConstraint((EObject)eXmlAttribute, diagnostics, context); + } + + /** + * + * + * @generated + */ + public boolean validateEXmlBindings(EXmlBindings eXmlBindings, DiagnosticChain diagnostics, Map context) + { + return validate_EveryDefaultConstraint((EObject)eXmlBindings, diagnostics, context); + } + + /** + * + * + * @generated + */ + public boolean validateEXmlClassExtractor(EXmlClassExtractor eXmlClassExtractor, DiagnosticChain diagnostics, Map context) + { + return validate_EveryDefaultConstraint((EObject)eXmlClassExtractor, diagnostics, context); + } + + /** + * + * + * @generated + */ + public boolean validateEXmlElement(EXmlElement eXmlElement, DiagnosticChain diagnostics, Map context) + { + return validate_EveryDefaultConstraint((EObject)eXmlElement, diagnostics, context); + } + + /** + * + * + * @generated + */ + public boolean validateEXmlElementDecl(EXmlElementDecl eXmlElementDecl, DiagnosticChain diagnostics, Map context) + { + return validate_EveryDefaultConstraint((EObject)eXmlElementDecl, diagnostics, context); + } + + /** + * + * + * @generated + */ + public boolean validateEXmlElementRef(EXmlElementRef eXmlElementRef, DiagnosticChain diagnostics, Map context) + { + return validate_EveryDefaultConstraint((EObject)eXmlElementRef, diagnostics, context); + } + + /** + * + * + * @generated + */ + public boolean validateEXmlElementRefs(EXmlElementRefs eXmlElementRefs, DiagnosticChain diagnostics, Map context) + { + return validate_EveryDefaultConstraint((EObject)eXmlElementRefs, diagnostics, context); + } + + /** + * + * + * @generated + */ + public boolean validateEXmlElements(EXmlElements eXmlElements, DiagnosticChain diagnostics, Map context) + { + return validate_EveryDefaultConstraint((EObject)eXmlElements, diagnostics, context); + } + + /** + * + * + * @generated + */ + public boolean validateEXmlElementWrapper(EXmlElementWrapper eXmlElementWrapper, DiagnosticChain diagnostics, Map context) + { + return validate_EveryDefaultConstraint((EObject)eXmlElementWrapper, diagnostics, context); + } + + /** + * + * + * @generated + */ + public boolean validateEXmlEnum(EXmlEnum eXmlEnum, DiagnosticChain diagnostics, Map context) + { + return validate_EveryDefaultConstraint((EObject)eXmlEnum, diagnostics, context); + } + + /** + * + * + * @generated + */ + public boolean validateEXmlEnumValue(EXmlEnumValue eXmlEnumValue, DiagnosticChain diagnostics, Map context) + { + return validate_EveryDefaultConstraint((EObject)eXmlEnumValue, diagnostics, context); + } + + /** + * + * + * @generated + */ + public boolean validateEXmlInverseReference(EXmlInverseReference eXmlInverseReference, DiagnosticChain diagnostics, Map context) + { + return validate_EveryDefaultConstraint((EObject)eXmlInverseReference, diagnostics, context); + } + + /** + * + * + * @generated + */ + public boolean validateEXmlIsSetNullPolicy(EXmlIsSetNullPolicy eXmlIsSetNullPolicy, DiagnosticChain diagnostics, Map context) + { + return validate_EveryDefaultConstraint((EObject)eXmlIsSetNullPolicy, diagnostics, context); + } + + /** + * + * + * @generated + */ + public boolean validateEXmlIsSetParameter(EXmlIsSetParameter eXmlIsSetParameter, DiagnosticChain diagnostics, Map context) + { + return validate_EveryDefaultConstraint((EObject)eXmlIsSetParameter, diagnostics, context); + } + + /** + * + * + * @generated + */ + public boolean validateEXmlJavaTypeAdapter(EXmlJavaTypeAdapter eXmlJavaTypeAdapter, DiagnosticChain diagnostics, Map context) + { + return validate_EveryDefaultConstraint((EObject)eXmlJavaTypeAdapter, diagnostics, context); + } + + /** + * + * + * @generated + */ + public boolean validateEXmlJoinNode(EXmlJoinNode eXmlJoinNode, DiagnosticChain diagnostics, Map context) + { + return validate_EveryDefaultConstraint((EObject)eXmlJoinNode, diagnostics, context); + } + + /** + * + * + * @generated + */ + public boolean validateEXmlJoinNodes(EXmlJoinNodes eXmlJoinNodes, DiagnosticChain diagnostics, Map context) + { + return validate_EveryDefaultConstraint((EObject)eXmlJoinNodes, diagnostics, context); + } + + /** + * + * + * @generated + */ + public boolean validateEXmlMap(EXmlMap eXmlMap, DiagnosticChain diagnostics, Map context) + { + return validate_EveryDefaultConstraint((EObject)eXmlMap, diagnostics, context); + } + + /** + * + * + * @generated + */ + public boolean validateEXmlNullPolicy(EXmlNullPolicy eXmlNullPolicy, DiagnosticChain diagnostics, Map context) + { + return validate_EveryDefaultConstraint((EObject)eXmlNullPolicy, diagnostics, context); + } + + /** + * + * + * @generated + */ + public boolean validateEXmlNs(EXmlNs eXmlNs, DiagnosticChain diagnostics, Map context) + { + return validate_EveryDefaultConstraint((EObject)eXmlNs, diagnostics, context); + } + + /** + * + * + * @generated + */ + public boolean validateEXmlProperty(EXmlProperty eXmlProperty, DiagnosticChain diagnostics, Map context) + { + return validate_EveryDefaultConstraint((EObject)eXmlProperty, diagnostics, context); + } + + /** + * + * + * @generated + */ + public boolean validateEXmlReadTransformer(EXmlReadTransformer eXmlReadTransformer, DiagnosticChain diagnostics, Map context) + { + return validate_EveryDefaultConstraint((EObject)eXmlReadTransformer, diagnostics, context); + } + + /** + * + * + * @generated + */ + public boolean validateEXmlRegistry(EXmlRegistry eXmlRegistry, DiagnosticChain diagnostics, Map context) + { + return validate_EveryDefaultConstraint((EObject)eXmlRegistry, diagnostics, context); + } + + /** + * + * + * @generated + */ + public boolean validateEXmlRootElement(EXmlRootElement eXmlRootElement, DiagnosticChain diagnostics, Map context) + { + return validate_EveryDefaultConstraint((EObject)eXmlRootElement, diagnostics, context); + } + + /** + * + * + * @generated + */ + public boolean validateEXmlSchema(EXmlSchema eXmlSchema, DiagnosticChain diagnostics, Map context) + { + return validate_EveryDefaultConstraint((EObject)eXmlSchema, diagnostics, context); + } + + /** + * + * + * @generated + */ + public boolean validateEXmlSchemaType(EXmlSchemaType eXmlSchemaType, DiagnosticChain diagnostics, Map context) + { + return validate_EveryDefaultConstraint((EObject)eXmlSchemaType, diagnostics, context); + } + + /** + * + * + * @generated + */ + public boolean validateEXmlTransformation(EXmlTransformation eXmlTransformation, DiagnosticChain diagnostics, Map context) + { + return validate_EveryDefaultConstraint((EObject)eXmlTransformation, diagnostics, context); + } + + /** + * + * + * @generated + */ + public boolean validateEXmlTransient(EXmlTransient eXmlTransient, DiagnosticChain diagnostics, Map context) + { + return validate_EveryDefaultConstraint((EObject)eXmlTransient, diagnostics, context); + } + + /** + * + * + * @generated + */ + public boolean validateEXmlType(EXmlType eXmlType, DiagnosticChain diagnostics, Map context) + { + return validate_EveryDefaultConstraint((EObject)eXmlType, diagnostics, context); + } + + /** + * + * + * @generated + */ + public boolean validateEXmlValue(EXmlValue eXmlValue, DiagnosticChain diagnostics, Map context) + { + return validate_EveryDefaultConstraint((EObject)eXmlValue, diagnostics, context); + } + + /** + * + * + * @generated + */ + public boolean validateEXmlVirtualAccessMethods(EXmlVirtualAccessMethods eXmlVirtualAccessMethods, DiagnosticChain diagnostics, Map context) + { + return validate_EveryDefaultConstraint((EObject)eXmlVirtualAccessMethods, diagnostics, context); + } + + /** + * + * + * @generated + */ + public boolean validateEXmlWriteTransformer(EXmlWriteTransformer eXmlWriteTransformer, DiagnosticChain diagnostics, Map context) + { + return validate_EveryDefaultConstraint((EObject)eXmlWriteTransformer, diagnostics, context); + } + + /** + * + * + * @generated + */ + public boolean validateEXmlAccessOrder(EXmlAccessOrder eXmlAccessOrder, DiagnosticChain diagnostics, Map context) + { + return true; + } + + /** + * + * + * @generated + */ + public boolean validateEXmlAccessType(EXmlAccessType eXmlAccessType, DiagnosticChain diagnostics, Map context) + { + return true; + } + + /** + * + * + * @generated + */ + public boolean validateEXmlMarshalNullRepresentation(EXmlMarshalNullRepresentation eXmlMarshalNullRepresentation, DiagnosticChain diagnostics, Map context) + { + return true; + } + + /** + * + * + * @generated + */ + public boolean validateEXmlNsForm(EXmlNsForm eXmlNsForm, DiagnosticChain diagnostics, Map context) + { + return true; + } + + /** + * + * + * @generated + */ + public boolean validateEXmlVirtualAccessMethodsSchema(EXmlVirtualAccessMethodsSchema eXmlVirtualAccessMethodsSchema, DiagnosticChain diagnostics, Map context) + { + return true; + } + + /** + * + * + * @generated + */ + public boolean validateEPropOrder(List ePropOrder, DiagnosticChain diagnostics, Map context) + { + boolean result = validateEPropOrder_ItemType(ePropOrder, diagnostics, context); + return result; + } + + /** + * Validates the ItemType constraint of 'EProp Order'. + * + * + * @generated + */ + public boolean validateEPropOrder_ItemType(List ePropOrder, DiagnosticChain diagnostics, Map context) + { + boolean result = true; + for (Iterator i = ePropOrder.iterator(); i.hasNext() && (result || diagnostics != null); ) + { + Object item = i.next(); + if (XMLTypePackage.Literals.STRING.isInstance(item)) + { + result &= xmlTypeValidator.validateString((String)item, diagnostics, context); + } + else + { + result = false; + reportDataValueTypeViolation(XMLTypePackage.Literals.STRING, item, diagnostics, context); + } + } + return result; + } + + /** + * + * + * @generated + */ + public boolean validateEXmlSeeAlso(List eXmlSeeAlso, DiagnosticChain diagnostics, Map context) + { + boolean result = validateEXmlSeeAlso_ItemType(eXmlSeeAlso, diagnostics, context); + return result; + } + + /** + * Validates the ItemType constraint of 'EXml See Also'. + * + * + * @generated + */ + public boolean validateEXmlSeeAlso_ItemType(List eXmlSeeAlso, DiagnosticChain diagnostics, Map context) + { + boolean result = true; + for (Iterator i = eXmlSeeAlso.iterator(); i.hasNext() && (result || diagnostics != null); ) + { + Object item = i.next(); + if (XMLTypePackage.Literals.STRING.isInstance(item)) + { + result &= xmlTypeValidator.validateString((String)item, diagnostics, context); + } + else + { + result = false; + reportDataValueTypeViolation(XMLTypePackage.Literals.STRING, item, diagnostics, context); + } + } + return result; + } + + /** + * Returns the resource locator that will be used to fetch messages for this validator's diagnostics. + * + * + * @generated + */ + @Override + public ResourceLocator getResourceLocator() + { + // TODO + // Specialize this to return a resource locator for messages specific to this validator. + // Ensure that you remove @generated or mark it @generated NOT + return super.getResourceLocator(); + } + +} //OxmValidator diff --git a/jaxb/tests/org.eclipse.jpt.jaxb.eclipselink.core.tests/META-INF/MANIFEST.MF b/jaxb/tests/org.eclipse.jpt.jaxb.eclipselink.core.tests/META-INF/MANIFEST.MF index 066e928ce0..fdca1503db 100644 --- a/jaxb/tests/org.eclipse.jpt.jaxb.eclipselink.core.tests/META-INF/MANIFEST.MF +++ b/jaxb/tests/org.eclipse.jpt.jaxb.eclipselink.core.tests/META-INF/MANIFEST.MF @@ -10,7 +10,9 @@ Bundle-ClassPath: . Bundle-Localization: plugin Dali-Comment: jdk 1.6 has the javax.xml.bind annotations Bundle-RequiredExecutionEnvironment: JavaSE-1.6 -Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.7.0,4.0.0)", +Require-Bundle: org.eclipse.core.resources;bundle-version="[3.8.0,4.0.0)", + org.eclipse.core.runtime;bundle-version="[3.7.0,4.0.0)", + org.eclipse.emf.common;bundle-version="[2.8.0,3.0.0)", org.eclipse.jdt.core;bundle-version="[3.7.0,4.0.0)", org.eclipse.jpt.common.core;bundle-version="[1.0.0,2.0.0)", org.eclipse.jpt.common.core.tests;bundle-version="[1.0.0,2.0.0)", diff --git a/jaxb/tests/org.eclipse.jpt.jaxb.eclipselink.core.tests/src/org/eclipse/jpt/jaxb/eclipselink/core/tests/internal/resource/ELJaxbCoreResourceModelTests.java b/jaxb/tests/org.eclipse.jpt.jaxb.eclipselink.core.tests/src/org/eclipse/jpt/jaxb/eclipselink/core/tests/internal/resource/ELJaxbCoreResourceModelTests.java index 58bd740164..b2cf65765c 100644 --- a/jaxb/tests/org.eclipse.jpt.jaxb.eclipselink.core.tests/src/org/eclipse/jpt/jaxb/eclipselink/core/tests/internal/resource/ELJaxbCoreResourceModelTests.java +++ b/jaxb/tests/org.eclipse.jpt.jaxb.eclipselink.core.tests/src/org/eclipse/jpt/jaxb/eclipselink/core/tests/internal/resource/ELJaxbCoreResourceModelTests.java @@ -13,6 +13,7 @@ import junit.framework.Test; import junit.framework.TestSuite; import org.eclipse.jpt.jaxb.eclipselink.core.tests.internal.ELJaxbCoreTests; import org.eclipse.jpt.jaxb.eclipselink.core.tests.internal.resource.java.ELJaxbJavaResourceModelTests; +import org.eclipse.jpt.jaxb.eclipselink.core.tests.internal.resource.oxm.OxmResourceTests; public class ELJaxbCoreResourceModelTests { @@ -21,6 +22,7 @@ public class ELJaxbCoreResourceModelTests { if (ELJaxbCoreTests.requiredJarsExists()) { suite.addTest(ELJaxbJavaResourceModelTests.suite()); + suite.addTestSuite(OxmResourceTests.class); } else { suite.addTest(TestSuite.warning(ELJaxbCoreTests.buildMissingJarErrorMessage())); diff --git a/jaxb/tests/org.eclipse.jpt.jaxb.eclipselink.core.tests/src/org/eclipse/jpt/jaxb/eclipselink/core/tests/internal/resource/oxm/OxmResourceTests.java b/jaxb/tests/org.eclipse.jpt.jaxb.eclipselink.core.tests/src/org/eclipse/jpt/jaxb/eclipselink/core/tests/internal/resource/oxm/OxmResourceTests.java new file mode 100644 index 0000000000..96e59237b2 --- /dev/null +++ b/jaxb/tests/org.eclipse.jpt.jaxb.eclipselink.core.tests/src/org/eclipse/jpt/jaxb/eclipselink/core/tests/internal/resource/oxm/OxmResourceTests.java @@ -0,0 +1,70 @@ +package org.eclipse.jpt.jaxb.eclipselink.core.tests.internal.resource.oxm; + +import java.io.ByteArrayInputStream; +import org.eclipse.core.resources.IFile; +import org.eclipse.jpt.common.core.resource.java.AnnotationDefinition; +import org.eclipse.jpt.common.core.resource.java.NestableAnnotationDefinition; +import org.eclipse.jpt.common.core.resource.xml.JptXmlResource; +import org.eclipse.jpt.common.core.tests.internal.resource.java.JavaResourceModelTestCase; +import org.eclipse.jpt.jaxb.eclipselink.core.internal.resource.oxm.OxmXmlResourceProvider; +import org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EJavaType; +import org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlAttribute; +import org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlBindings; +import org.eclipse.jpt.jaxb.eclipselink.core.resource.oxm.EXmlNullPolicy; + +public class OxmResourceTests + extends JavaResourceModelTestCase { + + public OxmResourceTests(String name) { + super(name); + } + + + @Override + protected AnnotationDefinition[] annotationDefinitions() { + return new AnnotationDefinition[0]; + } + + @Override + protected NestableAnnotationDefinition[] nestableAnnotationDefinitions() { + return new NestableAnnotationDefinition[0]; + } + + public void testMultiObjectTranslators() throws Exception { + IFile oxmFile = getJavaProject().getProject().getFile("oxm.xml"); + StringBuffer sb = new StringBuffer(); + sb.append("").append(CR); + sb.append("").append(CR); + sb.append(" ").append(CR); + sb.append(" ").append(CR); + sb.append(" ").append(CR); + sb.append(" ").append(CR); + sb.append(" ").append(CR); + sb.append(" ").append(CR); + sb.append(" ").append(CR); + sb.append(" ").append(CR); + sb.append(" ").append(CR); + sb.append("").append(CR); + oxmFile.create(new ByteArrayInputStream(sb.toString().getBytes()), true, null); + JptXmlResource resource = OxmXmlResourceProvider.getXmlResourceProvider(oxmFile).getXmlResource(); + EXmlBindings xmlBindings = (EXmlBindings) resource.getRootObject(); + + assertNotNull(xmlBindings); + + EJavaType javaType = xmlBindings.getJavaTypes().get(0); + + assertNotNull(javaType); + + EXmlAttribute xmlAttribute = (EXmlAttribute) javaType.getJavaAttributes().get(0); + + assertNotNull(xmlAttribute); + + EXmlNullPolicy xmlNullPolicy = (EXmlNullPolicy) xmlAttribute.getXmlAbstractNullPolicy(); + + assertNotNull(xmlNullPolicy); + } +} -- cgit v1.2.3