a b/Workbench/src/de/kuei/metafora/gwt/smack/shared/VersionStructure.java
1
package de.kuei.metafora.gwt.smack.shared;
2
3
import java.util.HashMap;
4
5
public class VersionStructure extends ThinVersionStructure {
6
7
  private static final long serialVersionUID = -2390885606058308354L;
8
9
  private String contenttype;
10
  private HashMap<String, String> attributes = new HashMap<String, String>();
11
12
  public VersionStructure(){
13
      
14
  }
15
  
16
  public VersionStructure(String server) {
17
      super(server);
18
  }
19
20
  public String getContenttype() {
21
      return contenttype;
22
  }
23
24
  public void setContenttype(String contenttype) {
25
      this.contenttype = contenttype;
26
  }
27
28
  public boolean hasAttribute(String key) {
29
      return attributes.containsKey(key);
30
  }
31
32
  public String getAttribute(String key) {
33
      return attributes.get(key);
34
  }
35
36
  public void setAttribute(String key, String value) {
37
      attributes.put(key, value);
38
  }
39
40
}