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