Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Fullbright2013-02-19 17:12:34 +0000
committerPaul Fullbright2013-03-13 13:47:20 +0000
commit43393df2afdb8e91746adf52586d1a1e98b4c4a7 (patch)
tree135b9a5bd2fa3a6934ddafaac159f7c75d4dcf57 /jaxb/plugins
parentc6c6fa6b1b484d5d2b340c28db00a23e8287408e (diff)
downloadwebtools.dali-43393df2afdb8e91746adf52586d1a1e98b4c4a7.tar.gz
webtools.dali-43393df2afdb8e91746adf52586d1a1e98b4c4a7.tar.xz
webtools.dali-43393df2afdb8e91746adf52586d1a1e98b4c4a7.zip
reworked access type
Diffstat (limited to 'jaxb/plugins')
-rw-r--r--jaxb/plugins/org.eclipse.jpt.jaxb.core/src/org/eclipse/jpt/jaxb/core/context/XmlAccessTypeHolder.java5
-rw-r--r--jaxb/plugins/org.eclipse.jpt.jaxb.core/src/org/eclipse/jpt/jaxb/core/internal/context/java/GenericJavaClassMapping.java46
-rw-r--r--jaxb/plugins/org.eclipse.jpt.jaxb.core/src/org/eclipse/jpt/jaxb/core/internal/context/java/GenericJavaPackageInfo.java94
-rw-r--r--jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/internal/context/oxm/OxmJavaTypeImpl.java43
-rw-r--r--jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/internal/context/oxm/OxmXmlBindingsImpl.java41
5 files changed, 148 insertions, 81 deletions
diff --git a/jaxb/plugins/org.eclipse.jpt.jaxb.core/src/org/eclipse/jpt/jaxb/core/context/XmlAccessTypeHolder.java b/jaxb/plugins/org.eclipse.jpt.jaxb.core/src/org/eclipse/jpt/jaxb/core/context/XmlAccessTypeHolder.java
index 1ba91a5757..5a77a3789c 100644
--- a/jaxb/plugins/org.eclipse.jpt.jaxb.core/src/org/eclipse/jpt/jaxb/core/context/XmlAccessTypeHolder.java
+++ b/jaxb/plugins/org.eclipse.jpt.jaxb.core/src/org/eclipse/jpt/jaxb/core/context/XmlAccessTypeHolder.java
@@ -24,6 +24,11 @@ public interface XmlAccessTypeHolder
extends JaxbContextNode {
/**
+ * String constant associated with changes to the access type
+ */
+ String ACCESS_TYPE_PROPERTY = "accessType"; //$NON-NLS-1$
+
+ /**
* Return the access type, whether specified or defaulted.
* This should never return null since at least the default will be set
*/
diff --git a/jaxb/plugins/org.eclipse.jpt.jaxb.core/src/org/eclipse/jpt/jaxb/core/internal/context/java/GenericJavaClassMapping.java b/jaxb/plugins/org.eclipse.jpt.jaxb.core/src/org/eclipse/jpt/jaxb/core/internal/context/java/GenericJavaClassMapping.java
index fd1ab7c700..6fa682e5b4 100644
--- a/jaxb/plugins/org.eclipse.jpt.jaxb.core/src/org/eclipse/jpt/jaxb/core/internal/context/java/GenericJavaClassMapping.java
+++ b/jaxb/plugins/org.eclipse.jpt.jaxb.core/src/org/eclipse/jpt/jaxb/core/internal/context/java/GenericJavaClassMapping.java
@@ -48,7 +48,6 @@ import org.eclipse.jpt.jaxb.core.resource.java.XmlAccessorTypeAnnotation;
import org.eclipse.jpt.jaxb.core.validation.JptJaxbCoreValidationMessages;
import org.eclipse.wst.validation.internal.provisional.core.IMessage;
import org.eclipse.wst.validation.internal.provisional.core.IReporter;
-import org.omg.CORBA.PUBLIC_MEMBER;
public class GenericJavaClassMapping
@@ -65,6 +64,7 @@ public class GenericJavaClassMapping
protected static final String SUPERCLASSNAME_PROPERTY = "superclassName"; //$NON-NLS-1$ - used only to trigger update
protected JaxbClassMapping superclass;
+ protected XmlAccessType accessType;
protected XmlAccessType defaultAccessType;
protected XmlAccessType specifiedAccessType;
@@ -86,8 +86,7 @@ public class GenericJavaClassMapping
initFactoryClass();
initFactoryMethod();
initPropOrder();
- initSpecifiedAccessType();
- initDefaultAccessType();
+ initAccessType();
initSpecifiedAccessOrder();
initDefaultAccessOrder();
initSuperclassName();
@@ -120,7 +119,7 @@ public class GenericJavaClassMapping
syncFactoryClass();
syncFactoryMethod();
syncPropOrder();
- syncSpecifiedAccessType();
+ syncAccessType();
syncSpecifiedAccessOrder();
syncSuperclassName();
this.attributesContainer.synchronizeWithResourceModel();
@@ -131,7 +130,7 @@ public class GenericJavaClassMapping
public void update() {
super.update();
updateSuperclass(); // done first because much depends on it
- updateDefaultAccessType();
+ updateAccessType();
updateDefaultAccessOrder();
this.hasRootElementInHierarchy_loaded = false; // triggers that the value must be recalculated on next request
this.attributesContainer.update();
@@ -256,7 +255,13 @@ public class GenericJavaClassMapping
// ***** XmlAccessorType *****
public XmlAccessType getAccessType() {
- return (this.specifiedAccessType != null) ? this.specifiedAccessType : this.defaultAccessType;
+ return this.accessType;
+ }
+
+ protected void setAccessType_(XmlAccessType accessType) {
+ XmlAccessType old = this.accessType;
+ this.accessType = accessType;
+ firePropertyChanged(ACCESS_TYPE_PROPERTY, old, accessType);
}
public XmlAccessType getDefaultAccessType() {
@@ -284,19 +289,28 @@ public class GenericJavaClassMapping
firePropertyChanged(SPECIFIED_ACCESS_TYPE_PROPERTY, old, access);
}
- protected void initDefaultAccessType() {
- this.defaultAccessType = buildDefaultAccessType();
+ protected void initAccessType() {
+ this.specifiedAccessType = getResourceAccessType();
+ }
+
+ protected void syncAccessType() {
+ setSpecifiedAccessType(getResourceAccessType());
}
- protected void updateDefaultAccessType() {
+ protected void updateAccessType() {
setDefaultAccessType_(buildDefaultAccessType());
+
+ XmlAccessType actual = (this.specifiedAccessType != null) ?
+ this.specifiedAccessType
+ : this.defaultAccessType;
+ setAccessType_(actual);
}
/**
* Default access type is determined by the following, in order of precedence:
* - @XmlAccessorType annotation on a mapped (or transient, apparently) super class
* - @XmlAccessorType annotation on the package
- * - default access type of {@link PUBLIC_MEMBER}
+ * - default access type of {@link XmlAccessType#PUBLIC_MEMBER}
*/
protected XmlAccessType buildDefaultAccessType() {
XmlAccessType accessType = getSuperclassAccessType();
@@ -335,14 +349,6 @@ public class GenericJavaClassMapping
return XmlAccessType.fromJavaResourceModel(getXmlAccessorTypeAnnotation().getValue());
}
- protected void initSpecifiedAccessType() {
- this.specifiedAccessType = getResourceAccessType();
- }
-
- protected void syncSpecifiedAccessType() {
- setSpecifiedAccessType_(getResourceAccessType());
- }
-
// ***** XmlAccessorOrder *****
@@ -605,8 +611,8 @@ public class GenericJavaClassMapping
*/
protected Iterable<JaxbPersistentAttribute> getOtherInheritedAttributes() {
return IterableTools.children(
- ObjectTools.chain(getSuperclass(), JaxbClassMapping.SUPER_CLASS_TRANSFORMER),
- JaxbClassMapping.ATTRIBUTES_TRANSFORMER);
+ ObjectTools.chain(getSuperclass(), JaxbClassMapping.SUPER_CLASS_TRANSFORMER),
+ JaxbClassMapping.ATTRIBUTES_TRANSFORMER);
}
diff --git a/jaxb/plugins/org.eclipse.jpt.jaxb.core/src/org/eclipse/jpt/jaxb/core/internal/context/java/GenericJavaPackageInfo.java b/jaxb/plugins/org.eclipse.jpt.jaxb.core/src/org/eclipse/jpt/jaxb/core/internal/context/java/GenericJavaPackageInfo.java
index 41f3e817e0..880caed5a0 100644
--- a/jaxb/plugins/org.eclipse.jpt.jaxb.core/src/org/eclipse/jpt/jaxb/core/internal/context/java/GenericJavaPackageInfo.java
+++ b/jaxb/plugins/org.eclipse.jpt.jaxb.core/src/org/eclipse/jpt/jaxb/core/internal/context/java/GenericJavaPackageInfo.java
@@ -45,7 +45,8 @@ public class GenericJavaPackageInfo
protected final JavaResourcePackage resourcePackage;
protected final JavaXmlSchema xmlSchema;
-
+
+ protected XmlAccessType accessType;
protected XmlAccessType specifiedAccessType;
protected XmlAccessOrder specifiedAccessOrder;
@@ -58,10 +59,10 @@ public class GenericJavaPackageInfo
super(parent);
this.resourcePackage = resourcePackage;
this.xmlSchema = getFactory().buildJavaXmlSchema(this);
- this.specifiedAccessType = getResourceAccessType();
+ initAccessType();
this.specifiedAccessOrder = getResourceAccessOrder();
- this.xmlSchemaTypeContainer = this.buildXmlSchemaTypeContainer();
- this.xmlJavaTypeAdapterContainer = this.buildXmlJavaTypeAdapterContainer();
+ this.xmlSchemaTypeContainer = buildXmlSchemaTypeContainer();
+ this.xmlJavaTypeAdapterContainer = buildXmlJavaTypeAdapterContainer();
}
@@ -84,18 +85,19 @@ public class GenericJavaPackageInfo
public void synchronizeWithResourceModel() {
super.synchronizeWithResourceModel();
this.xmlSchema.synchronizeWithResourceModel();
- this.setSpecifiedAccessType_(this.getResourceAccessType());
- this.setSpecifiedAccessOrder_(this.getResourceAccessOrder());
- this.syncXmlSchemaTypes();
- this.syncXmlJavaTypeAdapters();
+ syncAccessType();
+ setSpecifiedAccessOrder_(this.getResourceAccessOrder());
+ syncXmlSchemaTypes();
+ syncXmlJavaTypeAdapters();
}
@Override
public void update() {
super.update();
this.xmlSchema.update();
- this.updateXmlSchemaTypes();
- this.updateXmlJavaTypeAdapters();
+ updateAccessType();
+ updateXmlSchemaTypes();
+ updateXmlJavaTypeAdapters();
}
@@ -104,36 +106,44 @@ public class GenericJavaPackageInfo
public JavaResourcePackage getResourcePackage() {
return this.resourcePackage;
}
-
+
+
// ********** xml schema **********
-
+
public JavaXmlSchema getXmlSchema() {
return this.xmlSchema;
}
-
+
+
// ********** access type **********
-
+
public XmlAccessType getAccessType() {
- return (this.specifiedAccessType != null) ? this.specifiedAccessType : this.getDefaultAccessType();
+ return this.accessType;
}
-
+
+ protected void setAccessType_(XmlAccessType accessType) {
+ XmlAccessType old = this.accessType;
+ this.accessType = accessType;
+ firePropertyChanged(ACCESS_TYPE_PROPERTY, old, accessType);
+ }
+
+ public XmlAccessType getDefaultAccessType() {
+ return XmlAccessType.PUBLIC_MEMBER;
+ }
+
public XmlAccessType getSpecifiedAccessType() {
return this.specifiedAccessType;
}
public void setSpecifiedAccessType(XmlAccessType access) {
- this.getAccessorTypeAnnotation().setValue(XmlAccessType.toJavaResourceModel(access));
- this.setSpecifiedAccessType_(access);
+ getAccessorTypeAnnotation().setValue(XmlAccessType.toJavaResourceModel(access));
+ setSpecifiedAccessType_(access);
}
-
+
protected void setSpecifiedAccessType_(XmlAccessType access) {
XmlAccessType old = this.specifiedAccessType;
this.specifiedAccessType = access;
- this.firePropertyChanged(SPECIFIED_ACCESS_TYPE_PROPERTY, old, access);
- }
-
- public XmlAccessType getDefaultAccessType() {
- return XmlAccessType.PUBLIC_MEMBER;
+ firePropertyChanged(SPECIFIED_ACCESS_TYPE_PROPERTY, old, access);
}
protected XmlAccessType getResourceAccessType() {
@@ -143,12 +153,30 @@ public class GenericJavaPackageInfo
protected XmlAccessorTypeAnnotation getAccessorTypeAnnotation() {
return (XmlAccessorTypeAnnotation) this.resourcePackage.getNonNullAnnotation(JAXB.XML_ACCESSOR_TYPE);
}
-
-
+
+ protected void initAccessType() {
+ XmlAccessType specified = getResourceAccessType();
+ XmlAccessType actual = (specified != null) ? specified : getDefaultAccessType();
+ this.specifiedAccessType = specified;
+ this.accessType = actual;
+ }
+
+ protected void syncAccessType() {
+ setSpecifiedAccessType_(getResourceAccessType());
+ }
+
+ protected void updateAccessType() {
+ XmlAccessType actual = (this.specifiedAccessType != null) ?
+ this.specifiedAccessType
+ : getDefaultAccessType();
+ setAccessType_(actual);
+ }
+
+
// ********** access order **********
public XmlAccessOrder getAccessOrder() {
- return (this.specifiedAccessOrder != null) ? this.specifiedAccessOrder : this.getDefaultAccessOrder();
+ return (this.specifiedAccessOrder != null) ? this.specifiedAccessOrder : getDefaultAccessOrder();
}
public XmlAccessOrder getSpecifiedAccessOrder() {
@@ -156,14 +184,14 @@ public class GenericJavaPackageInfo
}
public void setSpecifiedAccessOrder(XmlAccessOrder accessOrder) {
- this.getAccessorOrderAnnotation().setValue(XmlAccessOrder.toJavaResourceModel(accessOrder));
- this.setSpecifiedAccessOrder_(accessOrder);
+ getAccessorOrderAnnotation().setValue(XmlAccessOrder.toJavaResourceModel(accessOrder));
+ setSpecifiedAccessOrder_(accessOrder);
}
protected void setSpecifiedAccessOrder_(XmlAccessOrder accessOrder) {
XmlAccessOrder old = this.specifiedAccessOrder;
this.specifiedAccessOrder = accessOrder;
- this.firePropertyChanged(SPECIFIED_ACCESS_ORDER_PROPERTY, old, accessOrder);
+ firePropertyChanged(SPECIFIED_ACCESS_ORDER_PROPERTY, old, accessOrder);
}
public XmlAccessOrder getDefaultAccessOrder() {
@@ -171,7 +199,7 @@ public class GenericJavaPackageInfo
}
protected XmlAccessOrder getResourceAccessOrder() {
- return XmlAccessOrder.fromJavaResourceModel(this.getAccessorOrderAnnotation().getValue());
+ return XmlAccessOrder.fromJavaResourceModel(getAccessorOrderAnnotation().getValue());
}
protected XmlAccessorOrderAnnotation getAccessorOrderAnnotation() {
@@ -195,7 +223,7 @@ public class GenericJavaPackageInfo
}
public void removeXmlSchemaType(XmlSchemaType xmlSchemaType) {
- this.removeXmlSchemaType(this.xmlSchemaTypeContainer.indexOfContextElement(xmlSchemaType));
+ removeXmlSchemaType(this.xmlSchemaTypeContainer.indexOfContextElement(xmlSchemaType));
}
public void removeXmlSchemaType(int index) {
@@ -336,7 +364,7 @@ public class GenericJavaPackageInfo
if (! IterableTools.isEmpty(result)) {
return result;
}
- for (XmlSchemaType xmlSchemaType : this.getXmlSchemaTypes()) {
+ for (XmlSchemaType xmlSchemaType : getXmlSchemaTypes()) {
result = xmlSchemaType.getCompletionProposals(pos);
if (!IterableTools.isEmpty(result)) {
return result;
diff --git a/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/internal/context/oxm/OxmJavaTypeImpl.java b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/internal/context/oxm/OxmJavaTypeImpl.java
index 2bc6c72c0d..c9d2273263 100644
--- a/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/internal/context/oxm/OxmJavaTypeImpl.java
+++ b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/internal/context/oxm/OxmJavaTypeImpl.java
@@ -63,6 +63,7 @@ public class OxmJavaTypeImpl
protected XmlAccessOrder specifiedAccessOrder;
// accessor-type
+ protected XmlAccessType accessType;
protected XmlAccessType defaultAccessType;
protected XmlAccessType specifiedAccessType;
@@ -81,8 +82,7 @@ public class OxmJavaTypeImpl
initSuperTypeName();
initSpecifiedAccessOrder();
initDefaultAccessOrder();
- initSpecifiedAccessType();
- initDefaultAccessType();
+ initAccessType();
initSpecifiedAttributes();
}
@@ -123,7 +123,7 @@ public class OxmJavaTypeImpl
setSpecifiedName_(buildSpecifiedName());
syncSuperTypeName();
syncSpecifiedAccessOrder();
- syncSpecifiedAccessType();
+ syncAccessType();
ContextContainerTools.synchronizeWithResourceModel(this.specifiedAttributeContainerAdapter);
}
@@ -133,7 +133,7 @@ public class OxmJavaTypeImpl
updateSuperTypeName();
updateSuperclass();
updateDefaultAccessOrder();
- updateDefaultAccessType();
+ updateAccessType();
ContextContainerTools.update(this.specifiedAttributeContainerAdapter);
}
@@ -355,10 +355,16 @@ public class OxmJavaTypeImpl
}
- // ***** XmlAccessorType *****
+ // ***** xml-accessor-type *****
public XmlAccessType getAccessType() {
- return (this.specifiedAccessType != null) ? this.specifiedAccessType : this.defaultAccessType;
+ return this.accessType;
+ }
+
+ protected void setAccessType_(XmlAccessType accessType) {
+ XmlAccessType old = this.accessType;
+ this.accessType = accessType;
+ firePropertyChanged(ACCESS_TYPE_PROPERTY, old, accessType);
}
public XmlAccessType getDefaultAccessType() {
@@ -376,8 +382,8 @@ public class OxmJavaTypeImpl
}
public void setSpecifiedAccessType(XmlAccessType access) {
- getETypeMapping().setXmlAccessorType(ELXmlAccessType.toOxmResourceModel(access));
setSpecifiedAccessType_(access);
+ getETypeMapping().setXmlAccessorType(ELXmlAccessType.toOxmResourceModel(access));
}
protected void setSpecifiedAccessType_(XmlAccessType access) {
@@ -386,12 +392,21 @@ public class OxmJavaTypeImpl
firePropertyChanged(SPECIFIED_ACCESS_TYPE_PROPERTY, old, access);
}
- protected void initDefaultAccessType() {
- this.defaultAccessType = buildDefaultAccessType();
+ protected void initAccessType() {
+ this.specifiedAccessType = buildSpecifiedAccessType();
+ }
+
+ protected void syncAccessType() {
+ setSpecifiedAccessType_(buildSpecifiedAccessType());
}
- protected void updateDefaultAccessType() {
+ protected void updateAccessType() {
setDefaultAccessType_(buildDefaultAccessType());
+
+ XmlAccessType actual = (this.specifiedAccessType != null) ?
+ this.specifiedAccessType
+ : this.defaultAccessType;
+ setAccessType_(actual);
}
/**
@@ -429,14 +444,6 @@ public class OxmJavaTypeImpl
return XmlAccessType.PUBLIC_MEMBER;
}
- protected void initSpecifiedAccessType() {
- this.specifiedAccessType = buildSpecifiedAccessType();
- }
-
- protected void syncSpecifiedAccessType() {
- setSpecifiedAccessType_(buildSpecifiedAccessType());
- }
-
protected XmlAccessType buildSpecifiedAccessType() {
return ELXmlAccessType.fromOxmResourceModel(getETypeMapping().getXmlAccessorType());
}
diff --git a/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/internal/context/oxm/OxmXmlBindingsImpl.java b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/internal/context/oxm/OxmXmlBindingsImpl.java
index 41fa067df2..d10fe5cb72 100644
--- a/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/internal/context/oxm/OxmXmlBindingsImpl.java
+++ b/jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core/src/org/eclipse/jpt/jaxb/eclipselink/core/internal/context/oxm/OxmXmlBindingsImpl.java
@@ -38,7 +38,8 @@ public class OxmXmlBindingsImpl
implements OxmXmlBindings {
protected EXmlBindings eXmlBindings;
-
+
+ protected XmlAccessType accessType;
protected XmlAccessType specifiedAccessType;
protected XmlAccessOrder specifiedAccessOrder;
@@ -57,8 +58,8 @@ public class OxmXmlBindingsImpl
public OxmXmlBindingsImpl(OxmFile parent, EXmlBindings eXmlBindings) {
super(parent);
- this.eXmlBindings = eXmlBindings;
- this.specifiedAccessType = buildSpecifiedAccessType();
+ this.eXmlBindings = eXmlBindings;
+ initAccessType();
this.specifiedAccessOrder = buildSpecifiedAccessOrder();
this.xmlMappingMetadataComplete = buildXmlMappingMetadataComplete();
this.specifiedPackageName = buildSpecifiedPackageName();
@@ -82,8 +83,8 @@ public class OxmXmlBindingsImpl
@Override
public void synchronizeWithResourceModel() {
- super.synchronizeWithResourceModel();
- setSpecifiedAccessType_(buildSpecifiedAccessType());
+ super.synchronizeWithResourceModel();
+ syncAccessType();
setSpecifiedAccessOrder_(buildSpecifiedAccessOrder());
setXmlMappingMetadataComplete_(buildXmlMappingMetadataComplete());
setSpecifiedPackageName_(buildSpecifiedPackageName());
@@ -105,8 +106,14 @@ public class OxmXmlBindingsImpl
// ***** xml access type *****
public XmlAccessType getAccessType() {
- return (this.specifiedAccessType != null) ? this.specifiedAccessType : getDefaultAccessType();
+ return this.accessType;
}
+
+ protected void setAccessType_(XmlAccessType accessType) {
+ XmlAccessType old = this.accessType;
+ this.accessType = accessType;
+ firePropertyChanged(ACCESS_TYPE_PROPERTY, old, accessType);
+ }
public XmlAccessType getDefaultAccessType() {
return XmlAccessType.PUBLIC_MEMBER;
@@ -117,19 +124,33 @@ public class OxmXmlBindingsImpl
}
public void setSpecifiedAccessType(XmlAccessType newAccessType) {
- this.eXmlBindings.setXmlAccessorType(ELXmlAccessType.toOxmResourceModel(newAccessType));
setSpecifiedAccessType_(newAccessType);
+ this.eXmlBindings.setXmlAccessorType(ELXmlAccessType.toOxmResourceModel(newAccessType));
}
protected void setSpecifiedAccessType_(XmlAccessType newAccessType) {
XmlAccessType oldAccessType = this.specifiedAccessType;
this.specifiedAccessType = newAccessType;
firePropertyChanged(SPECIFIED_ACCESS_TYPE_PROPERTY, oldAccessType, newAccessType);
- }
+ }
- protected XmlAccessType buildSpecifiedAccessType() {
+ protected XmlAccessType getResourceAccessType() {
return ELXmlAccessType.fromOxmResourceModel(this.eXmlBindings.getXmlAccessorType());
- }
+ }
+
+ protected void initAccessType() {
+ XmlAccessType specified = getResourceAccessType();
+ XmlAccessType actual = (specified != null) ? specified : getDefaultAccessType();
+ this.specifiedAccessType = specified;
+ this.accessType = actual;
+ }
+
+ protected void syncAccessType() {
+ XmlAccessType specified = getResourceAccessType();
+ XmlAccessType actual = (specified != null) ? specified : getDefaultAccessType();
+ setSpecifiedAccessType_(specified);
+ setAccessType_(actual);
+ }
// ***** xml access order *****

Back to the top