1 package jalview.bin.argparser;
4 * A helper class to keep an index of argument position with argument values
14 private SubVals subVals = null;
16 protected ArgValue(SubVals sv, String content, int argIndex)
19 this.argIndex = argIndex;
23 protected ArgValue(String value, int argIndex)
25 this.argIndex = argIndex;
26 this.subVals = ArgParser.getSubVals(value);
27 this.value = getSubVals().getContent();
30 public String getValue()
35 public int getArgIndex()
40 protected void setId(String i)
50 public SubVals getSubVals()
55 public String getSubVal(String key)
57 if (subVals == null || !subVals.has(key))
59 return subVals.get(key);
62 protected void putSubVal(String key, String val)
64 this.subVals.put(key, val);