src/java.xml/share/classes/com/sun/org/apache/xerces/internal/dom/DOMConfigurationImpl.java
changeset 47359 e1a6c0168741
parent 47312 d4f959806fe9
child 48409 5ab69533994b
equal deleted inserted replaced
47358:d07d5f7cab35 47359:e1a6c0168741
     1 /*
     1 /*
     2  * Copyright (c) 2013, 2017, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2013, 2017, Oracle and/or its affiliates. All rights reserved.
     3  * @LastModified: Sep 2017
     3  * @LastModified: Oct 2017
     4  */
     4  */
     5 /*
     5 /*
     6  * Licensed to the Apache Software Foundation (ASF) under one or more
     6  * Licensed to the Apache Software Foundation (ASF) under one or more
     7  * contributor license agreements.  See the NOTICE file distributed with
     7  * contributor license agreements.  See the NOTICE file distributed with
     8  * this work for additional information regarding copyright ownership.
     8  * this work for additional information regarding copyright ownership.
    49 import com.sun.org.apache.xerces.internal.xni.parser.XMLInputSource;
    49 import com.sun.org.apache.xerces.internal.xni.parser.XMLInputSource;
    50 import com.sun.org.apache.xerces.internal.xni.parser.XMLParserConfiguration;
    50 import com.sun.org.apache.xerces.internal.xni.parser.XMLParserConfiguration;
    51 import java.io.IOException;
    51 import java.io.IOException;
    52 import java.util.ArrayList;
    52 import java.util.ArrayList;
    53 import java.util.HashMap;
    53 import java.util.HashMap;
       
    54 import java.util.List;
    54 import java.util.Locale;
    55 import java.util.Locale;
    55 import javax.xml.XMLConstants;
    56 import javax.xml.XMLConstants;
    56 import javax.xml.catalog.CatalogFeatures;
    57 import javax.xml.catalog.CatalogFeatures;
    57 import jdk.xml.internal.JdkXmlUtils;
    58 import jdk.xml.internal.JdkXmlUtils;
    58 import org.w3c.dom.DOMConfiguration;
    59 import org.w3c.dom.DOMConfiguration;
   193 
   194 
   194     /** Symbol table. */
   195     /** Symbol table. */
   195     protected SymbolTable fSymbolTable;
   196     protected SymbolTable fSymbolTable;
   196 
   197 
   197     /** Components. */
   198     /** Components. */
   198     protected ArrayList<XMLComponent> fComponents;
   199     protected List<XMLComponent> fComponents;
   199 
   200 
   200     protected ValidationManager fValidationManager;
   201     protected ValidationManager fValidationManager;
   201 
   202 
   202     /** Locale. */
   203     /** Locale. */
   203     protected Locale fLocale;
   204     protected Locale fLocale;
   242                                     XMLComponentManager parentSettings) {
   243                                     XMLComponentManager parentSettings) {
   243         super(parentSettings);
   244         super(parentSettings);
   244 
   245 
   245 
   246 
   246         // create table for features and properties
   247         // create table for features and properties
   247         fFeatures = new HashMap();
   248         fFeatures = new HashMap<>();
   248         fProperties = new HashMap();
   249         fProperties = new HashMap<>();
   249 
   250 
   250         // add default recognized features
   251         // add default recognized features
   251         final String[] recognizedFeatures = {
   252         final String[] recognizedFeatures = {
   252             XERCES_VALIDATION,
   253             XERCES_VALIDATION,
   253             XERCES_NAMESPACES,
   254             XERCES_NAMESPACES,
   988      * can be set by the application. Note that this list can also contain
   989      * can be set by the application. Note that this list can also contain
   989      * parameter names defined outside this specification.
   990      * parameter names defined outside this specification.
   990      */
   991      */
   991     public DOMStringList getParameterNames() {
   992     public DOMStringList getParameterNames() {
   992         if (fRecognizedParameters == null){
   993         if (fRecognizedParameters == null){
   993             ArrayList parameters = new ArrayList();
   994             List<String> parameters = new ArrayList<>();
   994 
   995 
   995             //Add DOM recognized parameters
   996             //Add DOM recognized parameters
   996             //REVISIT: Would have been nice to have a list of
   997             //REVISIT: Would have been nice to have a list of
   997             //recognized paramters.
   998             //recognized paramters.
   998             parameters.add(Constants.DOM_COMMENTS);
   999             parameters.add(Constants.DOM_COMMENTS);