blob: e20fe8be7a1346e387cd2fbef72076f25784a686 (
plain)
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
41
|
package com.c2kernel.lifecycle.instance.predefined.entitycreation;
import org.w3c.dom.Element;
import org.w3c.dom.NodeList;
import org.w3c.dom.Text;
import com.c2kernel.utils.CastorHashMap;
import com.c2kernel.utils.KeyValuePair;
public class DependencyMember implements java.io.Serializable {
public String itemPath;
public CastorHashMap props = new CastorHashMap();
public DependencyMember() {
super();
}
public DependencyMember(String itemPath) {
this.itemPath = itemPath;
}
public DependencyMember(Element elem) {
itemPath = elem.getAttribute("itemPath");
NodeList cmpnl = elem.getElementsByTagName("MemberProperty");
for (int l=0; l<cmpnl.getLength(); l++) {
Element p = (Element)cmpnl.item(l);
props.put(p.getAttribute("name"), ((Text)p.getFirstChild()).getData());
}
}
public KeyValuePair[] getKeyValuePairs() {
return props.getKeyValuePairs();
}
public void setKeyValuePairs(KeyValuePair[] pairs) {
props.setKeyValuePairs(pairs);
}
}
|