• 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
  • xpath
XPathNamespaceImpl.cpp
Go to the documentation of this file.
1 /*
2  * XPathNamespaceImpl.cpp - Copyright 2005 Frerich Raabe <raabe@kde.org>
3  *
4  * Redistribution and use in source and binary forms, with or without
5  * modification, are permitted provided that the following conditions
6  * are met:
7  *
8  * 1. Redistributions of source code must retain the above copyright
9  * notice, this list of conditions and the following disclaimer.
10  * 2. Redistributions in binary form must reproduce the above copyright
11  * notice, this list of conditions and the following disclaimer in the
12  * documentation and/or other materials provided with the distribution.
13  *
14  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
15  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
16  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
17  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
18  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
19  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
20  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
21  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
23  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24  */
25 #include "XPathNamespaceImpl.h"
26 #include "DocumentImpl.h"
27 
28 #include "kdomxpath.h"
29 
30 using namespace DOM;
31 
32 XPathNamespaceImpl::XPathNamespaceImpl( DocumentImpl *ptr, DOMStringImpl *prefix, DOMStringImpl *uri )
33  : NodeImpl( ptr ),
34  m_ownerDocument( ptr ),
35  m_prefix( prefix ),
36  m_uri( uri )
37 {
38 }
39 
40 XPathNamespaceImpl::XPathNamespaceImpl( const XPathNamespaceImpl &other )
41  : NodeImpl( other )
42 {
43  NodeImpl::operator=( other );
44  *this = other;
45 }
46 
47 XPathNamespaceImpl::~XPathNamespaceImpl()
48 {
49 }
50 
51 XPathNamespaceImpl &XPathNamespaceImpl::operator=( const XPathNamespaceImpl &other )
52 {
53  m_prefix = other.m_prefix;
54  m_uri = other.m_uri;
55  return *this;
56 }
57 
58 DocumentImpl *XPathNamespaceImpl::ownerDocument() const
59 {
60  return m_ownerDocument;
61 }
62 
63 ElementImpl *XPathNamespaceImpl::ownerElement() const
64 {
65  // XXX
66  return 0;
67 }
68 
69 const AtomicString &XPathNamespaceImpl::prefix() const
70 {
71  return m_prefix;
72 }
73 
74 DOMString XPathNamespaceImpl::nodeName() const
75 {
76  return DOMString(m_prefix);
77 }
78 
79 const AtomicString &XPathNamespaceImpl::namespaceURI() const
80 {
81  return m_uri;
82 }
83 
84 unsigned short XPathNamespaceImpl::nodeType() const
85 {
86  return XPATH_NAMESPACE_NODE;
87 }
88 
DOM::XPathNamespaceImpl::XPathNamespaceImpl
XPathNamespaceImpl(DocumentImpl *ptr, DOMStringImpl *prefix, DOMStringImpl *uri)
Definition: XPathNamespaceImpl.cpp:32
DOM::XPathNamespaceImpl::ownerElement
virtual ElementImpl * ownerElement() const
Definition: XPathNamespaceImpl.cpp:63
DOM::XPathNamespaceImpl::ownerDocument
virtual DocumentImpl * ownerDocument() const
Definition: XPathNamespaceImpl.cpp:58
DOM::XPathNamespaceImpl::~XPathNamespaceImpl
virtual ~XPathNamespaceImpl()
Definition: XPathNamespaceImpl.cpp:47
DOM::DOMString
This class implements the basic string we use in the DOM.
Definition: dom_string.h:43
DOM::XPathNamespaceImpl::prefix
virtual const AtomicString & prefix() const
Definition: XPathNamespaceImpl.cpp:69
DOM::XPathNamespaceImpl
Definition: XPathNamespaceImpl.h:35
DOM::XPathNamespaceImpl::nodeType
virtual unsigned short nodeType() const
Definition: XPathNamespaceImpl.cpp:84
XPathNamespaceImpl.h
DOM::XPathNamespaceImpl::namespaceURI
virtual const AtomicString & namespaceURI() const
Definition: XPathNamespaceImpl.cpp:79
DOM::XPathNamespaceImpl::nodeName
virtual DOMString nodeName() const
Definition: XPathNamespaceImpl.cpp:74
DOM::XPathNamespaceImpl::operator=
XPathNamespaceImpl & operator=(const XPathNamespaceImpl &rhs)
Definition: XPathNamespaceImpl.cpp:51
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:51:22 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