…lines 1–29 unchanged (29 lines)
30 * A base implementation of Option providing limited ground work for further
31 * Option implementations.
32 */
33public abstract class OptionImpl implements Option {
34 private final int id;
35 private final boolean required;
36 private Option parent;
37
38 /**
39 * Creates an OptionImpl with the specified id
40 * @param id the unique id of this Option
41 * @param required true iff this Option must be present
42 */
…lines 43–122 unchanged (80 lines)
123 }
124
125 public void defaults(final WriteableCommandLine commandLine) {
126 // nothing to do normally
127 }
128
129 public Option getParent() {
130 return parent;
131 }
132
133 public void setParent(Option parent) {
134 this.parent = parent;
135 }
136
137 protected void checkPrefixes(final Set prefixes) {
138 // nothing to do if empty prefix list
139 if (prefixes.isEmpty()) {
140 return;
141 }
…lines 142–171 unchanged (30 lines)