01: package org.objectweb.celtix.configuration.impl;
02:
03: import javax.xml.namespace.QName;
04:
05: import org.objectweb.celtix.configuration.ConfigurationItemMetadata;
06:
07: public class ConfigurationItemMetadataImpl implements
08: ConfigurationItemMetadata {
09:
10: private String name;
11: private LifecyclePolicy lifecyclePolicy = LifecyclePolicy.STATIC;
12: private QName type;
13: private Object defaultValue;
14:
15: public String getName() {
16: return name;
17: }
18:
19: public QName getType() {
20: return type;
21: }
22:
23: public LifecyclePolicy getLifecyclePolicy() {
24: return lifecyclePolicy;
25: }
26:
27: public Object getDefaultValue() {
28: return defaultValue;
29: }
30:
31: protected void setName(String n) {
32: name = n;
33: }
34:
35: protected void setType(QName t) {
36: type = t;
37: }
38:
39: protected void setLifecyclePolicy(LifecyclePolicy policy) {
40: lifecyclePolicy = policy;
41: }
42:
43: protected void setDefaultValue(Object v) {
44: defaultValue = v;
45: }
46: }
|