「付加行」機能の実装中。
[nucalgen] / nucalgen / src / main / java / jp / satomichan / nucalgen / addition / AcCell.java
1 package jp.satomichan.nucalgen.addition;
2
3 public class AcCell {
4         private String value;
5         private AcCellType type;
6         private String alias;
7         
8         public AcCell(){
9                 //System.out.println("Cell#Cell()");
10         }
11         
12         public String getValue() {
13                 return value;
14         }
15         
16         public void setValue(String value) {
17                 this.value = value;
18         }
19         
20         
21         public AcCellType getCellType() {
22                 return type;
23         }
24         
25         public String getType() {
26                 return type.getId();
27         }
28         
29         public void setType(String type) {
30                 AcCellType[] types = AcCellType.values();
31                 for(AcCellType aType : types) {
32                         if(aType.getId().equals(type)){
33                                 this.setType(aType);
34                         }
35                 }
36         }
37         
38         private void setType(AcCellType type) {
39                 this.type = type;
40         }
41
42         public String getAlias() {
43                 return alias;
44         }
45
46         public void setAlias(String alias) {
47                 this.alias = alias;
48         }
49 }