source: NonGTP/Xerces/xerces/include/xercesc/dom/deprecated/NameNodeFilter.hpp @ 358

Revision 358, 2.0 KB checked in by bittner, 19 years ago (diff)

xerces added

Line 
1/*
2 * Copyright 1999-2002,2004 The Apache Software Foundation.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17/*
18 * $Id: NameNodeFilter.hpp,v 1.5 2004/09/08 13:55:43 peiyongz Exp $
19 */
20
21//
22//  This file is part of the internal implementation of the C++ XML DOM.
23//  It should NOT be included or used directly by application programs.
24//
25//  Applications should include the file <xercesc/dom/deprecated/DOM.hpp> for the entire
26//  DOM API, or DOM_*.hpp for individual DOM classes, where the class
27//  name is substituded for the *.
28//
29
30#ifndef DOM_NameNodeFilter_HEADER_GUARD_
31#define DOM_NameNodeFilter_HEADER_GUARD_
32
33
34#include "DOM_NodeFilter.hpp"
35#include "NodeFilterImpl.hpp"
36#include "DOMString.hpp"
37#include "DOM_Node.hpp"
38
39XERCES_CPP_NAMESPACE_BEGIN
40
41
42class DEPRECATED_DOM_EXPORT NameNodeFilter : public NodeFilterImpl
43{
44        public:
45                NameNodeFilter();
46                virtual ~NameNodeFilter();
47
48    // The name to compare with the node name. If null, all node names
49    //  are successfully matched.
50    void setName(DOMString name);
51
52    // Return the name to compare with node name.
53    DOMString getName();
54
55    // If match is true, the node name is accepted when it matches.
56    //  If match is false, the node name is accepted when does not match.
57    void setMatch(bool match) ;
58
59    // Return match value.
60    bool getMatch();
61
62    virtual DOM_NodeFilter::FilterAction acceptNode(DOM_Node n);
63
64        private:
65    DOMString fName;
66    bool fMatch;
67
68};
69
70XERCES_CPP_NAMESPACE_END
71
72#endif
Note: See TracBrowser for help on using the repository browser.