DOMNamedNodeMap.hpp
Go to the documentation of this file.
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* $Id$
*/
#if !defined(XERCESC_INCLUDE_GUARD_DOMNAMEDNODEMAP_HPP)
#define XERCESC_INCLUDE_GUARD_DOMNAMEDNODEMAP_HPP
#include <xercesc/util/XercesDefs.hpp>
XERCES_CPP_NAMESPACE_BEGIN
class DOMNode;
class CDOM_EXPORT DOMNamedNodeMap {
protected:
// -----------------------------------------------------------------------
// Hidden constructors
// -----------------------------------------------------------------------
DOMNamedNodeMap() {};
private:
// -----------------------------------------------------------------------
// Unimplemented constructors and operators
// -----------------------------------------------------------------------
DOMNamedNodeMap(const DOMNamedNodeMap &);
DOMNamedNodeMap & operator = (const DOMNamedNodeMap &);
public:
// -----------------------------------------------------------------------
// All constructors are hidden, just the destructor is available
// -----------------------------------------------------------------------
virtual ~DOMNamedNodeMap() {};
// -----------------------------------------------------------------------
// Virtual DOMNamedNodeMap interface
// -----------------------------------------------------------------------
// -----------------------------------------------------------------------
// Setter methods
// -----------------------------------------------------------------------
virtual DOMNode *setNamedItem(DOMNode *arg) = 0;
// -----------------------------------------------------------------------
// Getter methods
// -----------------------------------------------------------------------
virtual DOMNode *item(XMLSize_t index) const = 0;
virtual DOMNode *getNamedItem(const XMLCh *name) const = 0;
virtual XMLSize_t getLength() const = 0;
// -----------------------------------------------------------------------
// Node methods
// -----------------------------------------------------------------------
virtual DOMNode *removeNamedItem(const XMLCh *name) = 0;
virtual DOMNode *getNamedItemNS(const XMLCh *namespaceURI,
const XMLCh *localName) const = 0;
virtual DOMNode *setNamedItemNS(DOMNode *arg) = 0;
virtual DOMNode *removeNamedItemNS(const XMLCh *namespaceURI,
const XMLCh *localName) = 0;
};
#define GetDOMNamedNodeMapMemoryManager GET_INDIRECT_MM(fOwnerNode)
XERCES_CPP_NAMESPACE_END
#endif
XercesDefs.hpp
CDOM_EXPORT
#define CDOM_EXPORT
Definition XercesDefs.hpp:166
XERCES_CPP_NAMESPACE_BEGIN
#define XERCES_CPP_NAMESPACE_BEGIN
Definition XercesDefs.hpp:112
XERCES_CPP_NAMESPACE_END
#define XERCES_CPP_NAMESPACE_END
Definition XercesDefs.hpp:113
XMLSize_t
size_t XMLSize_t
Definition Xerces_autoconf_config.hpp:112
XMLCh
char16_t XMLCh
Definition Xerces_autoconf_config.hpp:120
DOMNamedNodeMap
DOMNamedNodeMaps are used to represent collections of nodes that can be accessed by name.
Definition DOMNamedNodeMap.hpp:45
DOMNamedNodeMap::setNamedItem
virtual DOMNode * setNamedItem(DOMNode *arg)=0
Adds a node using its nodeName attribute.
DOMNamedNodeMap::getLength
virtual XMLSize_t getLength() const =0
The number of nodes in the map.
DOMNamedNodeMap::~DOMNamedNodeMap
virtual ~DOMNamedNodeMap()
Destructor.
Definition DOMNamedNodeMap.hpp:75
DOMNamedNodeMap::removeNamedItem
virtual DOMNode * removeNamedItem(const XMLCh *name)=0
Removes a node specified by name.
DOMNamedNodeMap::item
virtual DOMNode * item(XMLSize_t index) const =0
Returns the indexth item in the map.
DOMNamedNodeMap::removeNamedItemNS
virtual DOMNode * removeNamedItemNS(const XMLCh *namespaceURI, const XMLCh *localName)=0
Removes a node specified by local name and namespace URI.
DOMNamedNodeMap::setNamedItemNS
virtual DOMNode * setNamedItemNS(DOMNode *arg)=0
Adds a node using its namespaceURI and localName.
DOMNamedNodeMap::DOMNamedNodeMap
DOMNamedNodeMap()
Definition DOMNamedNodeMap.hpp:52
DOMNamedNodeMap::getNamedItem
virtual DOMNode * getNamedItem(const XMLCh *name) const =0
Retrieves a node specified by name.
DOMNamedNodeMap::getNamedItemNS
virtual DOMNode * getNamedItemNS(const XMLCh *namespaceURI, const XMLCh *localName) const =0
Retrieves a node specified by local name and namespace URI.
DOMNode
The DOMNode interface is the primary datatype for the entire Document Object Model.
Definition DOMNode.hpp:139