]> gitweb.fperrin.net Git - Dictionary.git/blob - src/com/hughes/android/dictionary/engine/EntryTypeName.java
Remove unused images and XML sections.
[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 public enum EntryTypeName {
18
19     WIKTIONARY_TITLE_SINGLE_DETAIL(true, true, null),
20     WIKTIONARY_TITLE_SINGLE(true, true, null),
21     WIKTIONARY_INFLECTD_FORM_SINGLE(false, true, null),
22
23     ONE_WORD(true, true, null),
24     MULTIROW_HEAD_ONE_WORD(true, true, null),
25     MULTIROW_TAIL_ONE_WORD(false, true, null),
26
27     SYNONYM_SINGLE(false, true, null),
28     ANTONYM_SINGLE(false, true, null),
29
30     WIKTIONARY_TITLE_MULTI_DETAIL(false, true, WIKTIONARY_TITLE_SINGLE_DETAIL),
31     WIKTIONARY_TITLE_MULTI(false, true, WIKTIONARY_TITLE_SINGLE),
32     WIKTIONARY_TRANSLITERATION(),
33     // How we file "casa {f}, case {pl}" under "case"
34     WIKTIONARY_INFLECTED_FORM_MULTI(false, true, WIKTIONARY_INFLECTD_FORM_SINGLE),
35     WIKTIONARY_ENGLISH_DEF_WIKI_LINK(),
36     WIKTIONARY_ENGLISH_DEF_OTHER_LANG(),
37     WIKTIONARY_ENGLISH_DEF(),
38
39     SYNONYM_MULTI(false, true, SYNONYM_SINGLE),
40     ANTONYM_MULTI(false, true, ANTONYM_SINGLE),
41     DERIVED_TERM(false, true, null),
42
43     TWO_WORDS(),
44     THREE_WORDS(),
45     FOUR_WORDS(),
46     FIVE_OR_MORE_WORDS(),
47     WIKTIONARY_TRANSLATION_WIKI_TEXT(),
48     WIKTIONARY_TRANSLATION_OTHER_TEXT(),
49
50     // How we file entries like: "sono: {form of|essere}" under "sono.".
51     WIKTIONARY_IS_FORM_OF_SOMETHING_ELSE(false, true, null),
52
53     MULTIROW_HEAD_MANY_WORDS(),
54     MULTIROW_TAIL_MANY_WORDS(),
55     WIKTIONARY_EXAMPLE(),
56
57     // The next two are how we file entries like: "sono: {form of|essere}" under
58     // "essere".
59     WIKTIONARY_BASE_FORM_SINGLE(), // These two should be eligible for removal
60     // if the links are otherwise present.
61     WIKTIONARY_BASE_FORM_MULTI(false, false, WIKTIONARY_BASE_FORM_SINGLE),
62     PART_OF_HYPHENATED(),
63     BRACKETED(),
64     PARENTHESIZED(),
65     WIKTIONARY_TRANSLATION_SENSE(),
66     SEE_ALSO(),
67     WIKTIONARY_MENTIONED(false, true, null), ;
68
69     final boolean mainWord;
70     final boolean overridesStopList;
71     final EntryTypeName singleWordInstance;
72
73     EntryTypeName() {
74         this(false, false, null);
75     }
76
77     EntryTypeName(final boolean mainWord, final boolean overridesStopList,
78     final EntryTypeName singleWordInstance) {
79         this.mainWord = mainWord;
80         this.overridesStopList = overridesStopList;
81         this.singleWordInstance = singleWordInstance == null ? this : singleWordInstance;
82     }
83
84 }