GrammarScope  4.0.0
Classes | Static Public Member Functions | Private Member Functions | List of all members
grammarscope.io.xml.Validate Class Reference

Classes

class  DTDReplacer
 

Static Public Member Functions

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
 

Private Member Functions

 Validate ()
 

Constructor & Destructor Documentation

◆ Validate()

grammarscope.io.xml.Validate.Validate ( )
private

Member Function Documentation

◆ insertDTD()

static OutputStream grammarscope.io.xml.Validate.insertDTD ( final String  dtdPath,
final String  file,
final OutputStream  outputStream 
) throws XMLStreamException
static

Insert DTD

Parameters
dtdPathnew dtd path
filesource file
outputStreamoutput stream
Returns
output stream
Exceptions
XMLStreamExceptionexception

◆ insertDTD2()

static OutputStream grammarscope.io.xml.Validate.insertDTD2 ( final String  dtdPath,
final String  file,
final OutputStream  outputStream 
) throws TransformerException
static

Insert DTD

Parameters
dtdPathnew dtd path
filesource file
outputStreamoutput stream
Returns
output stream
Exceptions
TransformerExceptionexception

◆ main()

static void grammarscope.io.xml.Validate.main ( final String[]  args) throws SAXException
static

Main

Parameters
argsargs[0] xsd, args[1..] files to validate
Exceptions
SAXExceptionexception

◆ makeValidator()

static Validator grammarscope.io.xml.Validate.makeValidator ( final String  xsdPath) throws SAXException
static

Make validator

Parameters
xsdPathxsd file
Returns
validator
Exceptions
SAXExceptionexception

◆ validate() [1/2]

static void grammarscope.io.xml.Validate.validate ( final String  xsdPath,
final String  file 
) throws SAXException, IOException
static

Validate

Parameters
xsdPathxsd file
filefile to validate
Exceptions
SAXExceptionexception
IOExceptionexception

◆ validate() [2/2]

static void grammarscope.io.xml.Validate.validate ( final Validator  validator,
final String  file 
) throws SAXException, IOException
static

Validate

Parameters
validatorvalidator
filefile to validate
Exceptions
SAXExceptionexception
IOExceptionexception

◆ validateAll()

static void grammarscope.io.xml.Validate.validateAll ( final String  xsdPath,
final String...  files 
) throws SAXException
static

Validate all

Parameters
xsdPathxsd path
filesfiles
Exceptions
SAXExceptionexception

◆ validateBuild()

static void grammarscope.io.xml.Validate.validateBuild ( final String  dtd,
final String  file 
) throws SAXException, IOException, ParserConfigurationException
static

Validate build

Parameters
dtddtd
filefile
Exceptions
SAXExceptionexception
IOExceptionexception
ParserConfigurationExceptionexception

The documentation for this class was generated from the following file: