1. // $Id: XPathConstants.java,v 1.7.16.1 2004/05/26 22:31:04 jsuttor Exp $
  2. /*
  3. * @(#)XPathConstants.java 1.6 04/07/26
  4. *
  5. * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
  6. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  7. */
  8. package javax.xml.xpath;
  9. import javax.xml.namespace.QName;
  10. /**
  11. * <p>XPath constants.</p>
  12. *
  13. * @author <a href="mailto:Norman.Walsh@Sun.COM">Norman Walsh</a>
  14. * @author <a href="mailto:Jeff.Suttor@Sun.COM">Jeff Suttor</a>
  15. * @version $Revision: 1.7.16.1 $, $Date: 2004/05/26 22:31:04 $
  16. * @see <a href="http://www.w3.org/TR/xpath">XML Path Language (XPath) Version 1.0</a>
  17. * @since 1.5
  18. */
  19. public class XPathConstants {
  20. /**
  21. * <p>Private constructor to prevent instantiation.</p>
  22. */
  23. private XPathConstants() { }
  24. /**
  25. * <p>The XPath 1.0 number data type.</p>
  26. *
  27. * <p>Maps to Java {@link Double}.</p>
  28. */
  29. public static final QName NUMBER = new QName("http://www.w3.org/1999/XSL/Transform", "NUMBER");
  30. /**
  31. * <p>The XPath 1.0 string data type.</p>
  32. *
  33. * <p>Maps to Java {@link String}.</p>
  34. */
  35. public static final QName STRING = new QName("http://www.w3.org/1999/XSL/Transform", "STRING");
  36. /**
  37. * <p>The XPath 1.0 boolean data type.</p>
  38. *
  39. * <p>Maps to Java {@link Boolean}.</p>
  40. */
  41. public static final QName BOOLEAN = new QName("http://www.w3.org/1999/XSL/Transform", "BOOLEAN");
  42. /**
  43. * <p>The XPath 1.0 NodeSet data type.</p>
  44. *
  45. * <p>Maps to Java {@link org.w3c.dom.NodeList}.</p>
  46. */
  47. public static final QName NODESET = new QName("http://www.w3.org/1999/XSL/Transform", "NODESET");
  48. /**
  49. * <p>The XPath 1.0 NodeSet data type.
  50. *
  51. * <p>Maps to Java {@link org.w3c.dom.Node}.</p>
  52. */
  53. public static final QName NODE = new QName("http://www.w3.org/1999/XSL/Transform", "NODE");
  54. /**
  55. * <p>The URI for the DOM object model, "http://java.sun.com/jaxp/xpath/dom".</p>
  56. */
  57. public static final String DOM_OBJECT_MODEL = "http://java.sun.com/jaxp/xpath/dom";
  58. }