|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.cip4.elk.impl.jmf.preprocess.CheckJDFWrapper
public class CheckJDFWrapper
A wrapper for easy validation with CheckJDF. TODO Use caching to improve performance
| Method Summary | |
|---|---|
static boolean |
isValid(java.io.File reportFile)
Deprecated. Validation calls now return a boolean |
static boolean |
isValid(java.io.Reader reportReader)
Deprecated. Validation calls now return a boolean |
static boolean |
isValid(java.lang.String reportString)
Deprecated. Validation calls now return a boolean |
static boolean |
validate(java.io.File jdfFile,
java.io.File reportFile)
Validates the JDF instance or JMF message read from a file. |
static boolean |
validate(java.io.File jdfFile,
java.io.File schemaFile,
java.io.File devcapFile,
java.io.File reportFile)
Validates the JDF instance or JMF message read from a file. |
static boolean |
validate(java.io.File jdf,
java.lang.StringBuffer report)
|
static boolean |
validate(java.io.InputStream jdfIn,
java.io.File reportFile)
Validates the JDF instance or JMF message read from the InputStream |
static boolean |
validate(java.io.InputStream jdf,
java.lang.StringBuffer report)
|
static boolean |
validate(org.cip4.jdflib.node.JDFNode jdf,
java.io.File schemaFile,
org.cip4.jdflib.jmf.JDFJMF devcap,
java.io.File reportFile)
Validates the JDF instance or JMF message read from a file. |
static boolean |
validate(java.lang.String jdf)
Validates a JDF instance or JMF message read from the specified String |
static boolean |
validate(java.lang.String jdf,
java.io.File reportFile)
Validates the JDF instance or JMF message read from the String |
static boolean |
validate(java.lang.String jdf,
java.lang.StringBuffer report)
Validates a JDF instance or JMF message read from the specified String |
static void |
validateCommandLine(java.lang.String[] commandLineArgs)
Deprecated. CheckJDF's validation settings can now relatively easily be configured by setting public members instead of using the command line. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static boolean validate(java.io.InputStream jdfIn,
java.io.File reportFile)
throws java.io.IOException
InputStream
jdfIn - the JDF instance or JMF message to parsereportFile - the absolute path to the file to write the validation report to
java.io.IOException
public static boolean validate(java.lang.String jdf)
throws java.io.IOException
String
jdf - the JDF instance or JMF message to parse
java.io.IOException
public static boolean validate(java.lang.String jdf,
java.lang.StringBuffer report)
throws java.io.IOException
String
jdf - the JDF instance or JMF message to parsereport - a buffer to append the XML validation report to
java.io.IOException
public static boolean validate(java.io.InputStream jdf,
java.lang.StringBuffer report)
throws java.io.IOException
java.io.IOException
public static boolean validate(java.io.File jdf,
java.lang.StringBuffer report)
throws java.io.IOException
java.io.IOException
public static boolean validate(java.lang.String jdf,
java.io.File reportFile)
throws java.io.IOException
String
jdf - the JDF instance or JMF message to parsereportFile - the absolute path to the file to write the validation report
to
java.io.IOException
public static boolean validate(java.io.File jdfFile,
java.io.File reportFile)
throws java.io.IOException
jdfFile - the JDF instance or JMF message to parsereportFile - the absolute path to the file to write the validation report
to
java.io.IOException
public static boolean validate(org.cip4.jdflib.node.JDFNode jdf,
java.io.File schemaFile,
org.cip4.jdflib.jmf.JDFJMF devcap,
java.io.File reportFile)
throws java.io.IOException
jdf - the JDF instance or JMF message to parseschemaFile - The schema file to use for schema validation. If
null then schema validation is not performed.devcap - The device capabilities to use for validation. If
null testing against device capabilities is not
performed.reportFile - The file to write the validation XMl report to. If
null no XML report is written.
java.io.IOException
public static boolean validate(java.io.File jdfFile,
java.io.File schemaFile,
java.io.File devcapFile,
java.io.File reportFile)
throws java.io.IOException
jdfFile - the JDF instance or JMF message to parseschemaFile - The schema file to use for schema validation. If
null then schema validation is not performed.devcapFile - The device capabilities file to use for validation. If
null testing against device capabilities is not
performed.reportFile - The file to write the validation XMl report to. If
null no XML report is written.
java.io.IOExceptionpublic static void validateCommandLine(java.lang.String[] commandLineArgs)
commandLineArgs - validate(File, File, File, File)
public static boolean isValid(java.io.File reportFile)
throws java.lang.Exception
reportFile - the CheckJDF XML report
true if the JDF was valid; false
otherwise
java.lang.Exception
public static boolean isValid(java.lang.String reportString)
throws java.lang.Exception
reportString - a string containing the CheckJDF XML report
true if the JDF was valid; false
otherwise
java.lang.Exception
public static boolean isValid(java.io.Reader reportReader)
throws java.lang.Exception
reportReader - a Reader that reads an CheckJDF XML report
true if the JDF was valid; false
otherwise
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||