Class BaseSchemaFactory

  • Direct Known Subclasses:
    RelaxNGSchemaFactory, W3CSchemaFactory

    public abstract class BaseSchemaFactory
    extends org.codehaus.stax2.validation.XMLValidationSchemaFactory
    Shared base class extended by concrete schema factory implementations.
    • Constructor Detail

      • BaseSchemaFactory

        protected BaseSchemaFactory​(String schemaType)
    • 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
      • getSaxFactory

        protected static SAXParserFactory getSaxFactory()
        We will essentially share a singleton sax parser factory; the reason being that constructing (or, rather, locating implementation class) is bit expensive.