KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > util > launcher > parser > XMLDescription


1 package org.objectweb.util.launcher.parser ;
2
3
4 import java.util.HashMap JavaDoc ;
5
6 public class XMLDescription
7 {
8     protected HashMap JavaDoc runs_ ;
9     protected HashMap JavaDoc contexts_ ;
10
11     public XMLDescription() {
12         runs_ = new HashMap JavaDoc() ;
13         contexts_ = new HashMap JavaDoc() ;
14     }
15
16     public void addRun(RunDescription run) {
17         runs_.put(run.getName(),run);
18     }
19     
20     public RunDescription getRun(String JavaDoc 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 JavaDoc id) {
29         return (ContextDescription) contexts_.get(id) ;
30     }
31 }
32
Popular Tags