OSDN Git Service

update command line interface, and introduce command pattern in Main class
[stigmata/stigmata.git] / src / main / java / jp / sourceforge / stigmata / BirthmarkContext.java
index d178825..ffacb95 100755 (executable)
@@ -27,6 +27,7 @@ public class BirthmarkContext{
     private List<String> birthmarkTypes = new ArrayList<String>();
     private List<String> filterTypes = new ArrayList<String>();
     private Map<String, String> nameMappings = new HashMap<String, String>();
+    private String format;
     /**
      * properties which available on a session.
      */
@@ -105,6 +106,14 @@ public class BirthmarkContext{
         birthmarkTypes.remove(type);
     }
 
+    public String getFormat(){
+        return format;
+    }
+
+    public void setFormat(String format){
+        this.format = format;
+    }
+
     public synchronized String[] getBirthmarkTypes(){
         return birthmarkTypes.toArray(new String[getBirthmarkTypeSize()]);
     }