Class DTDSchemaFactory


  • public class DTDSchemaFactory
    extends org.codehaus.stax2.validation.XMLValidationSchemaFactory
    Factory for creating DTD validator schema objects (shareable stateless "blueprints" for creating actual validators).

    Due to close coupling of XML and DTD, some of the functionality implemented (like that of reading internal subsets embedded in XML documents) is only accessible by core Woodstox. The externally accessible

    • Field Detail

      • mSchemaConfig

        protected final ValidatorConfig mSchemaConfig
        Current configurations for this factory
      • mReaderConfig

        protected final ReaderConfig mReaderConfig
        This configuration object is used (instead of a more specific one) since the actual DTD reader uses such configuration object.
    • Constructor Detail

      • DTDSchemaFactory

        public DTDSchemaFactory()
    • Method Detail

      • isPropertySupported

        public boolean isPropertySupported​(String propName)
        Specified by:
        isPropertySupported in class org.codehaus.stax2.validation.XMLValidationSchemaFactory
      • setProperty

        public boolean setProperty​(String propName,
                                   Object value)
        Specified by:
        setProperty in class org.codehaus.stax2.validation.XMLValidationSchemaFactory
      • getProperty

        public Object getProperty​(String propName)
        Specified by:
        getProperty in class org.codehaus.stax2.validation.XMLValidationSchemaFactory
      • createSchema

        public org.codehaus.stax2.validation.XMLValidationSchema createSchema​(Reader r,
                                                                              String publicId,
                                                                              String systemId)
                                                                       throws XMLStreamException
        Specified by:
        createSchema in class org.codehaus.stax2.validation.XMLValidationSchemaFactory
        Throws:
        XMLStreamException
      • createSchema

        public org.codehaus.stax2.validation.XMLValidationSchema createSchema​(URL url)
                                                                       throws XMLStreamException
        Specified by:
        createSchema in class org.codehaus.stax2.validation.XMLValidationSchemaFactory
        Throws:
        XMLStreamException
      • createSchema

        public org.codehaus.stax2.validation.XMLValidationSchema createSchema​(File f)
                                                                       throws XMLStreamException
        Specified by:
        createSchema in class org.codehaus.stax2.validation.XMLValidationSchemaFactory
        Throws:
        XMLStreamException