1 package org.objectweb.celtix.configuration; 2 3 import java.util.ArrayList ; 4 import java.util.Collection ; 5 6 public abstract class AbstractCommandLineConfiguration implements CommandlineConfiguration { 7 8 Collection <CommandLineOption> options; 9 10 12 14 protected AbstractCommandLineConfiguration() { 15 options = new ArrayList <CommandLineOption>(); 16 } 17 18 21 public Object getObject(String name) { 22 return getOption(name).getValue(); 23 } 24 25 26 27 34 protected void parseCommandLine(String [] args, boolean consume) { 35 } 36 37 43 protected void addOption(CommandLineOption option) { 44 options.add(option); 45 } 46 48 54 private CommandLineOption getOption(String name) { 55 59 return null; 60 } 61 62 } 63 | Popular Tags |