http://xml.apache.org/http://www.apache.org/http://www.w3.org/

Home

Readme
Release Info

Installation
Download
Build

FAQs
Samples
API Docs

DOM C++ Binding
Programming
Migration Guide

Feedback
Bug-Reporting
PDF Document

CVS Repository
Mail Archive

API Docs for SAX and DOM
 

Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

DOMNamedNodeMap.hpp

Go to the documentation of this file.
00001 #ifndef DOMNamedNodeMap_HEADER_GUARD_
00002 #define DOMNamedNodeMap_HEADER_GUARD_
00003 
00004 
00005 /*
00006  * The Apache Software License, Version 1.1
00007  *
00008  * Copyright (c) 2001-2002 The Apache Software Foundation.  All rights
00009  * reserved.
00010  *
00011  * Redistribution and use in source and binary forms, with or without
00012  * modification, are permitted provided that the following conditions
00013  * are met:
00014  *
00015  * 1. Redistributions of source code must retain the above copyright
00016  *    notice, this list of conditions and the following disclaimer.
00017  *
00018  * 2. Redistributions in binary form must reproduce the above copyright
00019  *    notice, this list of conditions and the following disclaimer in
00020  *    the documentation and/or other materials provided with the
00021  *    distribution.
00022  *
00023  * 3. The end-user documentation included with the redistribution,
00024  *    if any, must include the following acknowledgment:
00025  *       "This product includes software developed by the
00026  *        Apache Software Foundation (http://www.apache.org/)."
00027  *    Alternately, this acknowledgment may appear in the software itself,
00028  *    if and wherever such third-party acknowledgments normally appear.
00029  *
00030  * 4. The names "Xerces" and "Apache Software Foundation" must
00031  *    not be used to endorse or promote products derived from this
00032  *    software without prior written permission. For written
00033  *    permission, please contact apache\@apache.org.
00034  *
00035  * 5. Products derived from this software may not be called "Apache",
00036  *    nor may "Apache" appear in their name, without prior written
00037  *    permission of the Apache Software Foundation.
00038  *
00039  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
00040  * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
00041  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
00042  * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
00043  * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
00044  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
00045  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
00046  * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
00047  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
00048  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
00049  * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
00050  * SUCH DAMAGE.
00051  * ====================================================================
00052  *
00053  * This software consists of voluntary contributions made by many
00054  * individuals on behalf of the Apache Software Foundation, and was
00055  * originally based on software copyright (c) 2001, International
00056  * Business Machines, Inc., http://www.ibm.com .  For more information
00057  * on the Apache Software Foundation, please see
00058  * <http://www.apache.org/>.
00059  */
00060 
00061 /*
00062  * $Id: DOMNamedNodeMap.hpp,v 1.8 2003/03/07 19:59:06 tng Exp $
00063  */
00064 
00065 #include <xercesc/util/XercesDefs.hpp>
00066 
00067 XERCES_CPP_NAMESPACE_BEGIN
00068 
00069 
00070 class DOMNode;
00071 
00085 class  DOMNamedNodeMap {
00086 protected:
00087     // -----------------------------------------------------------------------
00088     //  Hidden constructors
00089     // -----------------------------------------------------------------------
00092     DOMNamedNodeMap() {};
00094 
00095 private:    
00096     // -----------------------------------------------------------------------
00097     // Unimplemented constructors and operators
00098     // -----------------------------------------------------------------------
00101     DOMNamedNodeMap(const DOMNamedNodeMap &);
00102     DOMNamedNodeMap & operator = (const DOMNamedNodeMap &);
00104 
00105 public:
00106     // -----------------------------------------------------------------------
00107     //  All constructors are hidden, just the destructor is available
00108     // -----------------------------------------------------------------------
00115     virtual ~DOMNamedNodeMap() {};
00117 
00118     // -----------------------------------------------------------------------
00119     //  Virtual DOMNamedNodeMap interface
00120     // -----------------------------------------------------------------------
00123     // -----------------------------------------------------------------------
00124     //  Setter methods
00125     // -----------------------------------------------------------------------
00152     virtual DOMNode   *setNamedItem(DOMNode *arg) = 0;
00153 
00154     // -----------------------------------------------------------------------
00155     //  Getter methods
00156     // -----------------------------------------------------------------------
00169     virtual DOMNode     *item(XMLSize_t index) const = 0;
00170 
00180     virtual DOMNode   *getNamedItem(const XMLCh *name) const = 0;
00181 
00189     virtual XMLSize_t   getLength() const = 0;
00190 
00191     // -----------------------------------------------------------------------
00192     //  Node methods
00193     // -----------------------------------------------------------------------
00209     virtual DOMNode    *removeNamedItem(const XMLCh *name) = 0;
00211 
00225     virtual DOMNode   *getNamedItemNS(const XMLCh *namespaceURI,
00226                                             const XMLCh *localName) const = 0;
00227 
00251     virtual DOMNode   *setNamedItemNS(DOMNode *arg) = 0;
00252 
00275     virtual DOMNode     *removeNamedItemNS(const XMLCh *namespaceURI,
00276                                               const XMLCh *localName) = 0;
00278 
00279 };
00280 
00281 XERCES_CPP_NAMESPACE_END
00282 
00283 #endif
00284 


Copyright © 2004 The Apache Software Foundation. All Rights Reserved.