Revision 34144 branches/v2_0_0_prep/extensions/extGPE-gvSIG/src/org/gvsig/fmap/dal/store/gpe/model/GPEElement.java
GPEElement.java | ||
---|---|---|
53 | 53 |
*/ |
54 | 54 |
public class GPEElement { |
55 | 55 |
private String name = null; |
56 |
private String value = null;
|
|
56 |
private Object value = null;
|
|
57 | 57 |
private HashMap subElements = null; |
58 | 58 |
|
59 |
public GPEElement(String name, String value) {
|
|
59 |
public GPEElement(String name, Object value) {
|
|
60 | 60 |
super(); |
61 | 61 |
this.name = name; |
62 | 62 |
this.value = value; |
63 | 63 |
subElements = new HashMap(); |
64 | 64 |
} |
65 | 65 |
|
66 |
public GPEElement(String name, String value, GPEElement parentElement) {
|
|
66 |
public GPEElement(String name, Object value, GPEElement parentElement) {
|
|
67 | 67 |
this(name,value); |
68 | 68 |
//If it is a complex value |
69 | 69 |
if (parentElement != null){ |
... | ... | |
90 | 90 |
/** |
91 | 91 |
* @return the value |
92 | 92 |
*/ |
93 |
public String getValue() {
|
|
93 |
public Object getValue() {
|
|
94 | 94 |
if (subElements.size() > 0){ |
95 | 95 |
// ComplexValue cValue = ValueFactory.createComplexValue(name); |
96 | 96 |
// Iterator it = subElements.keySet().iterator(); |
Also available in: Unified diff