Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 18. The Validation Framework > XML Schema Constraints

18.5. XML Schema Constraints

When your model is defined as an XML Schema, you are able to specify constraints on the values of data types by adding facets to simple type restrictions. EMF knows how to interpret the restrictions and how to convert them to annotations representing Ecore constraints. You can mix these built-in schema-based constraints with your own named constraints that are defined as described in Section 18.1.

Although we haven’t highlighted them yet, we can find a couple of examples in the PrimerPO schema that we introduced in Chapter 4:


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial