|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.emf.validation.service.ConstraintFactory
public abstract class 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(IConstraintDescriptor descriptor)
Implemented by subclasses to do the hard work of creating a constraint. |
protected abstract IModelConstraint |
createConstraint(IXmlConstraintDescriptor descriptor)
Deprecated. Use the createConstraint(IConstraintDescriptor)
method, instead |
static ConstraintFactory |
getInstance()
Obtains the currently registered factory instance. |
IModelConstraint |
newConstraint(IConstraintDescriptor descriptor)
Creates the constraint represented by the specified descriptor. |
IModelConstraint |
newConstraint(IXmlConstraintDescriptor descriptor)
Deprecated. Use the newConstraint(IConstraintDescriptor)
method, instead |
| 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)
newConstraint(IConstraintDescriptor)
method, instead
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
createConstraint(org.eclipse.emf.validation.xml.IXmlConstraintDescriptor) method.
descriptor - the constraint descriptor
createConstraint(org.eclipse.emf.validation.xml.IXmlConstraintDescriptor)protected abstract IModelConstraint createConstraint(IXmlConstraintDescriptor descriptor)
createConstraint(IConstraintDescriptor)
method, instead
descriptor - a descriptor of the constraint to be created
public final IModelConstraint newConstraint(IConstraintDescriptor 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
createConstraint(org.eclipse.emf.validation.xml.IXmlConstraintDescriptor) method.
descriptor - the constraint descriptor
createConstraint(org.eclipse.emf.validation.xml.IXmlConstraintDescriptor)protected abstract IModelConstraint createConstraint(IConstraintDescriptor descriptor)
descriptor - a descriptor of the constraint to be created
|
Copyright 2002, 2007 IBM Corporation and others. All Rights Reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||