Class DTDDVFactory
- java.lang.Object
-
- org.smooks.engine.delivery.sax.ng.org.apache.xerces.impl.dv.DTDDVFactory
-
- Direct Known Subclasses:
DTDDVFactoryImpl
public abstract class DTDDVFactory extends 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.- Version:
- $Id$
- Author:
- Sandy Gao, IBM
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDTDDVFactory()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract DatatypeValidatorgetBuiltInDV(String name)return a dtd type of the given nameabstract HashtablegetBuiltInTypes()get all built-in DVs, which are stored in a hashtable keyed by the namestatic DTDDVFactorygetInstance()Get an instance of the default DTDDVFactory implementation.static DTDDVFactorygetInstance(String factoryClass)Get an instance of DTDDVFactory implementation.
-
-
-
Method Detail
-
getInstance
public static final DTDDVFactory getInstance() throws DVFactoryException
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
public static final DTDDVFactory getInstance(String factoryClass) throws DVFactoryException
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
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
-
getBuiltInTypes
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
-
-