01 /*
02 * Copyright 2003-2005 Sun Microsystems, Inc. All Rights Reserved.
03 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
04 *
05 * This code is free software; you can redistribute it and/or modify it
06 * under the terms of the GNU General Public License version 2 only, as
07 * published by the Free Software Foundation. Sun designates this
08 * particular file as subject to the "Classpath" exception as provided
09 * by Sun in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
22 * CA 95054 USA or visit www.sun.com if you need additional information or
23 * have any questions.
24 */
25
26 package javax.xml.xpath;
27
28 import javax.xml.namespace.QName;
29
30 /**
31 * <p>XPath constants.</p>
32 *
33 * @author <a href="mailto:Norman.Walsh@Sun.COM">Norman Walsh</a>
34 * @author <a href="mailto:Jeff.Suttor@Sun.COM">Jeff Suttor</a>
35 * @version $Revision: 1.2 $, $Date: 2005/06/10 03:50:44 $
36 * @see <a href="http://www.w3.org/TR/xpath">XML Path Language (XPath) Version 1.0</a>
37 * @since 1.5
38 */
39 public class XPathConstants {
40
41 /**
42 * <p>Private constructor to prevent instantiation.</p>
43 */
44 private XPathConstants() {
45 }
46
47 /**
48 * <p>The XPath 1.0 number data type.</p>
49 *
50 * <p>Maps to Java {@link Double}.</p>
51 */
52 public static final QName NUMBER = new QName(
53 "http://www.w3.org/1999/XSL/Transform", "NUMBER");
54
55 /**
56 * <p>The XPath 1.0 string data type.</p>
57 *
58 * <p>Maps to Java {@link String}.</p>
59 */
60 public static final QName STRING = new QName(
61 "http://www.w3.org/1999/XSL/Transform", "STRING");
62
63 /**
64 * <p>The XPath 1.0 boolean data type.</p>
65 *
66 * <p>Maps to Java {@link Boolean}.</p>
67 */
68 public static final QName BOOLEAN = new QName(
69 "http://www.w3.org/1999/XSL/Transform", "BOOLEAN");
70
71 /**
72 * <p>The XPath 1.0 NodeSet data type.</p>
73 *
74 * <p>Maps to Java {@link org.w3c.dom.NodeList}.</p>
75 */
76 public static final QName NODESET = new QName(
77 "http://www.w3.org/1999/XSL/Transform", "NODESET");
78
79 /**
80 * <p>The XPath 1.0 NodeSet data type.
81 *
82 * <p>Maps to Java {@link org.w3c.dom.Node}.</p>
83 */
84 public static final QName NODE = new QName(
85 "http://www.w3.org/1999/XSL/Transform", "NODE");
86
87 /**
88 * <p>The URI for the DOM object model, "http://java.sun.com/jaxp/xpath/dom".</p>
89 */
90 public static final String DOM_OBJECT_MODEL = "http://java.sun.com/jaxp/xpath/dom";
91 }
|