|
|||||||||||||||||||
Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
NodeFilter.java | - | - | - | - |
|
1 | /* | |
2 | * Copyright 2001-2004 (C) MetaStuff, Ltd. All Rights Reserved. | |
3 | * | |
4 | * This software is open source. | |
5 | * See the bottom of this file for the licence. | |
6 | * | |
7 | * $Id: NodeFilter.java,v 1.5 2004/06/25 08:03:33 maartenc Exp $ | |
8 | */ | |
9 | ||
10 | package org.dom4j; | |
11 | ||
12 | /** <p><code>NodeFilter</code> defines the behavior for | |
13 | * a filter or predicate which acts on a DOM4J Node. | |
14 | * Instances can be generated from an {@link DocumentFactory}.</p> | |
15 | * | |
16 | * @author <a href="mailto:james.strachan@metastuff.com">James Strachan</a> | |
17 | * @version $Revision: 1.5 $ | |
18 | */ | |
19 | public interface NodeFilter { | |
20 | ||
21 | /** <p><code>matches</code> returns true if the given node matches | |
22 | * the filter condition.</p> | |
23 | * | |
24 | * @return true if this filter matches the given node | |
25 | */ | |
26 | public boolean matches(Node node); | |
27 | ||
28 | } | |
29 | ||
30 | ||
31 | ||
32 | ||
33 | /* | |
34 | * Redistribution and use of this software and associated documentation | |
35 | * ("Software"), with or without modification, are permitted provided | |
36 | * that the following conditions are met: | |
37 | * | |
38 | * 1. Redistributions of source code must retain copyright | |
39 | * statements and notices. Redistributions must also contain a | |
40 | * copy of this document. | |
41 | * | |
42 | * 2. Redistributions in binary form must reproduce the | |
43 | * above copyright notice, this list of conditions and the | |
44 | * following disclaimer in the documentation and/or other | |
45 | * materials provided with the distribution. | |
46 | * | |
47 | * 3. The name "DOM4J" must not be used to endorse or promote | |
48 | * products derived from this Software without prior written | |
49 | * permission of MetaStuff, Ltd. For written permission, | |
50 | * please contact dom4j-info@metastuff.com. | |
51 | * | |
52 | * 4. Products derived from this Software may not be called "DOM4J" | |
53 | * nor may "DOM4J" appear in their names without prior written | |
54 | * permission of MetaStuff, Ltd. DOM4J is a registered | |
55 | * trademark of MetaStuff, Ltd. | |
56 | * | |
57 | * 5. Due credit should be given to the DOM4J Project - | |
58 | * http://www.dom4j.org | |
59 | * | |
60 | * THIS SOFTWARE IS PROVIDED BY METASTUFF, LTD. AND CONTRIBUTORS | |
61 | * ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT | |
62 | * NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND | |
63 | * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL | |
64 | * METASTUFF, LTD. OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, | |
65 | * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | |
66 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | |
67 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | |
68 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | |
69 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | |
70 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | |
71 | * OF THE POSSIBILITY OF SUCH DAMAGE. | |
72 | * | |
73 | * Copyright 2001-2004 (C) MetaStuff, Ltd. All Rights Reserved. | |
74 | * | |
75 | * $Id: NodeFilter.java,v 1.5 2004/06/25 08:03:33 maartenc Exp $ | |
76 | */ |
|