Rev 92 | Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
90 | jmachado | 1 | package pt.estgp.estgweb.services.common; |
2 | |||
3 | /** |
||
4 | * @author Jorge Machado |
||
5 | * @date 24/Abr/2008 |
||
6 | * @time 15:00:50 |
||
7 | * @see pt.estgp.estgweb.services.common |
||
8 | */ |
||
9 | public enum SearchTypeEnum |
||
10 | { |
||
11 | ExactPhrase("search.exactPhrase"), |
||
12 | AnyWord("search.anyWord"), |
||
13 | AllWords("search.allWords"); |
||
14 | |||
15 | 1.5.0/docs/api/java/lang/String.html">String messageKey; |
||
16 | |||
17 | |||
18 | private SearchTypeEnum(1.5.0/docs/api/java/lang/String.html">String messageKey) |
||
19 | { |
||
20 | this.messageKey = messageKey; |
||
21 | } |
||
22 | |||
23 | public static SearchTypeEnum parse(1.5.0/docs/api/java/lang/String.html">String messageKey) |
||
24 | { |
||
25 | for(SearchTypeEnum searchTypeEnum: values()) |
||
26 | { |
||
27 | if(messageKey.equals(searchTypeEnum.getMessageKey())) |
||
28 | return searchTypeEnum; |
||
29 | } |
||
30 | return null; |
||
31 | } |
||
32 | |||
33 | public 1.5.0/docs/api/java/lang/String.html">String getMessageKey() |
||
34 | { |
||
35 | return messageKey; |
||
36 | } |
||
37 | } |