org.apache.xerces.impl.dv
Class DTDDVFactory
java.lang.Object
org.apache.xerces.impl.dv.DTDDVFactory
public abstract class DTDDVFactory
extends java.lang.Object
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.
$Id: DTDDVFactory.java 320097 2004-10-06 14:56:52Z mrglavas $
DTDDVFactory
protected DTDDVFactory()
getBuiltInDV
public abstract DatatypeValidator getBuiltInDV(String name)
return a dtd type of the given name
name
- the name of the datatype
- the datatype validator of the given name
getBuiltInTypes
public abstract Hashtable getBuiltInTypes()
get all built-in DVs, which are stored in a hashtable keyed by the name
- a hashtable which contains all datatypes
getInstance
public static final DTDDVFactory getInstance()
throws DVFactoryException
Get an instance of the default DTDDVFactory implementation.
- an instance of DTDDVFactory implementation
DVFactoryException
- cannot create an instance of the specified
class name or the default class name
getInstance
public static final DTDDVFactory getInstance(String factoryClass)
throws DVFactoryException
Get an instance of DTDDVFactory implementation.
factoryClass
- name of the implementation to load.
- an instance of DTDDVFactory implementation
DVFactoryException
- cannot create an instance of the specified
class name or the default class name
Copyright B) 1999-2006 The Apache Software Foundation. All Rights Reserved.