Revision 23727

View differences:

trunk/extensions/extMetadata/.settings/org.eclipse.jdt.ui.prefs
1
#Thu May 29 12:02:33 CEST 2008
2
eclipse.preferences.version=1
3
internal.default.compliance=user
trunk/extensions/extMetadata/.settings/org.eclipse.jdt.core.prefs
1
#Mon Sep 29 11:57:31 CEST 2008
2
eclipse.preferences.version=1
3
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
4
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
5
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
6
org.eclipse.jdt.core.compiler.compliance=1.6
7
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
8
org.eclipse.jdt.core.compiler.debug.localVariable=generate
9
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
10
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
11
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
12
org.eclipse.jdt.core.compiler.source=1.5
trunk/extensions/extMetadata/build.xml
1
<project name="extMetadata" default="generate-without-source" basedir=".">
2
    <description>
3
        Instala la extension de Metadatos.
4
    </description>
5
  <!-- set global properties for this build -->
6
  <property name="src" location="src"/>
7
  <property name="build" location="bin"/>
8
  <property name="dist"  location="dist"/>
9
  <property name="plugin" value="org.gvsig.metadata.extension"/>
10
  <property name="extension-dir" location="${GVSIG_INSTALL_DIR}/bin/gvSIG/extensiones"/>
11

  
12
  <target name="init">
13
    <!-- Create the time stamp -->
14
    <tstamp/>
15
  	<echo>
16
  			Compiling ${ant.project.name}...</echo>
17
    <!-- Create the build directory structure used by compile -->
18
    <mkdir dir="${build}"/>
19
    <mkdir dir="${dist}"/>
20
  </target>
21

  
22
  <target name="generate-without-source" description="generate the distribution without the source file" >
23
    <!-- Create the distribution directory -->
24
    <mkdir dir="${dist}"/>
25
  	
26
    <!-- Put everything in ${build} into the MyProject-${DSTAMP}.jar file -->
27
    <jar jarfile="${dist}/${plugin}.jar" basedir="${build}"/>
28
  	<copy file="config/config.xml" todir="${dist}"/>  	
29
  	<copy todir="${dist}">
30
    	<fileset dir="config" includes="text*.properties"/>
31
    </copy>
32
  	<copy file="lib/org.gvsig.metadata.jar" todir="${dist}"/>
33
    <move todir="${extension-dir}/${plugin}/">
34
    	<fileset dir="${dist}" includes="**/**"/>
35
    </move>
36
  
37
  </target>
38

  
39
</project>
trunk/extensions/extMetadata/.classpath
1
<?xml version="1.0" encoding="UTF-8"?>
2
<classpath>
3
	<classpathentry kind="src" path="src"/>
4
	<classpathentry kind="src" path="src-test"/>
5
	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
6
	<classpathentry kind="var" path="GVSIG_INSTALL_DIR/bin/andami.jar"/>
7
	<classpathentry kind="lib" path="lib/org.gvsig.metadata.jar"/>
8
	<classpathentry kind="var" path="GVSIG_INSTALL_DIR/bin/lib/org.gvsig.tools.jar" sourcepath="/libToolsDIR"/>
9
	<classpathentry kind="lib" path="/libMetadata/lib/junit-4.4.jar"/>
10
	<classpathentry kind="output" path="bin"/>
11
</classpath>
trunk/extensions/extMetadata/.project
1
<?xml version="1.0" encoding="UTF-8"?>
2
<projectDescription>
3
	<name>extMetadata</name>
4
	<comment></comment>
5
	<projects>
6
	</projects>
7
	<buildSpec>
8
		<buildCommand>
9
			<name>org.eclipse.jdt.core.javabuilder</name>
10
			<arguments>
11
			</arguments>
12
		</buildCommand>
13
	</buildSpec>
14
	<natures>
15
		<nature>org.eclipse.jdt.core.javanature</nature>
16
	</natures>
