• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs API Reference
  • KDE Home
  • Contact Us
 

KHTML

  • sources
  • kde-4.12
  • kdelibs
  • khtml
  • dom
dom3_xpath.h
Go to the documentation of this file.
1 /*
2  * dom3_xpath.h - Copyright 2005 Frerich Raabe <raabe@kde.org>
3  * Copyright 2010 Maksim Orlovich <maksim@kde.org>
4  * Copyright 1999 Lars Knoll (knoll@kde.org)
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Library General Public
8  * License as published by the Free Software Foundation; either
9  * version 2 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Library General Public License for more details.
15  *
16  * You should have received a copy of the GNU Library General Public License
17  * along with this library; see the file COPYING.LIB. If not, write to
18  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19  * Boston, MA 02110-1301, USA.
20  *
21  * Based on kdomxpath.h, which was licensed as follows:
22  * Redistribution and use in source and binary forms, with or without
23  * modification, are permitted provided that the following conditions
24  * are met:
25  *
26  * 1. Redistributions of source code must retain the above copyright
27  * notice, this list of conditions and the following disclaimer.
28  * 2. Redistributions in binary form must reproduce the above copyright
29  * notice, this list of conditions and the following disclaimer in the
30  * documentation and/or other materials provided with the distribution.
31  *
32  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
33  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
34  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
35  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
36  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
37  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
38  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
39  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
40  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
41  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
42  *
43  */
44 #ifndef DOM3_XPATH_H
45 #define DOM3_XPATH_H
46 
47 #include <dom_string.h>
48 
49 namespace DOM {
50 
51 enum XPathExceptionCode {
52  INVALID_EXPRESSION_ERR = 51,
53  TYPE_ERR = 52
54 };
55 
56 namespace XPath {
57  enum XPathResultType {
58  ANY_TYPE = 0,
59  NUMBER_TYPE = 1,
60  STRING_TYPE = 2,
61  BOOLEAN_TYPE = 3,
62  UNORDERED_NODE_ITERATOR_TYPE = 4,
63  ORDERED_NODE_ITERATOR_TYPE = 5,
64  UNORDERED_NODE_SNAPSHOT_TYPE = 6,
65  ORDERED_NODE_SNAPSHOT_TYPE = 7,
66  ANY_UNORDERED_NODE_TYPE = 8,
67  FIRST_ORDERED_NODE_TYPE = 9
68  };
69 }
70 
71 class KHTML_EXPORT XPathException
72 {
73 public:
74  XPathException(unsigned short _code) { code = _code; }
75  XPathException(const XPathException &other) { code = other.code; }
76 
77  XPathException & operator = (const XPathException &other)
78  { code = other.code; return *this; }
79 
80  virtual ~XPathException() {}
81 
86  unsigned short code;
87 
88  enum XPathExceptionCode
89  {
90  INVALID_EXPRESSION_ERR = 51,
91  TYPE_ERR = 52,
92 
93  _EXCEPTION_OFFSET = 4000,
94  _EXCEPTION_MAX = 4999
95  };
96 
97  DOMString codeAsString() const;
98  static DOMString codeAsString(int xpathCode);
99 
101  static int toCode(int xpathCode);
102 
104  static bool isXPathExceptionCode(int exceptioncode);
105 };
106 
107 
108 }
109 
110 #endif // DOM3_XPATH_H
111 
dom_string.h
DOM::XPath::ORDERED_NODE_ITERATOR_TYPE
Definition: dom3_xpath.h:63
DOM::INVALID_EXPRESSION_ERR
Definition: dom3_xpath.h:52
DOM::XPathException::XPathException
XPathException(unsigned short _code)
Definition: dom3_xpath.h:74
DOM::XPath::UNORDERED_NODE_SNAPSHOT_TYPE
Definition: dom3_xpath.h:64
DOM::XPath::STRING_TYPE
Definition: dom3_xpath.h:60
DOM::XPath::XPathResultType
XPathResultType
Definition: dom3_xpath.h:57
DOM::XPathExceptionCode
XPathExceptionCode
Definition: dom3_xpath.h:51
DOM::DOMString
This class implements the basic string we use in the DOM.
Definition: dom_string.h:43
DOM::XPathException::code
unsigned short code
An integer indicating the type of error generated, as given by DOM L3 XPath.
Definition: dom3_xpath.h:86
DOM::XPathException::~XPathException
virtual ~XPathException()
Definition: dom3_xpath.h:80
DOM::XPathException
Definition: dom3_xpath.h:71
DOM::TYPE_ERR
Definition: dom3_xpath.h:53
DOM::XPathException::XPathExceptionCode
XPathExceptionCode
Definition: dom3_xpath.h:88
DOM::XPath::ANY_TYPE
Definition: dom3_xpath.h:58
DOM::XPath::ORDERED_NODE_SNAPSHOT_TYPE
Definition: dom3_xpath.h:65
DOM::XPath::NUMBER_TYPE
Definition: dom3_xpath.h:59
DOM::XPath::UNORDERED_NODE_ITERATOR_TYPE
Definition: dom3_xpath.h:62
DOM::XPathException::XPathException
XPathException(const XPathException &other)
Definition: dom3_xpath.h:75
DOM::XPath::BOOLEAN_TYPE
Definition: dom3_xpath.h:61
DOM::XPath::FIRST_ORDERED_NODE_TYPE
Definition: dom3_xpath.h:67
DOM::XPath::ANY_UNORDERED_NODE_TYPE
Definition: dom3_xpath.h:66
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:51:20 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KHTML

Skip menu "KHTML"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal