Statistics
| Revision:

root / trunk / extensions / extGPE-gvSIG / src / org / gvsig / fmap / drivers / gpe / model / GPEMetadata.java @ 38048

History | View | Annotate | Download (2.56 KB)

1
/* gvSIG. Geographic Information System of the Valencian Government
2
 *
3
 * Copyright (C) 2007-2008 Infrastructures and Transports Department
4
 * of the Valencian Government (CIT)
5
 * 
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 2
9
 * of the License, or (at your option) any later version.
10
 * 
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 * 
16
 * You should have received a copy of the GNU General Public License
17
 * along with this program; if not, write to the Free Software
18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
19
 * MA  02110-1301, USA.
20
 * 
21
 */
22

    
23
/*
24
 * AUTHORS (In addition to CIT):
25
 * 2011 Software Colaborativo (www.scolab.es)   development
26
 */
27

    
28
package org.gvsig.fmap.drivers.gpe.model;
29

    
30
import java.util.ArrayList;
31

    
32
public class GPEMetadata {
33
        private GPEMetadata parentData = null;
34
        private ArrayList dataList = new ArrayList();
35
        private String tagType = null;
36
        private String tagData = null;
37

    
38
        /**
39
         * @return the tagType
40
         */
41
        public String getTagType() {
42
                return this.tagType;
43
        }
44

    
45
        /**
46
         * @param name
47
         *            the tagType to set
48
         */
49
        public void setTagType(String tagType) {
50
                this.tagType = tagType;
51
        }
52

    
53
        /**
54
         * @param name
55
         *            the tag data to set
56
         */
57
        public void setTagData(String tagData) {
58
                this.tagData = tagData;
59
        }
60

    
61
        /**
62
         * @param name
63
         *            the tag data to set
64
         */
65
        public String getTagData() {
66
                return tagData;
67
        }
68

    
69
        /**
70
         * @return the data list
71
         */
72
        public ArrayList getDataList() {
73
                return dataList;
74
        }
75

    
76
        /**
77
         * @return the metadata at position i
78
         * @param i
79
         *            Element position
80
         */
81
        public GPEMetadata getElementAt(int i) {
82
                return (GPEMetadata) dataList.get(i);
83
        }
84

    
85
        /**
86
         * @return the parent metadata
87
         */
88
        public GPEMetadata getParentData() {
89
                return parentData;
90
        }
91

    
92
        /**
93
         * @param parent
94
         *            metadata the parentElement to set
95
         */
96
        public void setParentData(Object parentData) {
97
                if (parentData != null) {
98
                        this.parentData = (GPEMetadata) parentData;
99
                        ((GPEMetadata) parentData).addChildData(this);
100
                }
101
        }
102

    
103
        /**
104
         * @param adds
105
         *            a child metadata
106
         */
107
        public void addChildData(GPEMetadata subData) {
108
                getDataList().add(subData);
109
        }
110

    
111
}