|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcometa.translator.ValidateXML
public class ValidateXML
This class verifies the validity of a given XML file, checking it against its corresponding XML Schema. It uses the xerces library (for more information, see the xerces documentation).
Constructor Summary | |
---|---|
ValidateXML(org.xmldb.api.modules.XMLResource standardMethod,
org.xmldb.api.modules.XMLResource standardProduct)
The ValidateXML constructor has two parameters: the
product schema and the method schema. |
Method Summary | |
---|---|
static java.io.File |
getStandardMethod()
|
static java.io.File |
getStandardProduct()
|
static boolean |
isValidMethod(org.xmldb.api.modules.XMLResource method)
This method is used to verify the correctness of a given method XMLResource. |
static boolean |
isValidProduct(org.xmldb.api.modules.XMLResource product)
This method is used to verify the correctness of a given product XMLResource. |
static void |
setStandardMethod(java.io.File standardMethod)
|
static void |
setStandardProduct(java.io.File standardProduct)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ValidateXML(org.xmldb.api.modules.XMLResource standardMethod, org.xmldb.api.modules.XMLResource standardProduct)
ValidateXML
constructor has two parameters: the
product schema and the method schema.
standardMethod
- The XML Schema that validates a method metadata.standardProduct
- The XML Schema that validates a product metadata.Method Detail |
---|
public static boolean isValidProduct(org.xmldb.api.modules.XMLResource product)
product
- The product to be checked for validity.
public static boolean isValidMethod(org.xmldb.api.modules.XMLResource method)
method
- The method to be checked for validity.
public static java.io.File getStandardMethod()
public static void setStandardMethod(java.io.File standardMethod)
public static java.io.File getStandardProduct()
public static void setStandardProduct(java.io.File standardProduct)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |