public interface XMLConstraint extends Constraint
Constraint
interface - the capability
to be created through XML configuration files. In this case, a public no-arg constructor
is also required.Modifier and Type | Method and Description |
---|---|
void |
init(Constrainable constrainable,
java.util.List<org.jdom.Element> list)
This method is used to initialize a constraint based on data read from an XML configuration
file.
|
isSatisfied, supports
void init(Constrainable constrainable, java.util.List<org.jdom.Element> list)
Constrainable
to which the constraint applies and a list of JDOM elements,
which contain the details about the constraint itself.
This method initializes the constraint and attaches it to the list of constraints
of the Constrainable
instance.
constrainable
- The Constrainable
instance to which this constraint applieslist
- A list of JDOM elements to be used to initialize the constraint. Specifically,
these are tags of the form
<param name="..." value="..." />
containing key/value pairs with information. The expected pairs are specific to each implementation.