public class PnmlRngValidation extends Object
Constructor and Description |
---|
PnmlRngValidation()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
validatePnmlDoc(String schemafile,
InputSource pnmldocStream)
Checks if a given pnml file is valid with a given grammar file.
|
boolean |
validatePnmlDoc(String schemafile,
String pnmldoc)
Checks if a given pnml file is valid with a given grammar file.
|
public final boolean validatePnmlDoc(String schemafile, String pnmldoc) throws ValidationProcessException
schemafile
- the path to schema file.pnmldoc
- the path to doc.ValidationProcessException
- if an error occur while reading the grammarpublic final boolean validatePnmlDoc(String schemafile, InputSource pnmldocStream) throws ValidationProcessException
schemafile
- the url to schemapnmldocStream
- a stream corresponding to the fileValidationProcessException
- if an error occur while reading the grammarCopyright © 2009–2016 Univ. Paris Ouest, and Univ. Pierre et Marie Curie / CNRS UMR 7606 (LIP6). All rights reserved.