FileDocCategorySizeDatePackage
XML11DTDDVFactoryImpl.javaAPI DocJava SE 5 API4841Fri Aug 26 14:55:48 BST 2005com.sun.org.apache.xerces.internal.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
author
Neil Graham, IBM
version
$Id: XML11DTDDVFactoryImpl.java,v 1.2 2003/05/08 20:11:55 elena Exp $

Fields Summary
static Hashtable
fXML11BuiltInTypes
Constructors Summary
Methods Summary
public com.sun.org.apache.xerces.internal.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;