public class XMLParserFactory
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_KEY
The Java properties key of the XML parser class name.
|
static java.lang.String |
DEFAULT_CLASS
The class name of the default XML parser.
|
Constructor and Description |
---|
XMLParserFactory() |
Modifier and Type | Method and Description |
---|---|
static IXMLParser |
createDefaultXMLParser()
Creates a default parser.
|
static IXMLParser |
createDefaultXMLParser(IXMLBuilder builder)
Creates a default parser.
|
static IXMLParser |
createXMLParser(java.lang.String className,
IXMLBuilder builder)
Creates a parser.
|
public static final java.lang.String DEFAULT_CLASS
public static final java.lang.String CLASS_KEY
public static IXMLParser createDefaultXMLParser() throws java.lang.ClassNotFoundException, java.lang.InstantiationException, java.lang.IllegalAccessException
java.lang.ClassNotFoundException
- if the class of the parser or validator could not be found.java.lang.InstantiationException
- if the parser could not be createdjava.lang.IllegalAccessException
- if the parser could not be createdDEFAULT_CLASS
,
CLASS_KEY
public static IXMLParser createDefaultXMLParser(IXMLBuilder builder) throws java.lang.ClassNotFoundException, java.lang.InstantiationException, java.lang.IllegalAccessException
builder
- the XML builder.java.lang.ClassNotFoundException
- if the class of the parser could not be found.java.lang.InstantiationException
- if the parser could not be createdjava.lang.IllegalAccessException
- if the parser could not be createdDEFAULT_CLASS
,
CLASS_KEY
public static IXMLParser createXMLParser(java.lang.String className, IXMLBuilder builder) throws java.lang.ClassNotFoundException, java.lang.InstantiationException, java.lang.IllegalAccessException
className
- the name of the class of the XML parserbuilder
- the XML builder.java.lang.ClassNotFoundException
- if the class of the parser could not be found.java.lang.InstantiationException
- if the parser could not be createdjava.lang.IllegalAccessException
- if the parser could not be created