root / trunk / libraries / libMetadata / src / org / gvsig / metadata / extended / registry / objects / MDElementDefinition.java @ 20940
History | View | Annotate | Download (1.48 KB)
1 |
package org.gvsig.metadata.extended.registry.objects; |
---|---|
2 |
|
3 |
import java.util.HashMap; |
4 |
import java.util.Map; |
5 |
|
6 |
|
7 |
public class MDElementDefinition { |
8 |
|
9 |
private String name; |
10 |
private Enum type; |
11 |
private Boolean required; |
12 |
private Object defaultValue; |
13 |
private String description; |
14 |
private Map synonyms = new HashMap(); |
15 |
|
16 |
public MDElementDefinition() {}
|
17 |
|
18 |
public MDElementDefinition(String name, Enum type, Boolean required, Object defaultValue, String description) { |
19 |
this.name = name;
|
20 |
this.type = type;
|
21 |
this.required = required;
|
22 |
this.defaultValue = defaultValue;
|
23 |
this.description = description;
|
24 |
} |
25 |
|
26 |
public String getName() { |
27 |
return this.name; |
28 |
} |
29 |
|
30 |
public Enum getType() { |
31 |
return this.type; |
32 |
} |
33 |
|
34 |
public Boolean isRequired() { |
35 |
return this.required; |
36 |
} |
37 |
|
38 |
public Object getDefaultValue() { |
39 |
return this.defaultValue; |
40 |
} |
41 |
|
42 |
public String getDescription() { |
43 |
return this.description; |
44 |
} |
45 |
|
46 |
public Object getSynonym(String name) { |
47 |
return synonyms.get(name);
|
48 |
} |
49 |
|
50 |
public void setName(String name) { |
51 |
this.name = name;
|
52 |
} |
53 |
|
54 |
public void setType(Enum type) { |
55 |
this.type = type;
|
56 |
} |
57 |
|
58 |
public void setRequired(Boolean required) { |
59 |
this.required = required;
|
60 |
} |
61 |
|
62 |
public void setDefaultValue(Object defaultValue) { |
63 |
this.defaultValue = defaultValue;
|
64 |
} |
65 |
|
66 |
public void setDescription(String description) { |
67 |
this.description = description;
|
68 |
} |
69 |
|
70 |
public void setSynonym(String name, Object synonym) { |
71 |
synonyms.put(name, synonym); |
72 |
} |
73 |
} |