View Javadoc

1   /*
2    * Copyright 2011-2013 smartics, Kronseder & Reiner GmbH
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  package de.smartics.tagcloud.cavallo;
17  
18  import org.mcavallo.opencloud.filters.DictionaryFilter;
19  import org.mcavallo.opencloud.filters.TagFilter;
20  
21  /**
22   * Filter on usual token found in Java source code.
23   *
24   * @author <a href="mailto:robert.reiner@smartics.de">Robert Reiner</a>
25   * @version $Revision:591 $
26   */
27  public final class UsualWordsFilter extends DictionaryFilter
28  {
29    // ********************************* Fields *********************************
30  
31    // --- constants ------------------------------------------------------------
32  
33    /**
34     * The class version identifier.
35     * <p>
36     * The value of this constant is {@value}.
37     * </p>
38     */
39    private static final long serialVersionUID = 1L;
40  
41    /**
42     * The singleton instance of the filter.
43     */
44    public static final TagFilter FILTER = new UsualWordsFilter();
45  
46    // --- members --------------------------------------------------------------
47  
48    /**
49     * Default constructor.
50     */
51    private UsualWordsFilter()
52    {
53      super(new String[]
54      { "String", "StringBuilder", "Serializable", "Class",
55       "IllegalArgumentException", "serialVersionUID", "toString", "equals",
56       "hashCode" });
57    }
58  
59    // ****************************** Initializer *******************************
60  
61    // ****************************** Constructors ******************************
62  
63    // ****************************** Inner Classes *****************************
64  
65    // ********************************* Methods ********************************
66  
67    // --- init -----------------------------------------------------------------
68  
69    // --- get&set --------------------------------------------------------------
70  
71    // --- business -------------------------------------------------------------
72  
73    /**
74     * Creates an instance of the filer.
75     */
76    public static TagFilter create()
77    {
78      return new UsualWordsFilter();
79    }
80  
81    // --- object basics --------------------------------------------------------
82  
83  }