Class XMLParserFactory


  • public class XMLParserFactory
    extends java.lang.Object
    Creates an XML parser.
    Author:
    Marc De Scheemaecker
    • Field Detail

      • DEFAULT_CLASS

        public static final java.lang.String DEFAULT_CLASS
        The class name of the default XML parser.
        See Also:
        Constant Field Values
      • CLASS_KEY

        public static final java.lang.String CLASS_KEY
        The Java properties key of the XML parser class name.
        See Also:
        Constant Field Values
    • Constructor Detail

      • XMLParserFactory

        public XMLParserFactory()
    • Method Detail

      • createDefaultXMLParser

        public static IXMLParser createDefaultXMLParser()
                                                 throws java.lang.ClassNotFoundException,
                                                        java.lang.InstantiationException,
                                                        java.lang.IllegalAccessException
        Creates a default parser.
        Returns:
        the non-null parser.
        Throws:
        java.lang.ClassNotFoundException - if the class of the parser or validator could not be found.
        java.lang.InstantiationException - if the parser could not be created
        java.lang.IllegalAccessException - if the parser could not be created
        See Also:
        DEFAULT_CLASS, CLASS_KEY
      • createDefaultXMLParser

        public static IXMLParser createDefaultXMLParser​(IXMLBuilder builder)
                                                 throws java.lang.ClassNotFoundException,
                                                        java.lang.InstantiationException,
                                                        java.lang.IllegalAccessException
        Creates a default parser.
        Parameters:
        builder - the XML builder.
        Returns:
        the non-null parser.
        Throws:
        java.lang.ClassNotFoundException - if the class of the parser could not be found.
        java.lang.InstantiationException - if the parser could not be created
        java.lang.IllegalAccessException - if the parser could not be created
        See Also:
        DEFAULT_CLASS, CLASS_KEY
      • createXMLParser

        public static IXMLParser createXMLParser​(java.lang.String className,
                                                 IXMLBuilder builder)
                                          throws java.lang.ClassNotFoundException,
                                                 java.lang.InstantiationException,
                                                 java.lang.IllegalAccessException
        Creates a parser.
        Parameters:
        className - the name of the class of the XML parser
        builder - the XML builder.
        Returns:
        the non-null parser.
        Throws:
        java.lang.ClassNotFoundException - if the class of the parser could not be found.
        java.lang.InstantiationException - if the parser could not be created
        java.lang.IllegalAccessException - if the parser could not be created