public final class XMLConstraintLoader
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static Constraint |
loadFromFile(java.lang.String fileName)
Loads a constraint from the specified XML file.
|
static Constraint |
loadFromString(java.lang.String text)
Creates a constraint from the specified XML string.
|
static Constraint |
loadFromURL(java.net.URL url)
Loads a constraint from an XML file pointed by the specified URL.
|
public static Constraint loadFromFile(java.lang.String fileName) throws XMLNotLoadedException
fileName
- The full name of an XML file storing the constraint.java.lang.NullPointerException
- if the parameter equals null.XMLNotLoadedException
- if an issue occurred during parsing the XML document.public static Constraint loadFromString(java.lang.String text) throws XMLNotLoadedException
text
- XML text describing a constraint.java.lang.NullPointerException
- if the parameter equals null.XMLNotLoadedException
- if an issue occurred during parsing the XML text.public static Constraint loadFromURL(java.net.URL url) throws XMLNotLoadedException
url
- URL that points to an XML file storing the constraint.java.lang.NullPointerException
- if the parameter equals null.XMLNotLoadedException
- if an issue occurred during parsing the XML document.