Child: [85c2d9] (diff)

Download this file

VersionStructure.java    41 lines (27 with data), 808 Bytes

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