|
|||||||||||||||||||
30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover | |||||||||||||||||||
Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
EnumSetEntry.java | - | 100% | 100% | 100% |
|
1 |
/*
|
|
2 |
* Joey and its relative products are published under the terms
|
|
3 |
* of the Apache Software License.
|
|
4 |
*/
|
|
5 |
/*
|
|
6 |
* Created on 2004/03/01
|
|
7 |
*/
|
|
8 |
package org.asyrinx.brownie.core.lang.enum;
|
|
9 |
|
|
10 |
import org.apache.commons.lang.enum.Enum;
|
|
11 |
|
|
12 |
/**
|
|
13 |
* @author akima
|
|
14 |
*/
|
|
15 |
public class EnumSetEntry { |
|
16 |
|
|
17 |
/**
|
|
18 |
*
|
|
19 |
*/
|
|
20 | 4 |
public EnumSetEntry(Enum enum) {
|
21 | 4 |
super();
|
22 | 4 |
this.enum = enum;
|
23 |
} |
|
24 |
|
|
25 |
private final Enum enum;
|
|
26 |
|
|
27 |
private boolean selected = false; |
|
28 |
|
|
29 |
/**
|
|
30 |
* @return
|
|
31 |
*/
|
|
32 | 10 |
public String getName() {
|
33 | 10 |
return enum.getName();
|
34 |
} |
|
35 |
|
|
36 |
/**
|
|
37 |
* @return
|
|
38 |
*/
|
|
39 | 24 |
public boolean isSelected() { |
40 | 24 |
return selected;
|
41 |
} |
|
42 |
|
|
43 |
/**
|
|
44 |
* @param b
|
|
45 |
*/
|
|
46 | 3 |
public void setSelected(boolean b) { |
47 | 3 |
selected = b; |
48 |
} |
|
49 |
|
|
50 |
/**
|
|
51 |
* @return
|
|
52 |
*/
|
|
53 | 17 |
public Enum getEnum() {
|
54 | 17 |
return enum;
|
55 |
} |
|
56 |
|
|
57 |
} |
|