APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.org.apache.xerces.internal.impl.dv

public abstract Class DTDDVFactory

extends Object
Class Inheritance
Known Direct Subclasses
com.sun.org.apache.xerces.internal.impl.dv.dtd.DTDDVFactoryImpl
Imports
com.sun.org.apache.xerces.internal.impl.dv.dtd.DTDDVFactoryImpl, .XML11DTDDVFactoryImpl, com.sun.org.apache.xerces.internal.utils.ObjectFactory, java.util.Map

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

Field Summary

Modifier and TypeField and Description
private static final String
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 Map<String, DatatypeValidator>

Returns:

a map which contains all datatypes
getBuiltInTypes
()

get all built-in DVs, which are stored in a map 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
XML11_DATATYPE_VALIDATOR_FACTORYback to summary
private static final String XML11_DATATYPE_VALIDATOR_FACTORY

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 Map<String, DatatypeValidator> getBuiltInTypes()

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

Returns:Map<String, DatatypeValidator>

a map 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