/** * * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated */ public void eSet(int featureID, Object newValue) { switch (featureID) { case NotationPackage.EDGE__EANNOTATIONS: getEAnnotations().clear(); getEAnnotations().addAll((Collection) newValue); return; case NotationPackage.EDGE__VISIBLE: setVisible(((Boolean) newValue).booleanValue()); return; case NotationPackage.EDGE__TYPE: setType((String) newValue); return; case NotationPackage.EDGE__MUTABLE: setMutable(((Boolean) newValue).booleanValue()); return; case NotationPackage.EDGE__SOURCE_EDGES: getSourceEdges().clear(); getSourceEdges().addAll((Collection) newValue); return; case NotationPackage.EDGE__TARGET_EDGES: getTargetEdges().clear(); getTargetEdges().addAll((Collection) newValue); return; case NotationPackage.EDGE__PERSISTED_CHILDREN: getPersistedChildren().clear(); getPersistedChildren().addAll((Collection) newValue); return; case NotationPackage.EDGE__STYLES: getStyles().clear(); getStyles().addAll((Collection) newValue); return; case NotationPackage.EDGE__ELEMENT: setElement((EObject) newValue); return; case NotationPackage.EDGE__TRANSIENT_CHILDREN: getTransientChildren().clear(); getTransientChildren().addAll((Collection) newValue); return; case NotationPackage.EDGE__SOURCE: setSource((View) newValue); return; case NotationPackage.EDGE__TARGET: setTarget((View) newValue); return; case NotationPackage.EDGE__BENDPOINTS: setBendpoints((Bendpoints) newValue); return; case NotationPackage.EDGE__SOURCE_ANCHOR: setSourceAnchor((Anchor) newValue); return; case NotationPackage.EDGE__TARGET_ANCHOR: setTargetAnchor((Anchor) newValue); return; } eDynamicSet(featureID, newValue); }
/** * * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated */ public void eUnset(int featureID) { switch (featureID) { case NotationPackage.EDGE__EANNOTATIONS: getEAnnotations().clear(); return; case NotationPackage.EDGE__VISIBLE: setVisible(VISIBLE_EDEFAULT); return; case NotationPackage.EDGE__TYPE: setType(TYPE_EDEFAULT); return; case NotationPackage.EDGE__MUTABLE: setMutable(MUTABLE_EDEFAULT); return; case NotationPackage.EDGE__SOURCE_EDGES: getSourceEdges().clear(); return; case NotationPackage.EDGE__TARGET_EDGES: getTargetEdges().clear(); return; case NotationPackage.EDGE__PERSISTED_CHILDREN: getPersistedChildren().clear(); return; case NotationPackage.EDGE__STYLES: getStyles().clear(); return; case NotationPackage.EDGE__ELEMENT: unsetElement(); return; case NotationPackage.EDGE__TRANSIENT_CHILDREN: getTransientChildren().clear(); return; case NotationPackage.EDGE__SOURCE: setSource((View) null); return; case NotationPackage.EDGE__TARGET: setTarget((View) null); return; case NotationPackage.EDGE__BENDPOINTS: setBendpoints((Bendpoints) null); return; case NotationPackage.EDGE__SOURCE_ANCHOR: setSourceAnchor((Anchor) null); return; case NotationPackage.EDGE__TARGET_ANCHOR: setTargetAnchor((Anchor) null); return; } eDynamicUnset(featureID); }
/** * * <!-- begin-user-doc --> * <!-- end-user-doc --> */ public Anchor createSourceAnchor(EClass eClass) { Anchor newAnchor = (Anchor) eClass.getEPackage().getEFactoryInstance().create(eClass); setSourceAnchor(newAnchor); return newAnchor; }