Class FactoryImpl
java.lang.Object
org.iso_relax.verifier.VerifierFactory
com.sun.msv.verifier.jarv.FactoryImpl
- Direct Known Subclasses:
DTDFactoryImpl, RELAXCoreFactoryImpl, RELAXNGFactoryImpl, TheFactoryImpl, TREXFactoryImpl, XSFactoryImpl
public abstract class FactoryImpl
extends org.iso_relax.verifier.VerifierFactory
base implementation of RELAXFactoryImpl and TREXFactoryImpl
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate classprivate static classwrapper exception so that we can throw it from the GrammarReaderController. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final SAXParserFactoryprivate EntityResolverTo be used to resolve files included/imported by the schema.private boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.iso_relax.verifier.SchemacompileSchema(InputSource source) (package private) static IVerifiergets the VGM by sniffing its type.booleanprotected abstract Grammarparse(InputSource source, GrammarReaderController controller) parses a Grammar from the specified source.voidsetEntityResolver(EntityResolver _resolver) voidsetFeature(String feature, boolean v) Methods inherited from class org.iso_relax.verifier.VerifierFactory
compileSchema, compileSchema, compileSchema, compileSchema, getProperty, newInstance, newInstance, newInstance, newVerifier, newVerifier, newVerifier, newVerifier, newVerifier, setProperty
-
Field Details
-
factory
-
usePanicMode
private boolean usePanicMode -
resolver
To be used to resolve files included/imported by the schema. Can be null.
-
-
Constructor Details
-
FactoryImpl
-
FactoryImpl
protected FactoryImpl()
-
-
Method Details
-
setFeature
public void setFeature(String feature, boolean v) throws SAXNotRecognizedException, SAXNotSupportedException - Overrides:
setFeaturein classorg.iso_relax.verifier.VerifierFactory- Throws:
SAXNotRecognizedExceptionSAXNotSupportedException
-
isFeature
- Overrides:
isFeaturein classorg.iso_relax.verifier.VerifierFactory- Throws:
SAXNotRecognizedExceptionSAXNotSupportedException
-
setEntityResolver
- Overrides:
setEntityResolverin classorg.iso_relax.verifier.VerifierFactory
-
getEntityResolver
- Overrides:
getEntityResolverin classorg.iso_relax.verifier.VerifierFactory
-
parse
protected abstract Grammar parse(InputSource source, GrammarReaderController controller) throws SAXException, org.iso_relax.verifier.VerifierConfigurationException parses a Grammar from the specified source. return null if an error happens.- Throws:
SAXExceptionorg.iso_relax.verifier.VerifierConfigurationException
-
compileSchema
public org.iso_relax.verifier.Schema compileSchema(InputSource source) throws org.iso_relax.verifier.VerifierConfigurationException, SAXException - Specified by:
compileSchemain classorg.iso_relax.verifier.VerifierFactory- Throws:
org.iso_relax.verifier.VerifierConfigurationExceptionSAXException
-
createVerifier
-