FileDocCategorySizeDatePackage
XML11DTDDVFactoryImpl.javaAPI DocApache Xerces 3.0.13029Fri Sep 14 20:33:54 BST 2007org.apache.xerces.impl.dv.dtd

XML11DTDDVFactoryImpl

public class XML11DTDDVFactoryImpl extends DTDDVFactoryImpl
the factory to create/return built-in XML 1.1 DVs and create user-defined DVs
xerces.internal
author
Neil Graham, IBM
version
$Id: XML11DTDDVFactoryImpl.java 572061 2007-09-02 18:05:06Z mrglavas $

Fields Summary
static final Hashtable
fXML11BuiltInTypes
Constructors Summary
Methods Summary
public org.apache.xerces.impl.dv.DatatypeValidatorgetBuiltInDV(java.lang.String name)
return a dtd type of the given name This will call the super class if and only if it does not recognize the passed-in name.

param
name the name of the datatype
return
the datatype validator of the given name


                                                         
        
        if(fXML11BuiltInTypes.get(name) != null) {
            return (DatatypeValidator)fXML11BuiltInTypes.get(name);
        }
        return (DatatypeValidator)fBuiltInTypes.get(name);
    
public java.util.HashtablegetBuiltInTypes()
get all built-in DVs, which are stored in a hashtable keyed by the name New XML 1.1 datatypes are inserted.

return
a hashtable which contains all datatypes

        Hashtable toReturn = (Hashtable)fBuiltInTypes.clone();
        Enumeration xml11Keys = fXML11BuiltInTypes.keys();
        while (xml11Keys.hasMoreElements()) {
            Object key = xml11Keys.nextElement();
            toReturn.put(key, fXML11BuiltInTypes.get(key));
        }
        return toReturn;