public EPackageImpl(String packageURI, EFactory factory) : base() { //TODO registry if (factory == EcoreFactoryImpl.eINSTANCE) { ecorePackage = (EcorePackage)this; ecoreFactory = (EcoreFactory)factory; } else { ecorePackage = EcorePackageImpl.eINSTANCE; ecoreFactory = EcoreFactoryImpl.eINSTANCE; } }
public NotificationChain basicSetEFactoryInstance(EFactory newobj, NotificationChain msgs) { var oldobj = _eFactoryInstance; _eFactoryInstance = newobj; if (eNotificationRequired()) { var notification = new ENotificationImpl(this, NotificationImpl.SET, EcorePackageImpl.EPACKAGE_EFACTORYINSTANCE, oldobj, newobj); if (msgs == null) { msgs = notification; } else { msgs.add(notification); } } return(msgs); }
public bool validateEFactory(EFactory obj, DiagnosticChain diagnostics, Dictionary <object, object> context) { if (!validate_NoCircularContainment(obj, diagnostics, context)) { return(false); } bool result = validate_EveryMultiplicityConforms(obj, diagnostics, context); if (result || diagnostics != null) { result &= validate_EveryDataValueConforms(obj, diagnostics, context); } if (result || diagnostics != null) { result &= validate_EveryReferenceIsContained(obj, diagnostics, context); } if (result || diagnostics != null) { result &= validate_EveryBidirectionalReferenceIsPaired(obj, diagnostics, context); } //if (result || diagnostics != null) result &= validate_EveryProxyResolves(obj, diagnostics, context); if (result || diagnostics != null) { result &= validate_UniqueID(obj, diagnostics, context); } if (result || diagnostics != null) { result &= validate_EveryKeyUnique(obj, diagnostics, context); } if (result || diagnostics != null) { result &= validate_EveryMapEntryUnique(obj, diagnostics, context); } return(result); }
public XmiResource(EPackage epackage, EFactory factory) { this.epackage = epackage; this.factory = factory; }
public XmiResource() { factory = EcoreFactoryImpl.eINSTANCE; epackage = EcorePackageImpl.eINSTANCE; }
public override void setEFactoryInstance(EFactory paramEFactory) { throw new NotImplementedException(); }
public virtual T caseEFactory(EFactory theEObject) { return(default(T)); }