public abstract class

DTDDVFactory

extends Object
java.lang.Object
   ↳ org.apache.xerces.impl.dv.DTDDVFactory
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

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.

Summary

Protected Constructors
DTDDVFactory()
Public Methods
abstract DatatypeValidator getBuiltInDV(String name)
return a dtd type of the given name
abstract Hashtable getBuiltInTypes()
get all built-in DVs, which are stored in a hashtable keyed by the name
synchronized final static DTDDVFactory getInstance()
Get an instance of the default DTDDVFactory implementation.
synchronized final static DTDDVFactory getInstance(String factoryClass)
Get an instance of DTDDVFactory implementation.
[Expand]
Inherited Methods
From class java.lang.Object

Protected Constructors

protected DTDDVFactory ()

Public Methods

public abstract DatatypeValidator getBuiltInDV (String name)

return a dtd type of the given name

Parameters
name the name of the datatype
Returns
  • the datatype validator of the given name

public abstract Hashtable getBuiltInTypes ()

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

Returns
  • a hashtable which contains all datatypes

public static final synchronized DTDDVFactory 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

public static final synchronized DTDDVFactory getInstance (String factoryClass)

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