org.eclipse.emf.validation.xml
Interface IXmlConstraintParser


public interface IXmlConstraintParser

Interface implemented by objects that know how to create the constraint implementation described by a constraint descriptor.

This interface is intended to be implemented by plug-ins that supply constraint parsers via the constraintParsers extension point.


Method Summary
 IModelConstraint parseConstraint(IXmlConstraintDescriptor descriptor)
          Parses the XML content of a constraint descriptor to create an implementation of the model constraint interface.
 

Method Detail

parseConstraint

public IModelConstraint parseConstraint(IXmlConstraintDescriptor descriptor)
                                 throws ConstraintParserException
Parses the XML content of a constraint descriptor to create an implementation of the model constraint interface.

Parameters:
descriptor - the constraint descriptor containing XML data in the form of IConfigurationElements
Returns:
a constraint, if one can be created
Throws:
ConstraintParserException - if a constraint cannot be created from this descriptor

Copyright 2002, 2006 IBM Corporation and others.
All Rights Reserved.