]> gitweb.fperrin.net Git - Dictionary.git/blob - src/com/hughes/android/dictionary/engine/EntryTypeName.java
Font size pref, reorder a few EntryTypes.
[Dictionary.git] / src / com / hughes / android / dictionary / engine / EntryTypeName.java
1 // Copyright 2011 Google Inc. All Rights Reserved.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 //     http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14
15 package com.hughes.android.dictionary.engine;
16
17
18 public enum EntryTypeName {
19
20 //  WIKTIONARY_TITLE_ONE_WORD(0),
21 //  WIKTIONARY_MEANING_ONE_WORD(0),
22 //  WIKTIONARY_TRANSLATION_ONE_WORD(0),
23
24   WIKTIONARY_TITLE_SINGLE(0, true),
25   WIKTIONARY_INFLECTD_FORM_SINGLE(0, true),
26
27
28   NOUN(0),
29   VERB(0),
30   ADJ(0),
31   ADV(0),
32   ONE_WORD(0, true),
33   MULTIROW_HEAD_ONE_WORD(0, true),
34   MULTIROW_TAIL_ONE_WORD(0, true),
35
36   WIKTIONARY_TITLE_MULTI(0, true),
37   WIKTIONARY_TRANSLITERATION(0),
38   WIKTIONARY_INFLECTED_FORM_MULTI(0, true),
39   WIKTIONARY_ENGLISH_DEF_WIKI_LINK(0),
40   WIKTIONARY_ENGLISH_DEF_OTHER_LANG(0),
41   WIKTIONARY_ENGLISH_DEF(0),
42
43   TWO_WORDS(0),
44   THREE_WORDS(0),
45   FOUR_WORDS(0),
46   FIVE_OR_MORE_WORDS(0),
47   WIKTIONARY_TRANSLATION_WIKI_TEXT(0),
48   WIKTIONARY_TRANSLATION_OTHER_TEXT(0),
49 //  WIKTIONARY_EXAMPLE_OTHER_WORDS(0),
50   
51   MULTIROW_HEAD_MANY_WORDS(0),
52   MULTIROW_TAIL_MANY_WORDS(0),
53   WIKTIONARY_EXAMPLE(0),
54   WIKTIONARY_BASE_FORM_SINGLE(0),  // These two should be eligible for removal if the links are otherwise present.
55   WIKTIONARY_BASE_FORM_MULTI(0),
56   PART_OF_HYPHENATED(0),
57   BRACKETED(0),
58   PARENTHESIZED(0),
59   WIKTIONARY_TRANSLATION_SENSE(0),
60   SEE_ALSO(0), 
61   ;
62
63   final int nameResId;
64   final boolean overridesStopList;
65   
66   private EntryTypeName(final int nameResId) {
67     this(nameResId, false);
68   }
69
70   private EntryTypeName(final int nameResId, final boolean overridesStopList) {
71     this.nameResId = nameResId;
72     this.overridesStopList = overridesStopList;
73   }
74
75 }