View Javadoc

1   package org.lsst.ccs.command;
2   
3   import java.io.Serializable;
4   
5   /**
6    * @author bamade
7    */
8   // Date: 08/01/2014
9   
10  public class DictionaryContext implements Serializable {
11  
12      private static final long serialVersionUID = 2063283481516547132L;
13      private final String name;
14      private final Dictionary dictionary;
15  
16      public DictionaryContext(String name, Dictionary dictionary) {
17          this.name = name;
18          this.dictionary = dictionary;
19      }
20  
21      public String getName() {
22          return name;
23      }
24  
25      public Dictionary getDictionary() {
26          return dictionary;
27      }
28  
29      /**
30       * @return only the name (this is to populate JTree)
31       */
32      @Override
33      public String toString() {
34          return name;
35      }
36  }