1 package org.incava.jagol; 2 3 import java.io.*; 4 import java.util.*; 5 6 7 10 public abstract class Option 11 { 12 protected String longName; 13 14 protected char shortName; 15 16 private String description; 17 18 public Option(String longName, String description) 19 { 20 this.longName = longName; 21 this.description = description; 22 } 23 24 public void setShortName(char shortName) 25 { 26 this.shortName = shortName; 27 } 28 29 public void setLongName(String longName) 30 { 31 this.longName = longName; 32 } 33 34 37 public String getLongName() 38 { 39 return longName; 40 } 41 42 45 public char getShortName() 46 { 47 return shortName; 48 } 49 50 53 public String getDescription() 54 { 55 return description; 56 } 57 58 62 public abstract boolean set(String arg, List args) throws OptionException; 63 64 67 public abstract void setValue(String value) throws InvalidTypeException; 68 69 } 70 | Popular Tags |