< prev index next >

src/java.xml/share/classes/com/sun/org/apache/xml/internal/utils/QName.java

Print this page


   1 /*
   2  * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
   3  * @LastModified: Oct 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.xml.internal.utils;
  23 
  24 import com.sun.org.apache.xml.internal.res.XMLErrorResources;
  25 import com.sun.org.apache.xml.internal.res.XMLMessages;
  26 import java.util.Stack;
  27 import java.util.StringTokenizer;
  28 import org.w3c.dom.Element;
  29 
  30 /**
  31  * Class to represent a qualified name: "The name of an internal XSLT object,
  32  * specifically a named template (see [7 Named Templates]), a mode (see [6.7 Modes]),
  33  * an attribute set (see [8.1.4 Named Attribute Sets]), a key (see [14.2 Keys]),
  34  * a locale (see [14.3 Number Formatting]), a variable or a parameter (see
  35  * [12 Variables and Parameters]) is specified as a QName. If it has a prefix,
  36  * then the prefix is expanded into a URI reference using the namespace declarations
  37  * in effect on the attribute in which the name occurs. The expanded name
  38  * consisting of the local part of the name and the possibly null URI reference
  39  * is used as the name of the object. The default namespace is not used for
  40  * unprefixed names."
  41  * @xsl.usage general

  42  */
  43 public class QName implements java.io.Serializable
  44 {
  45     static final long serialVersionUID = 467434581652829920L;
  46 
  47   /**
  48    * The local name.
  49    * @serial
  50    */
  51   protected String _localName;
  52 
  53   /**
  54    * The namespace URI.
  55    * @serial
  56    */
  57   protected String _namespaceURI;
  58 
  59   /**
  60    * The namespace prefix.
  61    * @serial


   1 /*
   2  * Copyright (c) 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.xml.internal.utils;
  22 
  23 import com.sun.org.apache.xml.internal.res.XMLErrorResources;
  24 import com.sun.org.apache.xml.internal.res.XMLMessages;
  25 import java.util.Stack;
  26 import java.util.StringTokenizer;
  27 import org.w3c.dom.Element;
  28 
  29 /**
  30  * Class to represent a qualified name: "The name of an internal XSLT object,
  31  * specifically a named template (see [7 Named Templates]), a mode (see [6.7 Modes]),
  32  * an attribute set (see [8.1.4 Named Attribute Sets]), a key (see [14.2 Keys]),
  33  * a locale (see [14.3 Number Formatting]), a variable or a parameter (see
  34  * [12 Variables and Parameters]) is specified as a QName. If it has a prefix,
  35  * then the prefix is expanded into a URI reference using the namespace declarations
  36  * in effect on the attribute in which the name occurs. The expanded name
  37  * consisting of the local part of the name and the possibly null URI reference
  38  * is used as the name of the object. The default namespace is not used for
  39  * unprefixed names."
  40  * @xsl.usage general
  41  * @LastModified: Oct 2017
  42  */
  43 public class QName implements java.io.Serializable
  44 {
  45     static final long serialVersionUID = 467434581652829920L;
  46 
  47   /**
  48    * The local name.
  49    * @serial
  50    */
  51   protected String _localName;
  52 
  53   /**
  54    * The namespace URI.
  55    * @serial
  56    */
  57   protected String _namespaceURI;
  58 
  59   /**
  60    * The namespace prefix.
  61    * @serial


< prev index next >