예제 #1
0
 public String toString() { // DRC - added for debugging and to view the content in the debugger
   StringBuilder s = new StringBuilder();
   s.append("[");
   java.util.Iterator<Map.Entry<String, String>> pairs = values.entrySet().iterator();
   while (pairs.hasNext()) {
     Map.Entry<String, String> pair = pairs.next();
     s.append(pair.getKey());
     s.append("=");
     s.append(pair.getValue());
     s.append(",");
   }
   s.append("]");
   return s.toString();
 }
예제 #2
0
 /** Check if the value for a choice option has been set to a specific value. */
 public boolean isSet(OptionName name, String value) {
   return (values.get(name.optionName + value) != null);
 }
예제 #3
0
 /** Check if the value for an undocumented option has been set. */
 public boolean isSet(String name) {
   return (values.get(name) != null);
 }
예제 #4
0
 /** Get the value for an option. */
 public String get(OptionName name) {
   return values.get(name.optionName);
 }
예제 #5
0
 /** Get the value for an undocumented option. */
 public String get(String name) {
   return values.get(name);
 }
예제 #6
0
 public int size() {
   return values.size();
 }
예제 #7
0
 public void remove(String name) {
   values.remove(name);
 }
예제 #8
0
 public Set<String> keySet() {
   return values.keySet();
 }
예제 #9
0
 public void putAll(Options options) {
   values.putAll(options.values);
 }
예제 #10
0
 public void put(OptionName name, String value) {
   values.put(name.optionName, value);
 }
예제 #11
0
 public void put(String name, String value) {
   values.put(name, value);
 }
예제 #12
0
 /** Check if the value for an option has not been set. */
 public boolean isUnset(OptionName name) {
   return (values.get(name.optionName) == null);
 }
예제 #13
0
 /** Check if the value for an undocumented option has not been set. */
 public boolean isUnset(String name) {
   return (values.get(name) == null);
 }