17
</projectDescription>
trunk/extensions/extMetadata/src-test/org/gvsig/metadata/extended/ExtendedMDLibraryTest.java
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 junit.framework.TestCase;
34

  
35
import org.gvsig.metadata.MDLibrary;
36
import org.gvsig.metadata.MDLocator;
37
import org.gvsig.metadata.extended.manager.ExtendedMDManagerImpl;
38
import org.gvsig.tools.locator.Library;
39

  
40

  
41

  
42
public class ExtendedMDLibraryTest extends TestCase{
43
	
44
	/**
45
    * Test method for {@link org.gvsig.metadata.extended.ExtendedMDLibrary#initialize()}.
46
    */
47
    public void testInitialize() {
48
        Library api = new MDLibrary();
49
        Library impl = new ExtendedMDLibrary();
50

  
51
        // 1: Initialize the Libraries
52
        api.initialize();
53
        impl.initialize();
54

  
55
        // 2: postInitialize them
56
        // if the library is not correctly initialized,
57
        // an Exception will be thrown
58
        api.postInitialize();
59
        impl.postInitialize();
60
        
61
        // Check if the correct implementation is returned
62
        assertEquals(ExtendedMDManagerImpl.class, MDLocator.getMDManager()
63
                .getClass());
64
    }
65
}
trunk/extensions/extMetadata/src-test/org/gvsig/metadata/extended/manager/MDElementImplTest.java
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.manager;
32

  
33
import java.util.Locale;
34

  
35
import org.gvsig.metadata.extended.MDElement;
36
import org.gvsig.metadata.extended.manager.MDElementImpl;
37
import org.gvsig.metadata.extended.registry.objects.MDElementDefinition;
38

  
39
import junit.framework.TestCase;
40

  
41

  
42

  
43
public class MDElementImplTest extends TestCase {
44

  
45
	//@BeforeClass
46
	public static void setUpBeforeClass() throws Exception {
47
	}
48

  
49
	//@AfterClass
50
	public static void tearDownAfterClass() throws Exception {
51
	}
52

  
53
	//@Before
54
	public void setUp() throws Exception {
55
	}
56

  
57
	//@After
58
	public void tearDown() throws Exception {
59
	}
60
	
61
	public void testGetId() {
62
		MDElement mde = new MDElementImpl();
63
		mde.setId("123");
64
		assertEquals("123", mde.getId());
65
	}
66
	
67
	public void testGetValue() {
68
		MDElement mde = new MDElementImpl();
69
		mde.setValue("Default value");
70
		assertEquals("Default value", mde.getValue());
71
	}
72
	
73
	public void testGetType() {
74
		MDElementDefinition mded = new MDElementDefinition("prueba", null, null, null, null);
75
		MDElement mde = new MDElementImpl();
76
		mde.setType(mded);
77
		assertEquals(mded, mde.getType());
78
	}
79
	
80
	public void testGetLocale() {
81
		MDElement mde = new MDElementImpl();
82
		mde.setLocale(Locale.ENGLISH);
83
		assertEquals(Locale.ENGLISH, mde.getLocale());
84
	}
85

  
86
}
trunk/extensions/extMetadata/src-test/org/gvsig/metadata/extended/manager/ExtendedMDManagerImplTest.java
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.manager;
32

  
33
import org.gvsig.metadata.Metadata;
34
import org.gvsig.metadata.extended.ExtendedMDManager;
35
import org.gvsig.metadata.extended.MDElement;
36
import org.gvsig.metadata.extended.manager.ExtendedMDManagerImpl;
37
import org.gvsig.metadata.extended.manager.ExtendedMetadataImpl;
38
import org.gvsig.metadata.extended.manager.MDElementImpl;
39
import org.gvsig.metadata.extended.registry.objects.MDElementDefinition;
40

  
41
import junit.framework.TestCase;
42

  
43
public class ExtendedMDManagerImplTest extends TestCase {
44

  
45
	//@BeforeClass
46
	public static void setUpBeforeClass() throws Exception {
47
	}
48

  
49
	//@AfterClass
50
	public static void tearDownAfterClass() throws Exception {
51
	}
52

  
53
	//@Before
54
	public void setUp() throws Exception {
55
	}
56

  
57
	//@After
58
	public void tearDown() throws Exception {
59
	}
60
	
61
	public void testCreateMD() {
62
		ExtendedMDManager emdm = new ExtendedMDManagerImpl();
63
		Metadata md = emdm.createMD("prueba");
64
		System.out.println("Metadata -> " + md.getClass());
65
		assertEquals(new ExtendedMetadataImpl("prueba").getClass(), md.getClass());
66
		assertEquals("prueba", ((ExtendedMetadataImpl) md).getName());
67
	}
68
	
69
	public void testCreateMDElement() {
70
		ExtendedMDManager emdm = new ExtendedMDManagerImpl();
71
		MDElement mde = emdm.createMDElement("prueba");
72
		MDElementDefinition mded = new MDElementDefinition("prueba", null, null, null, null);
73
		assertEquals(new MDElementImpl(null, mded, null).getClass(), mde.getClass());
74
		assertEquals("prueba", mde.getType().getName());
75
	}
76

  
77
}
trunk/extensions/extMetadata/src-test/org/gvsig/metadata/extended/manager/ExtendedMetadataImplTest.java
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.manager;
32

  
33
import java.util.Date;
34

  
35
import junit.framework.TestCase;
36

  
37
import org.gvsig.metadata.exceptions.NamedMetadataNotFoundException;
38
import org.gvsig.metadata.extended.ExtendedMetadata;
39
import org.gvsig.metadata.extended.MDElement;
40
import org.gvsig.metadata.extended.manager.ExtendedMetadataImpl;
41
import org.gvsig.metadata.extended.manager.MDElementImpl;
42
import org.gvsig.metadata.extended.registry.objects.MDDefinition;
43
import org.gvsig.metadata.extended.registry.objects.MDElementDefinition;
44

  
45

  
46
public class ExtendedMetadataImplTest extends TestCase {
47

  
48
	//@BeforeClass
49
	public static void setUpBeforeClass() throws Exception {
50
	}
51

  
52
	//@AfterClass
53
	public static void tearDownAfterClass() throws Exception {
54
	}
55

  
56
	//@Before
57
	public void setUp() throws Exception {
58
	}
59

  
60
	//@After
61
	public void tearDown() throws Exception {
62
	}
63

  
64
	public void testGet() throws NamedMetadataNotFoundException {
65
		ExtendedMetadata md = new ExtendedMetadataImpl("prueba");
66
		md.set("Author", "Alejandro Llaves");
67
		assertEquals("Alejandro Llaves", md.get("Author"));
68
	}
69
	
70
	public void testNamedMetadataNotFoundException() {
71
		ExtendedMetadata md = new ExtendedMetadataImpl("prueba");
72
		try {
73
			md.get("Topic");
74
			fail("get() should have thrown a NamedMetadataNotFoundException!");
75
		}
76
		catch (NamedMetadataNotFoundException ex) {
77
		}
78
	}
79
	
80
	public void testGetBoolean() throws ClassCastException, NamedMetadataNotFoundException {
81
		ExtendedMetadata md = new ExtendedMetadataImpl("prueba");
82
		md.setBoolean("Available", true);
83
		assertEquals(true, md.getBoolean("Available"));
84
	}
85
	
86
	public void testGetDouble() throws ClassCastException, NamedMetadataNotFoundException {
87
		ExtendedMetadata md = new ExtendedMetadataImpl("prueba");
88
		md.setDouble("Area", (double) 500);
89
		assertEquals((double) 500, md.getDouble("Area"), 0);
90
	}
91
	
92
	public void testGetInt() throws ClassCastException, NamedMetadataNotFoundException {
93
		ExtendedMetadata md = new ExtendedMetadataImpl("prueba");
94
		md.setInt("Number", 5);
95
		assertEquals(5, md.getInt("Number"));
96
	}
97
	
98
	public void testGetString() throws ClassCastException, NamedMetadataNotFoundException {
99
		ExtendedMetadata md = new ExtendedMetadataImpl("prueba");
100
		md.setString("Author", "Alejandro Llaves");
101
		assertEquals("Alejandro Llaves", md.getString("Author"));
102
	}
103
	
104
	public void testGetDate() throws ClassCastException, NamedMetadataNotFoundException {
105
		ExtendedMetadata md = new ExtendedMetadataImpl("prueba");
106
		md.setDate("Date", new Date(0L));
107
		assertEquals(new Date(0l), md.getDate("Date"));
108
	}
109

  
110
	public void testHasValue() {
111
		ExtendedMetadata md = new ExtendedMetadataImpl("prueba");
112
		assertEquals(md.hasValue("Author"), false);
113
		md.set("Author", "Alejandro Llaves");
114
		assertEquals(md.hasValue("Author"), true);
115
	}
116

  
117
	public void testIsEmpty() {
118
		ExtendedMetadata md = new ExtendedMetadataImpl("prueba");
119
		assertEquals(md.isEmpty(), true);
120
		md.set("Author", "Alejandro Llaves");
121
		assertEquals(md.isEmpty(), false);
122
	}
123
	
124
	public void testGetElement() throws ClassCastException, NamedMetadataNotFoundException {
125
		ExtendedMetadata md = new ExtendedMetadataImpl("prueba");
126
		MDElementDefinition mded = new MDElementDefinition("elemento de prueba", null, null, null, null);
127
		MDElement mde = new MDElementImpl("elem", mded, null);
128
		md.setElement(mde);
129
		assertEquals(mde, md.getElement("elemento de prueba"));
130
	}
131
	
132
	public void testGetName() {
133
		ExtendedMetadata md = new ExtendedMetadataImpl("prueba");
134
		assertEquals("prueba", md.getName());
135
		((ExtendedMetadataImpl) md).setName("2a_prueba");
136
		assertEquals("2a_prueba", md.getName());
137
	}
138
	
139
	public void testGetDescription() {
140
		ExtendedMetadata md = new ExtendedMetadataImpl("prueba");
141
		((ExtendedMetadataImpl) md).setDescription("Objeto Metadata de prueba");
142
		assertEquals("Objeto Metadata de prueba", md.getDescription());
143
	}
144
	
145
	public void testGetType() {
146
		MDDefinition mdd = new MDDefinition("prueba", "Objeto Metadata de prueba");
147
		ExtendedMetadata md = new ExtendedMetadataImpl(mdd, null);
148
		assertEquals(mdd, md.getType());
149
	}
150
}
trunk/extensions/extMetadata/config/config.xml
1
<?xml version="1.0" encoding="ISO-8859-1"?>
2

  
3
<plugin-config>
4
   <depends plugin-name="com.iver.cit.gvsig" />
