1 package org.objectweb.util.launcher.parser ; 2 3 4 import java.util.HashMap ; 5 6 public class XMLDescription 7 { 8 protected HashMap runs_ ; 9 protected HashMap contexts_ ; 10 11 public XMLDescription() { 12 runs_ = new HashMap () ; 13 contexts_ = new HashMap () ; 14 } 15 16 public void addRun(RunDescription run) { 17 runs_.put(run.getName(),run); 18 } 19 20 public RunDescription getRun(String id) { 21 return (RunDescription) runs_.get(id) ; 22 } 23 24 public void addContext(ContextDescription context) { 25 contexts_.put(context.getName(),context); 26 } 27 28 public ContextDescription getContext(String id) { 29 return (ContextDescription) contexts_.get(id) ; 30 } 31 } 32 | Popular Tags |