|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.xerces.impl.dv.DTDDVFactory
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.
Constructor Summary | |
protected |
DTDDVFactory()
|
Method Summary | |
abstract DatatypeValidator |
getBuiltInDV(java.lang.String name)
return a dtd type of the given name |
abstract java.util.Hashtable |
getBuiltInTypes()
get all built-in DVs, which are stored in a hashtable keyed by the name |
static DTDDVFactory |
getInstance()
Get an instance of DTDDVFactory implementation. |
static void |
setFactoryClass(java.lang.String factoryClass)
Set the class name of the dtd factory implementation. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected DTDDVFactory()
Method Detail |
public static final void setFactoryClass(java.lang.String factoryClass) throws DVFactoryException
getInstance
successfully returns, otherwise a DVFactoryException will be thrown.
DVFactoryException
- the method cannot be called at this timepublic static final DTDDVFactory getInstance() throws DVFactoryException
setFactoryClass
is called before this method,
the passed-in class name will be used to create the factory instance.
Otherwise, a default implementation is used.
After the first time this method successfully returns, any subsequent
invocation to this method returns the same instance.
DVFactoryException
- cannot create an instance of the specified
class name or the default class namepublic abstract DatatypeValidator getBuiltInDV(java.lang.String name)
name
- the name of the datatype
public abstract java.util.Hashtable getBuiltInTypes()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |