|
| static OutputStream | insertDTD (final String dtdPath, final String file, final OutputStream outputStream) throws XMLStreamException |
| |
| static OutputStream | insertDTD2 (final String dtdPath, final String file, final OutputStream outputStream) throws TransformerException |
| |
| static void | validateBuild (final String dtd, final String file) throws SAXException, IOException, ParserConfigurationException |
| |
| static void | validate (final String xsdPath, final String file) throws SAXException, IOException |
| |
| static void | validate (final Validator validator, final String file) throws SAXException, IOException |
| |
| static Validator | makeValidator (final String xsdPath) throws SAXException |
| |
| static void | validateAll (final String xsdPath, final String... files) throws SAXException |
| |
| static void | main (final String[] args) throws SAXException |
| |
◆ Validate()
| grammarscope.io.xml.Validate.Validate |
( |
| ) |
|
|
private |
◆ insertDTD()
| static OutputStream grammarscope.io.xml.Validate.insertDTD |
( |
final String |
dtdPath, |
|
|
final String |
file, |
|
|
final OutputStream |
outputStream |
|
) |
| throws XMLStreamException |
|
static |
Insert DTD
- Parameters
-
| dtdPath | new dtd path |
| file | source file |
| outputStream | output stream |
- Returns
- output stream
- Exceptions
-
| XMLStreamException | exception |
◆ insertDTD2()
| static OutputStream grammarscope.io.xml.Validate.insertDTD2 |
( |
final String |
dtdPath, |
|
|
final String |
file, |
|
|
final OutputStream |
outputStream |
|
) |
| throws TransformerException |
|
static |
Insert DTD
- Parameters
-
| dtdPath | new dtd path |
| file | source file |
| outputStream | output stream |
- Returns
- output stream
- Exceptions
-
| TransformerException | exception |
◆ main()
| static void grammarscope.io.xml.Validate.main |
( |
final String[] |
args | ) |
throws SAXException |
|
static |
Main
- Parameters
-
| args | args[0] xsd, args[1..] files to validate |
- Exceptions
-
◆ makeValidator()
| static Validator grammarscope.io.xml.Validate.makeValidator |
( |
final String |
xsdPath | ) |
throws SAXException |
|
static |
Make validator
- Parameters
-
- Returns
- validator
- Exceptions
-
◆ validate() [1/2]
| static void grammarscope.io.xml.Validate.validate |
( |
final String |
xsdPath, |
|
|
final String |
file |
|
) |
| throws SAXException, IOException |
|
static |
Validate
- Parameters
-
| xsdPath | xsd file |
| file | file to validate |
- Exceptions
-
| SAXException | exception |
| IOException | exception |
◆ validate() [2/2]
| static void grammarscope.io.xml.Validate.validate |
( |
final Validator |
validator, |
|
|
final String |
file |
|
) |
| throws SAXException, IOException |
|
static |
Validate
- Parameters
-
| validator | validator |
| file | file to validate |
- Exceptions
-
| SAXException | exception |
| IOException | exception |
◆ validateAll()
| static void grammarscope.io.xml.Validate.validateAll |
( |
final String |
xsdPath, |
|
|
final String... |
files |
|
) |
| throws SAXException |
|
static |
Validate all
- Parameters
-
| xsdPath | xsd path |
| files | files |
- Exceptions
-
◆ validateBuild()
| static void grammarscope.io.xml.Validate.validateBuild |
( |
final String |
dtd, |
|
|
final String |
file |
|
) |
| throws SAXException, IOException, ParserConfigurationException |
|
static |
Validate build
- Parameters
-
- Exceptions
-
| SAXException | exception |
| IOException | exception |
| ParserConfigurationException | exception |
The documentation for this class was generated from the following file:
- grammarscope/library/src/main/java/grammarscope/io/xml/Validate.java