Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » XML Schema Definition (XSD) » how to validate ExtendedMetaData details
how to validate ExtendedMetaData details [message #74041] Wed, 19 March 2008 18:46 Go to next message
Matthew Rawlings is currently offline Matthew RawlingsFriend
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>
Re: how to validate ExtendedMetaData details [message #74059 is a reply to message #74041] Wed, 19 March 2008 21:59 Go to previous message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

This is a multi-part message in MIME format.
--------------090906000608090506080401
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

Matthew,

Unfortunately I've not had time to do any type of constraint validation
on well formed extended meta data annotations.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=143478


Matthew Rawlings wrote:
> 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>
>


--------------090906000608090506080401
Content-Type: text/html; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-15"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Matthew,<br>
<br>
Unfortunately I've not had time to do any type of constraint validation
on well formed extended meta data annotations.<br>
<blockquote><a
href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=143478">https://bugs.eclipse.org/bugs/show_bug.cgi?id=143478</a><br>
</blockquote>
<br>
Matthew Rawlings wrote:
<blockquote
cite="mid:205cd985ef76275ad42014140817bdb0$1@www.eclipse.org"
type="cite">How may I validate ExtendedMetaData details?
<br>
<br>
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
<a class="moz-txt-link-rfc2396E" href="http://taxis.com/materials#alloys">"http://taxis.com/materials#alloys"</a> as
<a class="moz-txt-link-rfc2396E" href="http://taxis.com/bodywork#alloys">"http://taxis.com/bodywork#alloys"</a>, then how can I get the eCore editor
to detect and complain during validation?
<br>
<br>
&lt;?xml version="1.0" encoding="UTF-8"?&gt;
<br>
&lt;ecore:EPackage xmi:version="2.0"
<br>
Re: how to validate ExtendedMetaData details [message #602934 is a reply to message #74041] Wed, 19 March 2008 21:59 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------090906000608090506080401
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

Matthew,

Unfortunately I've not had time to do any type of constraint validation
on well formed extended meta data annotations.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=143478


Matthew Rawlings wrote:
> 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>
>


--------------090906000608090506080401
Content-Type: text/html; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-15"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Matthew,<br>
<br>
Unfortunately I've not had time to do any type of constraint validation
on well formed extended meta data annotations.<br>
<blockquote><a
href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=143478">https://bugs.eclipse.org/bugs/show_bug.cgi?id=143478</a><br>
</blockquote>
<br>
Matthew Rawlings wrote:
<blockquote
cite="mid:205cd985ef76275ad42014140817bdb0$1@www.eclipse.org"
type="cite">How may I validate ExtendedMetaData details?
<br>
<br>
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
<a class="moz-txt-link-rfc2396E" href="http://taxis.com/materials#alloys">"http://taxis.com/materials#alloys"</a> as
<a class="moz-txt-link-rfc2396E" href="http://taxis.com/bodywork#alloys">"http://taxis.com/bodywork#alloys"</a>, then how can I get the eCore editor
to detect and complain during validation?
<br>
<br>
&lt;?xml version="1.0" encoding="UTF-8"?&gt;
<br>
&lt;ecore:EPackage xmi:version="2.0"
<br>


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:how to validate ExtendedMetaData details
Next Topic:Creating Link in XSD
Goto Forum:
  


Current Time: Thu Apr 25 07:44:12 GMT 2024

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

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

Back to the top