svn-gvsig-desktop / trunk / libraries / libMetadata / src / org / gvsig / metadata / extended / MDElement.java @ 22563
History | View | Annotate | Download (3.35 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 |
* 2008 Geographic Information research group: http://www.geoinfo.uji.es
|
26 |
* Departamento de Lenguajes y Sistemas Inform?ticos (LSI)
|
27 |
* Universitat Jaume I
|
28 |
* {{Task}}
|
29 |
*/
|
30 |
|
31 |
package org.gvsig.metadata.extended; |
32 |
|
33 |
import java.util.Locale; |
34 |
|
35 |
import org.gvsig.metadata.extended.registry.objects.MDElementDefinition; |
36 |
|
37 |
public interface MDElement { |
38 |
|
39 |
/**
|
40 |
* Retrieves the identifier of the MDElement object
|
41 |
* @return a String which identifies the object
|
42 |
*/
|
43 |
public String getId(); |
44 |
|
45 |
/**
|
46 |
* Retrieves the value of the MDElement object
|
47 |
* @return an Object containing the value of the object
|
48 |
*/
|
49 |
public Object getValue(); |
50 |
|
51 |
/**
|
52 |
* Retrieves the type of the MDElement object
|
53 |
* @return a MDElementDefinition object containing data about the object
|
54 |
*/
|
55 |
public MDElementDefinition getType();
|
56 |
|
57 |
/**
|
58 |
* Retrieves the Locale value of the MDElement object
|
59 |
* @return a Locale object which represents a specific geographical, political or cultural region
|
60 |
*/
|
61 |
public Locale getLocale(); |
62 |
|
63 |
/**
|
64 |
* Retrieves the MDElement name using its MDElementDefinition
|
65 |
* @return the name of the MDElement object
|
66 |
*/
|
67 |
public String getName(); |
68 |
|
69 |
/**
|
70 |
* Retrieves the father of the Metadata object, or null if it doesn't have.
|
71 |
* @return a ExtendedMetadata object or null
|
72 |
*/
|
73 |
public ExtendedMetadata getFather();
|
74 |
|
75 |
/**
|
76 |
* Changes the identifier of the object
|
77 |
* @param id the new identifier of the MDElement object
|
78 |
*/
|
79 |
public void setId(String id); |
80 |
|
81 |
/**
|
82 |
* Changes the value of the object
|
83 |
* @param value the new value of the MDElement object
|
84 |
*/
|
85 |
public void setValue(Object value); |
86 |
|
87 |
/**
|
88 |
* Changes the type of the object
|
89 |
* @param type the new type of the MDElement object
|
90 |
*/
|
91 |
public void setType(MDElementDefinition type); |
92 |
|
93 |
/**
|
94 |
* Changes the Locale value of the object
|
95 |
* @param locale the new Locale value of the MDElement object
|
96 |
*/
|
97 |
public void setLocale(Locale locale); |
98 |
|
99 |
/**
|
100 |
* Changes father of the object
|
101 |
* @param father the new father value of the MDElement object
|
102 |
*/
|
103 |
public void setFather(ExtendedMetadata father); |
104 |
|
105 |
/**
|
106 |
* Checks if the ExtendedMetadata has father
|
107 |
* @return a boolean value which indicates if the object has father
|
108 |
*/
|
109 |
public boolean hasFather(); |
110 |
|
111 |
/**
|
112 |
* Retrieves the deep level in the Metadata tree, 0 for the root.
|
113 |
* @return an integer value which indicates the level.
|
114 |
*/
|
115 |
public int getLevel(); |
116 |
|
117 |
} |