01: /**
02: *
03: */package nl.hippo.cms.wizard.aspects;
04:
05: import java.util.ArrayList;
06: import java.util.HashMap;
07: import java.util.List;
08: import java.util.Map;
09:
10: import nl.hippo.cms.wizard.components.Component;
11:
12: /**
13: * @author a.bogaart@hippo.nl
14: *
15: */
16: public class Aspects {
17:
18: private Map aspects = new HashMap();
19:
20: /**
21: * @param prop
22: * @param id
23: */
24: public void addAspect(Component component, ComponentAspect aspect) {
25: if (aspects.get(component.getId()) == null) {
26: aspects.put(component.getId(), new ArrayList());
27: }
28: ((ArrayList) aspects.get(component.getId())).add(aspect);
29: }
30:
31: public List getAspectsById(String id) {
32: return (List) aspects.get(id);
33: }
34:
35: }
|