blob: a6add76ae3221f29023d0754ff1866c159df5d48 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
import java.util.*;
public interface Attributable {
void setAttribute(String name, Object attribute);
Object getAttribute(String name);
static aspect DefImpl {
private Map<String,Object> Attributable.attributes =
new HashMap<String,Object>();
public void Attributable.setAttribute(String name, Object attribute) {
this.attributes.put(name, attribute);
}
public Object Attributable.getAttribute(String name) {
return this.attributes.get(name);
}
}
}
|