source: NonGTP/Xerces/xerces-c_2_8_0/include/xercesc/dom/deprecated/NameNodeFilter.hpp @ 2674

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