Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » how to validate ExtendedMetaData details
how to validate ExtendedMetaData details [message #602930] Wed, 19 March 2008 18:46
Matthew Rawlings is currently offline Matthew Rawlings
Messages: 39
Registered: July 2009
Member
How may I validate ExtendedMetaData details?

A common problem in my large models is that an error in that refers to
another type goes undiscovered. In the below example if I mistyped
"http://taxis.com/materials#alloys" as "http://taxis.com/bodywork#alloys",
then how can I get the eCore editor to detect and complain during
validation?

<?xml version="1.0" encoding="UTF-8"?>
<ecore:EPackage xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="cars"
nsURI="http://taxis.com" nsPrefix="tax">
<eSubpackages name="wheels" nsURI="http://taxis.com/wheels"
nsPrefix="whe">
<eClassifiers xsi:type="ecore:EDataType" name="spinners"
instanceClassName="java.lang.String">
<eAnnotations
source="http:///org/eclipse/emf/ecore/util/ExtendedMetaData">
<details key="baseType" value="http://taxis.com/materials#alloys"/>
</eAnnotations>
</eClassifiers>
</eSubpackages>
<eSubpackages name="materials" nsURI="http://taxis.com/materials"
nsPrefix="mat">
<eClassifiers xsi:type="ecore:EDataType" name="alloys"
instanceClassName="java.lang.String"/>
</eSubpackages>
</ecore:EPackage>
Previous Topic:Ecore to XSD
Next Topic:how to validate ExtendedMetaData details
Goto Forum:
  


Current Time: Sun Oct 26 04:27:55 GMT 2014

Powered by FUDForum. Page generated in 0.03303 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software