Top Description Constructors Methods
com.sun.tools.xjc.reader.xmlschema.parser

public Class SchemaConstraintChecker

extends Object
Class Inheritance
Imports
java.io.File, .IOException, javax.xml.transform.Source, javax.xml.transform.sax.SAXSource, javax.xml.validation.SchemaFactory, com.sun.tools.xjc.ConsoleErrorReporter, .ErrorReceiver, com.sun.tools.xjc.util.ErrorReceiverFilter, org.glassfish.jaxb.core.v2.util.XmlFactory, org.w3c.dom.ls.LSInput, .LSResourceResolver, org.xml.sax.EntityResolver, .InputSource, .SAXException

Checks XML Schema XML representation constraints and schema component constraints by using JAXP 1.3 validation framework.
Authors
Kohsuke Kawaguchi ([email protected]), Ryan Shoemaker ([email protected])

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static boolean
check(InputSource[]
Schema files to be checked.
schemas
,
ErrorReceiver
detected errors will be reported to this handler.
errorHandler
,
final EntityResolver entityResolver, boolean disableXmlSecurity)

Returns: true if there was no error, false if there were errors.

private static Source[]

Returns:

array of Source
getSchemaSource
(InputSource[]
array of InputSource
schemas
,
EntityResolver entityResolver)

convert an array of InputSource into an array of Source

public static void
main(String[] args)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

SchemaConstraintCheckerback to summary
public SchemaConstraintChecker()

Method Detail

checkback to summary
public static boolean check(InputSource[] schemas, ErrorReceiver errorHandler, final EntityResolver entityResolver, boolean disableXmlSecurity)
Parameters
schemas:InputSource[]

Schema files to be checked.

errorHandler:ErrorReceiver

detected errors will be reported to this handler.

Returns:boolean

true if there was no error, false if there were errors.

getSchemaSourceback to summary
private static Source[] getSchemaSource(InputSource[] schemas, EntityResolver entityResolver) throws SAXException

convert an array of InputSource into an array of Source

Parameters
schemas:InputSource[]

array of InputSource

Returns:Source[]

array of Source

mainback to summary
public static void main(String[] args) throws IOException