org.apache.xerces.impl.dv
abstract public class: DTDDVFactory [javadoc |
source]
java.lang.Object
org.apache.xerces.impl.dv.DTDDVFactory
Direct Known Subclasses:
DTDDVFactoryImpl, XML11DTDDVFactoryImpl
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.
- xerces.internal:
- author:
Sandy
- Gao, IBM
- version:
$
- Id: DTDDVFactory.java 558581 2007-07-23 01:38:26Z mrglavas $
Method from org.apache.xerces.impl.dv.DTDDVFactory Detail: |
abstract public DatatypeValidator getBuiltInDV(String name)
return a dtd type of the given name |
abstract public Hashtable getBuiltInTypes()
get all built-in DVs, which are stored in a hashtable keyed by the name |
public static final DTDDVFactory getInstance() throws DVFactoryException {
return getInstance(DEFAULT_FACTORY_CLASS);
}
Get an instance of the default DTDDVFactory implementation. |
public static final DTDDVFactory getInstance(String factoryClass) throws DVFactoryException {
try {
// if the class name is not specified, use the default one
return (DTDDVFactory)
(ObjectFactory.newInstance(factoryClass, ObjectFactory.findClassLoader(), true));
}
catch (ClassCastException e) {
throw new DVFactoryException("DTD factory class " + factoryClass + " does not extend from DTDDVFactory.");
}
}
Get an instance of DTDDVFactory implementation. |