|
|
|
|
Re: [EMF Validation] EMF Validation Framework [message #895026 is a reply to message #895011] |
Wed, 11 July 2012 12:48 |
Ed Merks Messages: 33113 Registered: July 2009 |
Senior Member |
|
|
Wiwa,
If you look in Ecore.ecore, you'll see that EPackage has an annotation
like this
<eClassifiers xsi:type="ecore:EClass" name="EPackage"
eSuperTypes="#//ENamedElement">
<eAnnotations source="http://www.eclipse.org/emf/2002/Ecore">
<details key="constraints" value="WellFormedNsURI
WellFormedNsPrefix UniqueSubpackageNames UniqueClassifierNames
UniqueNsURIs"/>
</eAnnotations>
I'm suggesting you add such an annotation to your model (the EClass for
the pattern instance) and look at your generated validator.
On 11/07/2012 2:04 PM, wiwa wiwa wrote:
> I try to apply "validateEPackage_UniqueClassifierNames" constraint,but
> it does not taken into account in the runtime application!!
> I think that the problem is the ePackage parametre because in the
> instance model all the elements are EClassifier.
> What are you saying??
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.03539 seconds