OSDN Git Service

Merge remote-tracking branch 'origin/develop'
[neighbornote/NeighborNote.git] / src / cx / fbn / nevernote / filters / ContainsAttributeFilter.java
1 /*\r
2  * This file is part of NixNote/NeighborNote \r
3  * Copyright 2009,2010 Randy Baumgarte\r
4  * Copyright 2010 Hiroshi Miura\r
5  * \r
6  * This file may be licensed under the terms of of the\r
7  * GNU General Public License Version 2 (the ``GPL'').\r
8  *\r
9  * Software distributed under the License is distributed\r
10  * on an ``AS IS'' basis, WITHOUT WARRANTY OF ANY KIND, either\r
11  * express or implied. See the GPL for the specific language\r
12  * governing rights and limitations.\r
13  *\r
14  * You should have received a copy of the GPL along with this\r
15  * program. If not, go to http://www.gnu.org/licenses/gpl.html\r
16  * or write to the Free Software Foundation, Inc.,\r
17  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.\r
18  *\r
19 */\r
20 \r
21 package cx.fbn.nevernote.filters;\r
22 \r
23 import com.evernote.edam.type.Note;\r
24 \r
25 \r
26 public abstract class ContainsAttributeFilter extends AttributeFilter {\r
27         protected String label;\r
28         public ContainsAttributeFilter(String n) {\r
29                 super();\r
30                 label=n;\r
31         }\r
32         @Override\r
33         public abstract boolean attributeCheck(Note n);\r
34         @Override\r
35         public String getLabel() {\r
36                 return label;\r
37         }\r
38 }\r