@Override protected boolean isIncluded(EStructuralFeature eStructuralFeature) { EReference eReference = (EReference)eStructuralFeature; return !eReference.isTransient(); }
@Override protected boolean isIncluded(EStructuralFeature eStructuralFeature) { EReference eReference = (EReference)eStructuralFeature; return !eReference.isTransient(); } }
@Override protected boolean isIncluded(EStructuralFeature eStructuralFeature) { EReference eReference = (EReference)eStructuralFeature; return !eReference.isTransient(); }
@Override protected boolean isIncluded(EStructuralFeature eStructuralFeature) { EReference eReference = (EReference)eStructuralFeature; return !eReference.isTransient(); } }
protected boolean skipReference(EReference reference) { return reference.isTransient(); }
protected boolean skipReference(EReference reference) { return reference.isTransient(); }
protected XSDConcreteComponentImpl getDiagnosticTarget(XSDConcreteComponent xsdConcreteComponent) { return EcoreUtil.isAncestor(this, xsdConcreteComponent) && !xsdConcreteComponent.eContainmentFeature().isTransient() ? (XSDConcreteComponentImpl)xsdConcreteComponent : this; }
protected XSDConcreteComponentImpl getDiagnosticTarget(XSDConcreteComponent xsdConcreteComponent) { return EcoreUtil.isAncestor(this, xsdConcreteComponent) && !xsdConcreteComponent.eContainmentFeature().isTransient() ? (XSDConcreteComponentImpl)xsdConcreteComponent : this; }
protected void computeFeatureKind(EStructuralFeature feature) { EClassifier eClassifier = feature.getEType(); if (eClassifier instanceof EDataType) { if (feature.isMany()) { featuresToKinds.put(feature, INTEGER_DATATYPE_IS_MANY); } else { featuresToKinds.put(feature, INTEGER_DATATYPE_SINGLE); } } else { if (feature.isMany()) { EReference reference = (EReference) feature; EReference opposite = reference.getEOpposite(); if (opposite == null || opposite.isTransient() || !opposite.isMany()) featuresToKinds.put(feature, INTEGER_IS_MANY_ADD); else featuresToKinds.put(feature, INTEGER_IS_MANY_MOVE); } } }
protected void computeFeatureKind(EStructuralFeature feature) { EClassifier eClassifier = feature.getEType(); if (eClassifier instanceof EDataType) { if (feature.isMany()) { featuresToKinds.put(feature, INTEGER_DATATYPE_IS_MANY); } else { featuresToKinds.put(feature, INTEGER_DATATYPE_SINGLE); } } else { if (feature.isMany()) { EReference reference = (EReference) feature; EReference opposite = reference.getEOpposite(); if (opposite == null || opposite.isTransient() || !opposite.isMany()) featuresToKinds.put(feature, INTEGER_IS_MANY_ADD); else featuresToKinds.put(feature, INTEGER_IS_MANY_MOVE); } } }
/** * @since 3.0 */ public static boolean isPersistent(EStructuralFeature feature) { if (feature == ECLASS_ESUPER_TYPES || feature == ETYPED_ELEMENT_ETYPE || feature == EOPERATION_EEXCEPTIONS) { // http://www.eclipse.org/newsportal/article.php?id=26780&group=eclipse.tools.emf#26780 return false; } String persistent = EcoreUtil.getAnnotation(feature, CDO_ANNOTATION_SOURCE, CDO_ANNOTATION_KEY_PERSISTENT); if (persistent != null) { return "true".equalsIgnoreCase(persistent); } if (feature.isTransient()) { // Bug 333950: Transient eRefs with a persistent eOpposite, must be considered persistent if (feature instanceof EReference) { EReference eOpposite = ((EReference)feature).getEOpposite(); if (eOpposite != null && !eOpposite.isTransient()) { return true; } } return false; } return true; }
protected boolean writeTopElements(EObject top) { if (!useEncodedAttributeStyle) { InternalEObject container = ((InternalEObject)top).eInternalContainer(); if (container != null) { EReference containmentReference = top.eContainmentFeature(); EReference containerReference = containmentReference.getEOpposite(); if (containerReference != null && !containerReference.isTransient()) { saveHref(container, containerReference); return true; } } } return false; }
protected void writeTopAttributes(EObject top) { if (useEncodedAttributeStyle) { InternalEObject container = ((InternalEObject)top).eInternalContainer(); if (container != null) { EReference containmentReference = top.eContainmentFeature(); EReference containerReference = containmentReference.getEOpposite(); if (containerReference != null && !containerReference.isTransient()) { saveEObjectSingle(top, containerReference); } } } }
protected void writeTopAttributes(EObject top) { if (useEncodedAttributeStyle) { InternalEObject container = ((InternalEObject)top).eInternalContainer(); if (container != null) { EReference containmentReference = top.eContainmentFeature(); EReference containerReference = containmentReference.getEOpposite(); if (containerReference != null && !containerReference.isTransient()) { saveEObjectSingle(top, containerReference); } } } }
boolean isCandidate(EReference eReference) { if (isFeatureMapEntry(eReference)) { return true; } if (FeatureMapUtil.isFeatureMap(eReference)) { return false; } if (eReference.isTransient() || JsonAnnotations.shouldIgnore(eReference)) { return false; } EReference opposite = eReference.getEOpposite(); return !(opposite != null && opposite.isContainment()); }
boolean isCandidate(EReference eReference) { if (isFeatureMapEntry(eReference)) { return true; } if (FeatureMapUtil.isFeatureMap(eReference)) { return false; } if (eReference.isTransient() || JsonAnnotations.shouldIgnore(eReference)) { return false; } EReference opposite = eReference.getEOpposite(); return !(opposite != null && opposite.isContainment()); }
for (int i = 0; i < references.size(); i++) { reference = (EReference) references.get(i); if (!reference.isContainment() && !reference.isTransient()) { if (reference.isMany()) { Iterator value = ((List) refObject.eGet(reference)).iterator();
protected void clearReference(EObject obj, EReference ref) { if (!ref.isContainment() && !ref.isContainer() && !ref.isDerived() && ref.isChangeable() && !ref.isTransient()) obj.eUnset(ref); }
protected boolean writeTopElements(EObject top) { if (!useEncodedAttributeStyle) { InternalEObject container = ((InternalEObject)top).eInternalContainer(); if (container != null) { EReference containmentReference = top.eContainmentFeature(); EReference containerReference = containmentReference.getEOpposite(); if (containerReference != null && !containerReference.isTransient()) { saveHref(container, containerReference); return true; } } } return false; }
protected boolean isIndexable(EReference eReference) { return (!eReference.isContainment() || eReference.isResolveProxies()) && !eReference.isDerived() && !eReference.isVolatile() && !eReference.isTransient() && (!eReference.isContainer() || eReference.isResolveProxies()); }