Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Eclipse EMF Validation Framework
Previous Page Home Next Page

XML Constraint Definition Parsers

Identifier:
org.eclipse.emf.validation.constraintParsers

Since:
1.0

Description:
This extension point allows plug-ins to register objects which know how to parse constraints encoded in a particular language from the information supplied in an IConstraintDescriptor.

Configuration Markup:

<!ELEMENT extension ( constraintParser+)>

<!ATTLIST extension

point CDATA #REQUIRED

id    CDATA #IMPLIED

name  CDATA #IMPLIED

>


<!ELEMENT constraintParser EMPTY>

<!ATTLIST constraintParser

lang  CDATA #REQUIRED

class CDATA #REQUIRED

>

Defines a constraint parser.


  • lang - Indicates the constraint language which this builder supports. This matches values of the "lang" attribute in elements in XML constraint declarations. The language is not case-sensitive.
  • class - The name of a class implementing a specialization of the IConstraintParser interface, which handles the associated constraint language.

Examples:

To provide support for constraints defined in scripted Java embedded in the constraint 'body', using BeanShell, one might define an extension like the following:


     <extension
         point=
"org.eclipse.emf.validation.constraintParsers"
>
      <constraintParser
            class=
"com.example.validation.BeanShellConstraintParser"

            lang=
"Java-BeanShell"
>
      </constraintParser>
   </extension>

Supplied Implementation:
The org.eclipse.emf.validation.ocl plug-in provides support for OCL as a constraint language using a constraint parser.


Copyright (c) 2005 IBM Corporation and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at https://www.eclipse.org/legal/epl-v10.html


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire