「付加行」機能の実装中。
[nucalgen] / nucalgen / src / main / java / jp / satomichan / nucalgen / addition / AcCell.java
diff --git a/nucalgen/src/main/java/jp/satomichan/nucalgen/addition/AcCell.java b/nucalgen/src/main/java/jp/satomichan/nucalgen/addition/AcCell.java
new file mode 100644 (file)
index 0000000..b2d881d
--- /dev/null
@@ -0,0 +1,49 @@
+package jp.satomichan.nucalgen.addition;
+
+public class AcCell {
+       private String value;
+       private AcCellType type;
+       private String alias;
+       
+       public AcCell(){
+               //System.out.println("Cell#Cell()");
+       }
+       
+       public String getValue() {
+               return value;
+       }
+       
+       public void setValue(String value) {
+               this.value = value;
+       }
+       
+       
+       public AcCellType getCellType() {
+               return type;
+       }
+       
+       public String getType() {
+               return type.getId();
+       }
+       
+       public void setType(String type) {
+               AcCellType[] types = AcCellType.values();
+               for(AcCellType aType : types) {
+                       if(aType.getId().equals(type)){
+                               this.setType(aType);
+                       }
+               }
+       }
+       
+       private void setType(AcCellType type) {
+               this.type = type;
+       }
+
+       public String getAlias() {
+               return alias;
+       }
+
+       public void setAlias(String alias) {
+               this.alias = alias;
+       }
+}