KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > openedit > modules > update > WebSite


1 /*
2  * Created on Apr 9, 2004
3  */

4 package com.openedit.modules.update;
5
6 import java.util.HashMap JavaDoc;
7 import java.util.Map JavaDoc;
8
9 /**
10  * @author cburkey
11  *
12  */

13 public class WebSite
14 {
15     public String JavaDoc EDITOR="Editor";
16     protected Map JavaDoc fieldAllVersions;
17     
18     public ProductVersion getEditorVersion()
19     {
20         return (ProductVersion)getAllVersions().get(EDITOR);
21     }
22     public Map JavaDoc getAllVersions()
23     {
24         if ( fieldAllVersions == null )
25         {
26             fieldAllVersions = new HashMap JavaDoc();
27             ProductVersion version = new ProductVersion( getClass().getPackage().getImplementationVersion() );
28             fieldAllVersions.put(EDITOR,version);
29         }
30         return fieldAllVersions;
31     }
32     public void setAllVersions(Map JavaDoc inAllVersions)
33     {
34         fieldAllVersions = inAllVersions;
35     }
36 }
37
Popular Tags