Package org.apache.xerces.impl.dv
Class DTDDVFactory
java.lang.Object
org.apache.xerces.impl.dv.DTDDVFactory
- Direct Known Subclasses:
DTDDVFactoryImpl
The factory to create and return DTD types. The implementation should
store the created datatypes in static data, so that they can be shared by
multiple parser instance, and multiple threads.
INTERNAL:
- Usage of this class is not supported. It may be altered or removed at any time.
- Version:
- $Id: DTDDVFactory.java 558581 2007-07-23 01:38:26Z mrglavas $
- Author:
- Sandy Gao, IBM
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract DatatypeValidator
getBuiltInDV
(String name) return a dtd type of the given nameabstract Hashtable
get all built-in DVs, which are stored in a hashtable keyed by the namestatic final DTDDVFactory
Get an instance of the default DTDDVFactory implementation.static final DTDDVFactory
getInstance
(String factoryClass) Get an instance of DTDDVFactory implementation.
-
Constructor Details
-
DTDDVFactory
protected DTDDVFactory()
-
-
Method Details
-
getInstance
Get an instance of the default DTDDVFactory implementation.- Returns:
- an instance of DTDDVFactory implementation
- Throws:
DVFactoryException
- cannot create an instance of the specified class name or the default class name
-
getInstance
Get an instance of DTDDVFactory implementation.- Parameters:
factoryClass
- name of the implementation to load.- Returns:
- an instance of DTDDVFactory implementation
- Throws:
DVFactoryException
- cannot create an instance of the specified class name or the default class name
-
getBuiltInDV
return a dtd type of the given name- Parameters:
name
- the name of the datatype- Returns:
- the datatype validator of the given name
-
getBuiltInTypes
get all built-in DVs, which are stored in a hashtable keyed by the name- Returns:
- a hashtable which contains all datatypes
-