Top Description Fields Constructors Methods
org.apache.xerces.impl.dv

public abstract Class DTDDVFactory

extends Object
Class Inheritance
Known Direct Subclasses
org.apache.xerces.impl.dv.dtd.DTDDVFactoryImpl
Imports
java.util.Hashtable

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.
Author
Sandy Gao, IBM
Version
$Id: DTDDVFactory.java 558581 2007-07-23 01:38:26Z mrglavas $

Field Summary

Modifier and TypeField and Description
private static final String

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public abstract DatatypeValidator

Returns:

the datatype validator of the given name
getBuiltInDV
(String
the name of the datatype
name
)

return a dtd type of the given name

public abstract Hashtable<K, V>

Returns:

a hashtable which contains all datatypes
getBuiltInTypes
()

get all built-in DVs, which are stored in a hashtable keyed by the name

public static final DTDDVFactory

Returns:

an instance of DTDDVFactory implementation
getInstance
()

Get an instance of the default DTDDVFactory implementation.

public static final DTDDVFactory

Returns:

an instance of DTDDVFactory implementation
getInstance
(String
name of the implementation to load.
factoryClass
)

Get an instance of DTDDVFactory implementation.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

DEFAULT_FACTORY_CLASSback to summary
private static final String DEFAULT_FACTORY_CLASS

Constructor Detail

DTDDVFactoryback to summary
protected DTDDVFactory()

Method Detail

getBuiltInDVback to summary
public abstract DatatypeValidator getBuiltInDV(String name)

return a dtd type of the given name

Parameters
name:String

the name of the datatype

Returns:DatatypeValidator

the datatype validator of the given name

getBuiltInTypesback to summary
public abstract Hashtable<K, V> getBuiltInTypes()

get all built-in DVs, which are stored in a hashtable keyed by the name

Returns:Hashtable<K, V>

a hashtable which contains all datatypes

getInstanceback to summary
public static final DTDDVFactory getInstance() throws DVFactoryException

Get an instance of the default DTDDVFactory implementation.

Returns:DTDDVFactory

an instance of DTDDVFactory implementation

Exceptions
DVFactoryException:
cannot create an instance of the specified class name or the default class name
getInstanceback to summary
public static final DTDDVFactory getInstance(String factoryClass) throws DVFactoryException

Get an instance of DTDDVFactory implementation.

Parameters
factoryClass:String

name of the implementation to load.

Returns:DTDDVFactory

an instance of DTDDVFactory implementation

Exceptions
DVFactoryException:
cannot create an instance of the specified class name or the default class name