< prev index next >

src/java.xml/share/classes/com/sun/org/apache/xerces/internal/impl/XMLNamespaceBinder.java

Print this page


   1 /*
   2  * Copyright (c) 2003, 2017, Oracle and/or its affiliates. All rights reserved.
   3  * @LastModified: Nov 2017
   4  */
   5 /*
   6  * Licensed to the Apache Software Foundation (ASF) under one or more
   7  * contributor license agreements.  See the NOTICE file distributed with
   8  * this work for additional information regarding copyright ownership.
   9  * The ASF licenses this file to You under the Apache License, Version 2.0
  10  * (the "License"); you may not use this file except in compliance with
  11  * the License.  You may obtain a copy of the License at
  12  *
  13  *      http://www.apache.org/licenses/LICENSE-2.0
  14  *
  15  * Unless required by applicable law or agreed to in writing, software
  16  * distributed under the License is distributed on an "AS IS" BASIS,
  17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  18  * See the License for the specific language governing permissions and
  19  * limitations under the License.
  20  */
  21 
  22 package com.sun.org.apache.xerces.internal.impl;
  23 


  40 import com.sun.org.apache.xerces.internal.xni.parser.XMLDocumentSource;
  41 
  42 /**
  43  * This class performs namespace binding on the startElement and endElement
  44  * method calls and passes all other methods through to the registered
  45  * document handler. This class can be configured to only pass the
  46  * start and end prefix mappings (start/endPrefixMapping).
  47  * <p>
  48  * This component requires the following features and properties from the
  49  * component manager that uses it:
  50  * <ul>
  51  *  <li>http://xml.org/sax/features/namespaces</li>
  52  *  <li>http://apache.org/xml/properties/internal/symbol-table</li>
  53  *  <li>http://apache.org/xml/properties/internal/error-reporter</li>
  54  * </ul>
  55  *
  56  * @xerces.internal
  57  *
  58  * @author Andy Clark, IBM
  59  *

  60  */
  61 public class XMLNamespaceBinder
  62     implements XMLComponent, XMLDocumentFilter {
  63 
  64     //
  65     // Constants
  66     //
  67 
  68     // feature identifiers
  69 
  70     /** Feature identifier: namespaces. */
  71     protected static final String NAMESPACES =
  72         Constants.SAX_FEATURE_PREFIX + Constants.NAMESPACES_FEATURE;
  73 
  74     // property identifiers
  75 
  76     /** Property identifier: symbol table. */
  77     protected static final String SYMBOL_TABLE =
  78         Constants.XERCES_PROPERTY_PREFIX + Constants.SYMBOL_TABLE_PROPERTY;
  79 


   1 /*
   2  * Copyright (c) 2003, 2017, Oracle and/or its affiliates. All rights reserved.

   3  */
   4 /*
   5  * Licensed to the Apache Software Foundation (ASF) under one or more
   6  * contributor license agreements.  See the NOTICE file distributed with
   7  * this work for additional information regarding copyright ownership.
   8  * The ASF licenses this file to You under the Apache License, Version 2.0
   9  * (the "License"); you may not use this file except in compliance with
  10  * the License.  You may obtain a copy of the License at
  11  *
  12  *      http://www.apache.org/licenses/LICENSE-2.0
  13  *
  14  * Unless required by applicable law or agreed to in writing, software
  15  * distributed under the License is distributed on an "AS IS" BASIS,
  16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  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;
  22 


  39 import com.sun.org.apache.xerces.internal.xni.parser.XMLDocumentSource;
  40 
  41 /**
  42  * This class performs namespace binding on the startElement and endElement
  43  * method calls and passes all other methods through to the registered
  44  * document handler. This class can be configured to only pass the
  45  * start and end prefix mappings (start/endPrefixMapping).
  46  * <p>
  47  * This component requires the following features and properties from the
  48  * component manager that uses it:
  49  * <ul>
  50  *  <li>http://xml.org/sax/features/namespaces</li>
  51  *  <li>http://apache.org/xml/properties/internal/symbol-table</li>
  52  *  <li>http://apache.org/xml/properties/internal/error-reporter</li>
  53  * </ul>
  54  *
  55  * @xerces.internal
  56  *
  57  * @author Andy Clark, IBM
  58  *
  59  * @LastModified: Nov 2017
  60  */
  61 public class XMLNamespaceBinder
  62     implements XMLComponent, XMLDocumentFilter {
  63 
  64     //
  65     // Constants
  66     //
  67 
  68     // feature identifiers
  69 
  70     /** Feature identifier: namespaces. */
  71     protected static final String NAMESPACES =
  72         Constants.SAX_FEATURE_PREFIX + Constants.NAMESPACES_FEATURE;
  73 
  74     // property identifiers
  75 
  76     /** Property identifier: symbol table. */
  77     protected static final String SYMBOL_TABLE =
  78         Constants.XERCES_PROPERTY_PREFIX + Constants.SYMBOL_TABLE_PROPERTY;
  79 


< prev index next >