5
   <resourceBundle name="text"/>
6
   <libraries library-dir="."/>
7
   <extensions>
8
         <extension class-name="org.gvsig.metadata.extension.MetadataExtension"
9
                 description="Metadata Extension (GUI + Metadata Publish Assistant)"
10
                 active="true"
11
                 priority="1">
12
         </extension>            
13
   </extensions>
14
</plugin-config>
trunk/extensions/extMetadata/src/org/gvsig/metadata/extension/MetadataExtension.java
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.extension; 
32

  
33
import org.gvsig.metadata.MDLibrary;
34
import org.gvsig.metadata.MDLocator;
35
import org.gvsig.metadata.MDManager;
36
import org.gvsig.metadata.Metadata;
37
import org.gvsig.metadata.exceptions.NamedMetadataNotFoundException;
38
import org.gvsig.metadata.simple.SimpleMDLibrary;
39
import org.gvsig.tools.locator.Library;
40

  
41
import com.iver.andami.plugins.Extension;
42

  
43
public class MetadataExtension extends Extension {
44

  
45
	public void execute(String arg0) {
46
		// TODO Auto-generated method stub
47
	}
48

  
49
	public void initialize() {
50
		// TODO Auto-generated method stub
51
		System.out.println("\nInitializing Metadata Extension...");
52
		
53
		// PROVISIONAL ------------------------------------------------------------------
54
		
55
		Library api = new MDLibrary();
56
		Library impl = new SimpleMDLibrary();
57
		api.initialize();
58
		impl.initialize();
59
		api.postInitialize();
60
		impl.postInitialize();
61
		
62
		// TEST -------------------------------------------------------------------------
63
		MDManager mdm = MDLocator.getInstance().getMDManager();
64
		Metadata md = mdm.createMD("Metadata Test");
65
		md.set("Author", "Arturo Beltran");
66
		String autor = "";
67
		try {
68
			 autor = md.getString("Author");
69
		} catch (ClassCastException e) {
70
			// TODO Auto-generated catch block
71
			e.printStackTrace();
72
		} catch (NamedMetadataNotFoundException e) {
73
			// TODO Auto-generated catch block
74
			e.printStackTrace();
75
		}
76
		System.out.println("MDName: " + md.getName() + "\nAuthor: " + autor + "\n" );
77
		// ------------------------------------------------------------------------------
78
	}
79

  
80
	public boolean isEnabled() {
81
		// TODO Auto-generated method stub
82
		return true;
83
	}
84

  
85
	public boolean isVisible() {
86
		// TODO Auto-generated method stub
87
		return true;
88
	}
89

  
90
}
trunk/extensions/extMetadata/src/org/gvsig/metadata/extension/gui/MDBasicGUIPanel.java
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.extension.gui;
32

  
33

  
34

  
35
public class MDBasicGUIPanel { 
36

  
37
}
trunk/extensions/extMetadata/src/org/gvsig/metadata/extension/gui/MDGUITab.java
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.extension.gui;
32

  
33

  
34

  
35
public class MDGUITab { 
36

  
37
}
trunk/extensions/extMetadata/src/org/gvsig/metadata/extended/ExtendedMetadata.java
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

  
32

  
33

  
34
package org.gvsig.metadata.extended;
35

  
36
import java.util.Date;
37

  
38
import org.gvsig.metadata.Metadata;
39
import org.gvsig.metadata.exceptions.NamedMetadataNotFoundException;
40
import org.gvsig.metadata.extended.registry.objects.MDDefinition;
41

  
42

  
43
public interface ExtendedMetadata extends Metadata {
44
	
45
	/**
46
	 * Retrieves a MDElement from the ExtendedMetadata object
47
	 * @param	name	the name which identifies the object to return
48
	 * @return			the object referenced by 'name' in the ExtendedMetadata object
49
	 * @throws ClassCastException	thrown to indicate that the code has attempted to cast an object to a subclass of which it is not an instance
50
	 * @throws NamedMetadataNotFoundException	if not Metadata with the 'name' is found
51
	 */
52
	public MDElement getElement(String name) throws ClassCastException, NamedMetadataNotFoundException;
53
	
54
	/**
55
	 * Puts a MDElement in the ExtendedMetadata object
56
	 * @param	elem	the MDElement object to put in the ExtendedMetadata object 
57
	 */
58
	public void setElement(MDElement elem);
59
	
60
	/**
61
	 * Retrieves the identifier of the ExtendedMetadata object
62
	 * @return			the String which identifies the ExtendedMetadata object
63
	 */
64
	public String getId();
65
	
66
	/**
67
	 * Retrieves the description of the ExtendedMetadata object
68
	 * @return			a String containing the description of the ExtendedMetadata object
69
	 */
70
	public String getDescription();
71
	
72
	/**
73
	 * Set the description of the ExtendedMetadata object
74
	 */
75
	public void setDescription(String desc);
76
	
77
	/**
78
	 * Retrieves the date of creation of the object
79
	 * @return			a Date object containing the system date when the ExtendedMetadata object was created
80
	 */
81
	public Date getCreateDate();
82
	
83
	/**
84
	 * Retrieves the date of the last change in the object
85
	 * @return			a Date object containing the system date when the ExtendedMetadata object was modified for the last time
86
	 */
87
	public Date getChangeDate();
88
	
89
	/**
90
	 * Retrieves the ExtendedMetadata object type
91
	 * @return			a MDDefinition object containing the name and the description of the ExtendedMetadata object
92
	 */
93
	public MDDefinition getType();
94
	
95
	/**
96
	 * Retrieves the name of the creator of the ExtendedMetadata object
97
	 * @return			a String containing the name of the creator of the object
98
	 */
99
	public String getAuthor();
100
	
101
	/**
102
	 * Checks if the ExtendedMetadata object has a specific value
103
	 * @param 	name	the name which identifies the value to check
104
	 * @return			a boolean value which indicates if there is a value in the object referenced by 'name'
105
	 */
106
	public boolean hasValue(String name);
107
	
108
	/**
109
	 * Checks if the ExtendedMetadata object is empty
110
	 * @return			a boolean value which indicates if the object has any value
111
	 */
112
	public boolean isEmpty();
113
	
114
	/**
115
	 * Retrieves the father of the Metadata object, or null if it doesn't have.
116
	 * @return			a ExtendedMetadata object or null
117
	 */
118
	public ExtendedMetadata getFather();
119
	
120
	/**
121
	 * Changes father of the object
122
	 * @param 	father	the new father value of the ExtendedMetadata object
123
	 */
124
	public void setFather(ExtendedMetadata father); 
125
	
126
	/**
127
	 * Checks if the ExtendedMetadata has father
128
	 * @return			a boolean value which indicates if the object has father
129
	 */
130
	public boolean hasFather();
131
	
132
	/**
133
	 * Retrieves the deep level in the Metadata tree, 0 for the root.
134
	 * @return			an integer value which indicates the level.
135
	 */
136
	public int getLevel();
137
}
trunk/extensions/extMetadata/src/org/gvsig/metadata/extended/exchanger/MDExchangerConstants.java
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
*/
trunk/extensions/extMetadata/src/org/gvsig/metadata/extended/exchanger/MDExchanger.java
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.exchanger;
32

  
33
import org.gvsig.metadata.Metadata;
34

  
35

  
36
public interface MDExchanger {
37
	
38
	/**
39
	 * Creates a Metadata object from the data of a file
40
	 * @param 	filePath	the path of the file where the metadata is located
41
	 * @return				an object which implements the Metadata interface 
42
	 */
43
	public Metadata importMD(String file);
44
	
45
	/**
46
	 * Transforms the metadata passed as a parameter from its current format to another one, also passed as a parameter
47
	 * @param 	md		the metadata is obtained from this Metadata object
48
	 * @param 	format	the format to which the metadata transformation is done  
49
	 * @return			a String containing the metadata of 'md' in the format chosen  
50
	 */
51
	public String exportMD(Metadata md, String format);
52
}
trunk/extensions/extMetadata/src/org/gvsig/metadata/extended/exchanger/XSLTExchanger.java
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.exchanger;
32

  
33
import org.gvsig.metadata.Metadata;
34

  
35

  
36
public class XSLTExchanger implements MDExchanger {
37
	
38
	public XSLTExchanger() {}
39

  
40
	public String exportMD(Metadata md, String format) {
41
		return "";
42
	}
43

  
44
	public Metadata importMD(String file) {
45
		return null;
46
	}
47
	
48
}
trunk/extensions/extMetadata/src/org/gvsig/metadata/extended/persistence/H2Persistence.java
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

  
32
package org.gvsig.metadata.extended.persistence;
33

  
34

  
35
import org.gvsig.metadata.extended.ExtendedMetadata;
36

  
37

  
38
public class H2Persistence implements MDPersistence{
39

  
40
	public boolean recoverMD(ExtendedMetadata md) {
41
		return false;
42
	}
43

  
44
	public boolean storeMD(ExtendedMetadata md) {
45
		return false;
46
	}
47
	
48
}
trunk/extensions/extMetadata/src/org/gvsig/metadata/extended/persistence/MDPersistence.java
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

  
32
package org.gvsig.metadata.extended.persistence;
33

  
34
import org.gvsig.metadata.extended.ExtendedMetadata;
35

  
36

  
37
public interface MDPersistence {
38
	public boolean storeMD(ExtendedMetadata md);
39
	public boolean recoverMD(ExtendedMetadata md);
40
}
trunk/extensions/extMetadata/src/org/gvsig/metadata/extended/ExtendedMDLibrary.java
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 org.gvsig.metadata.MDLocator;
34
import org.gvsig.metadata.extended.manager.ExtendedMDManagerImpl;
35
import org.gvsig.tools.locator.BaseLibrary;
36

  
37
public class ExtendedMDLibrary extends BaseLibrary {
38

  
39
	public void initialize() {
40
        super.initialize();
41
        MDLocator.registerMDManager(ExtendedMDManagerImpl.class);
42
    }
43
	
44
}
trunk/extensions/extMetadata/src/org/gvsig/metadata/extended/registry/MDRegistry.java
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

  
32

  
33
package org.gvsig.metadata.extended.registry;
34

  
35
import org.gvsig.metadata.extended.registry.objects.MDElementDefinition;
36
import org.gvsig.metadata.extended.registry.objects.MDType;
37

  
38

  
39

  
40
public interface MDRegistry {
41
	
42
	public MDElementDefinition getMDDefinition(String name);
43
	public MDElementDefinition getMDElementDefinition(String name);
44
	public MDType getMDType(String name);
45
	public boolean setMDDefinition(MDElementDefinition padre, String name, String description);
46
	public boolean setMDElementDefinition(MDElementDefinition padre, String description, MDType type /* ...*/);
47
	public boolean setMDType(/* ...*/);
48
	
49
}
trunk/extensions/extMetadata/src/org/gvsig/metadata/extended/registry/objects/MDType.java
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

  
32

  
33
package org.gvsig.metadata.extended.registry.objects;
34

  
35
import java.sql.Types;
36

  
37
public class MDType {
38
	private String id;
39
	private String name;
40
	private Types type;
41
	
42
	public MDType() {}
43
	
44
	public MDType(String name, Types type) {
45
		this.name = name;
46
		this.type = type;
47
	}
48

  
49
	public String getName() {
50
		return name;
51
	}
52

  
53
	public void setName(String name) {
54
		this.name = name;
55
	}
56

  
57
	public Types getType() {
58
		return type;
59
	}
60

  
61
	public void setType(Types type) {
62
		this.type = type;
63
	}
64
	
65
	
66
}
trunk/extensions/extMetadata/src/org/gvsig/metadata/extended/registry/objects/MDElementDefinition.java
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

  
32

  
33
package org.gvsig.metadata.extended.registry.objects;
34

  
35
import java.util.HashMap;
36
import java.util.Map;
37

  
38

  
39
public class MDElementDefinition {
40
	
41
	private String name;
42
	private Enum type;
43
	private Boolean required;
44
	private Object defaultValue;
45
	private String description;
46
	private Map synonyms = new HashMap();
47
	
48
	public MDElementDefinition() {}
49
	
50
	public MDElementDefinition(String name, Enum type, Boolean required, Object defaultValue, String description) {
51
		this.name = name;
52
		this.type = type;
53
		this.required = required;
54
		this.defaultValue = defaultValue;
55
		this.description = description;
56
	}
57
	
58
	public String getName() {
59
		return this.name;
60
	}
61
	
62
	public Enum getType() {
63
		return this.type;
64
	}
65
	
66
	public Boolean isRequired() {
67
		return this.required;
68
	}
69
	
70
	public Object getDefaultValue() {
71
		return this.defaultValue;
72
	}
73
	
74
	public String getDescription() {
75
		return this.description;
76
	}
77
	
78
	public Object getSynonym(String name) {
79
		return synonyms.get(name);
80
	}
81
	
82
	public void setName(String name) {
83
		this.name = name;
84
	}
85
	
86
	public void setType(Enum type) {
87
		this.type = type;
88
	}
89
	
90
	public void setRequired(Boolean required) {
91
		this.required = required;
92
	}
93
	
94
	public void setDefaultValue(Object defaultValue) {
95
		this.defaultValue = defaultValue;
96
	}
97
	
98
	public void setDescription(String description) {
99
		this.description = description;
100
	}
101
	
102
	public void setSynonym(String name, Object synonym) {
103
		synonyms.put(name, synonym);
104
	}
105
}
trunk/extensions/extMetadata/src/org/gvsig/metadata/extended/registry/objects/MDDefinition.java
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

  
32
package org.gvsig.metadata.extended.registry.objects;
33

  
34

  
35
public class MDDefinition {
36
	private String name;
37
	private String description;
38
	
39
	public MDDefinition() {}
40
	
41
	public MDDefinition(String name, String description) {
42
		this.name = name;
43
		this.description = description;
44
	}
45
	
46
	public String getName() {
47
		return this.name;
48
	}
49

  
50
	public String getDescription() {
51
		return this.description;
52
	}
53

  
54
	public void setName(String name) {
55
		this.name = name;
56
	}
57
	
58
	public void setDescription(String description) {
59
		this.description = description;
60
	}
61

  
62
}
trunk/extensions/extMetadata/src/org/gvsig/metadata/extended/registry/MDRegistryImpl.java
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

  
32
package org.gvsig.metadata.extended.registry;
33

  
34

  
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff