< prev index next >

src/java.xml/share/classes/javax/xml/namespace/NamespaceContext.java

Print this page




  50  * ("xmlns") Namespace declarations occur in the same Start-Tag and
  51  * refer to the same Namespace URI. e.g.<br>
  52  * <pre> {@code
  53  * <element xmlns:prefix1="http://Namespace-name-URI"
  54  *          xmlns:prefix2="http://Namespace-name-URI"> }
  55  * </pre>
  56  * This can also occur when the same Namespace URI is used in multiple
  57  * {@code XMLConstants.XMLNS_ATTRIBUTE} ("xmlns") Namespace
  58  * declarations in the logical parent element hierarchy.  e.g.<br>
  59  * <pre> {@code
  60  * <parent xmlns:prefix1="http://Namespace-name-URI">
  61  *   <child xmlns:prefix2="http://Namespace-name-URI">
  62  *     ...
  63  *   </child>
  64  * </parent> }
  65  * </pre>
  66  *
  67  * <p>A prefix can only be bound to a <strong>single</strong>
  68  * Namespace URI in the current scope.
  69  *
  70  * @author <a href="mailto:Jeff.Suttor@Sun.com">Jeff Suttor</a>
  71  * @see javax.xml.XMLConstants
  72  *   javax.xml.XMLConstants for declarations of common XML values
  73  * @see <a href="http://www.w3.org/TR/xmlschema-2/#QName">
  74  *   XML Schema Part2: Datatypes</a>
  75  * @see <a href="http://www.w3.org/TR/REC-xml-names/#ns-qualnames">
  76  *   Namespaces in XML</a>
  77  * @see <a href="http://www.w3.org/XML/xml-names-19990114-errata">
  78  *   Namespaces in XML Errata</a>
  79  * @since 1.5
  80  */
  81 
  82 public interface NamespaceContext {
  83 
  84     /**
  85      * Get Namespace URI bound to a prefix in the current scope.
  86      *
  87      * <p>When requesting a Namespace URI by prefix, the following
  88      * table describes the returned Namespace URI value for all
  89      * possible prefix values:
  90      *




  50  * ("xmlns") Namespace declarations occur in the same Start-Tag and
  51  * refer to the same Namespace URI. e.g.<br>
  52  * <pre> {@code
  53  * <element xmlns:prefix1="http://Namespace-name-URI"
  54  *          xmlns:prefix2="http://Namespace-name-URI"> }
  55  * </pre>
  56  * This can also occur when the same Namespace URI is used in multiple
  57  * {@code XMLConstants.XMLNS_ATTRIBUTE} ("xmlns") Namespace
  58  * declarations in the logical parent element hierarchy.  e.g.<br>
  59  * <pre> {@code
  60  * <parent xmlns:prefix1="http://Namespace-name-URI">
  61  *   <child xmlns:prefix2="http://Namespace-name-URI">
  62  *     ...
  63  *   </child>
  64  * </parent> }
  65  * </pre>
  66  *
  67  * <p>A prefix can only be bound to a <strong>single</strong>
  68  * Namespace URI in the current scope.
  69  *
  70  * @author Jeff Suttor
  71  * @see javax.xml.XMLConstants
  72  *   javax.xml.XMLConstants for declarations of common XML values
  73  * @see <a href="http://www.w3.org/TR/xmlschema-2/#QName">
  74  *   XML Schema Part2: Datatypes</a>
  75  * @see <a href="http://www.w3.org/TR/REC-xml-names/#ns-qualnames">
  76  *   Namespaces in XML</a>
  77  * @see <a href="http://www.w3.org/XML/xml-names-19990114-errata">
  78  *   Namespaces in XML Errata</a>
  79  * @since 1.5
  80  */
  81 
  82 public interface NamespaceContext {
  83 
  84     /**
  85      * Get Namespace URI bound to a prefix in the current scope.
  86      *
  87      * <p>When requesting a Namespace URI by prefix, the following
  88      * table describes the returned Namespace URI value for all
  89      * possible prefix values:
  90      *


< prev index next >