< prev index next >

src/com/sun/org/apache/xerces/internal/impl/dv/DTDDVFactory.java

Print this page
rev 2127 : 8048021: Remove @version tag in jaxp repo
Reviewed-by: joehw


  17  * See the License for the specific language governing permissions and
  18  * limitations under the License.
  19  */
  20 
  21 package com.sun.org.apache.xerces.internal.impl.dv;
  22 
  23 import com.sun.org.apache.xerces.internal.impl.dv.dtd.DTDDVFactoryImpl;
  24 import com.sun.org.apache.xerces.internal.impl.dv.dtd.XML11DTDDVFactoryImpl;
  25 import com.sun.org.apache.xerces.internal.utils.ObjectFactory;
  26 import java.util.Map;
  27 
  28 /**
  29  * The factory to create and return DTD types. The implementation should
  30  * store the created datatypes in static data, so that they can be shared by
  31  * multiple parser instance, and multiple threads.
  32  *
  33  * @xerces.internal
  34  *
  35  * @author Sandy Gao, IBM
  36  *
  37  * @version $Id: DTDDVFactory.java,v 1.6 2010-11-01 04:39:43 joehw Exp $
  38  */
  39 public abstract class DTDDVFactory {
  40 
  41     private static final String DEFAULT_FACTORY_CLASS =
  42             "com.sun.org.apache.xerces.internal.impl.dv.dtd.DTDDVFactoryImpl";
  43 
  44     private static final String XML11_DATATYPE_VALIDATOR_FACTORY =
  45         "com.sun.org.apache.xerces.internal.impl.dv.dtd.XML11DTDDVFactoryImpl";
  46 
  47     /**
  48      * Get an instance of the default DTDDVFactory implementation.
  49      *
  50      * @return  an instance of DTDDVFactory implementation
  51      * @exception DVFactoryException  cannot create an instance of the specified
  52      *                                class name or the default class name
  53      */
  54     public static final DTDDVFactory getInstance() throws DVFactoryException {
  55         return getInstance(DEFAULT_FACTORY_CLASS);
  56     }
  57 




  17  * See the License for the specific language governing permissions and
  18  * limitations under the License.
  19  */
  20 
  21 package com.sun.org.apache.xerces.internal.impl.dv;
  22 
  23 import com.sun.org.apache.xerces.internal.impl.dv.dtd.DTDDVFactoryImpl;
  24 import com.sun.org.apache.xerces.internal.impl.dv.dtd.XML11DTDDVFactoryImpl;
  25 import com.sun.org.apache.xerces.internal.utils.ObjectFactory;
  26 import java.util.Map;
  27 
  28 /**
  29  * The factory to create and return DTD types. The implementation should
  30  * store the created datatypes in static data, so that they can be shared by
  31  * multiple parser instance, and multiple threads.
  32  *
  33  * @xerces.internal
  34  *
  35  * @author Sandy Gao, IBM
  36  *

  37  */
  38 public abstract class DTDDVFactory {
  39 
  40     private static final String DEFAULT_FACTORY_CLASS =
  41             "com.sun.org.apache.xerces.internal.impl.dv.dtd.DTDDVFactoryImpl";
  42 
  43     private static final String XML11_DATATYPE_VALIDATOR_FACTORY =
  44         "com.sun.org.apache.xerces.internal.impl.dv.dtd.XML11DTDDVFactoryImpl";
  45 
  46     /**
  47      * Get an instance of the default DTDDVFactory implementation.
  48      *
  49      * @return  an instance of DTDDVFactory implementation
  50      * @exception DVFactoryException  cannot create an instance of the specified
  51      *                                class name or the default class name
  52      */
  53     public static final DTDDVFactory getInstance() throws DVFactoryException {
  54         return getInstance(DEFAULT_FACTORY_CLASS);
  55     }
  56 


< prev index next >