|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.emf.validation.service.ConstraintFactory
A constraint factory creates constraint implementations from descriptors.
The intent is to support registration of custom factory implementations,
but currently, the only implementation is the XmlConstraintFactory
.
This class is not intended to be used outside of the validation framework.
Constructor Summary | |
---|---|
protected |
ConstraintFactory()
Initializes me. |
Method Summary | |
---|---|
protected abstract IModelConstraint |
createConstraint(IXmlConstraintDescriptor descriptor)
Implemented by subclasses to do the hard work of creating a constraint. |
static ConstraintFactory |
getInstance()
Obtains the currently registered factory instance. |
IModelConstraint |
newConstraint(IXmlConstraintDescriptor descriptor)
Creates the constraint represented by the specified descriptor . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected ConstraintFactory()
Method Detail |
public static ConstraintFactory getInstance()
public final IModelConstraint newConstraint(IXmlConstraintDescriptor descriptor)
descriptor
. This method never fails to return a valid
constraint implementation (though it may be a proxy for a disabled
constraint if the descriptor
is invalid). This method
delegates to the superclass implementation of the
ConstraintFactory.createConstraint(org.eclipse.emf.validation.xml.IXmlConstraintDescriptor)
method.
descriptor
- the constraint descriptor
ConstraintFactory.createConstraint(org.eclipse.emf.validation.xml.IXmlConstraintDescriptor)
protected abstract IModelConstraint createConstraint(IXmlConstraintDescriptor descriptor)
descriptor
- a descriptor of the constraint to be created
|
Copyright 2002, 2006 IBM Corporation and others. All Rights Reserved. |
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |