Revision 40002

View differences:

tags/libraries/org.gvsig.symbology/2.0.0/prepare-workspace.xml
1
<project name="org.gvsig.initial.build" default="prepare-workspace">
2

  
3
	<dirname property="org.gvsig.initial.build.basedir" file="${ant.file.org.gvsig.initial.build}" />
4

  
5
	<property name="workspace.basedir" value="${org.gvsig.initial.build.basedir}/.." />
6
	<property name="build.basedir" value="${workspace.basedir}/org.gvsig.maven.base.build" description="Eclipse workspace location" />
7
	<property name="build.jar.version" value="1.0.8-SNAPSHOT" />
8
	<property name="build.jar.file" value="org.gvsig.maven.base.build-${build.jar.version}.jar" />
9

  
10
	<property name="ant.libs.dir" location="${build.basedir}" description="Additional ant tasks libs folder" />
11

  
12
	<target name="check-maven-base-build-available">
13
		<available file="${user.home}/.m2/repository/org/gvsig/org.gvsig.maven.base.build/${build.jar.version}/${build.jar.file}" property="maven-base-build-available" />
14
	</target>
15

  
16
	<target name="get-maven-base-build-local" depends="check-maven-base-build-available" if="maven-base-build-available">
17
		<!-- Unzip de build jar file from the maven repository into the workspace root folder -->
18
		<copy todir="${workspace.basedir}" preservelastmodified="false" filtering="false">
19
			<zipfileset src="${user.home}/.m2/repository/org/gvsig/org.gvsig.maven.base.build/${build.jar.version}/${build.jar.file}">
20
				<patternset>
21
					<exclude name="META-INF/**" />
22
				</patternset>
23
			</zipfileset>
24
		</copy>
25
	</target>
26

  
27
	<target name="get-maven-base-build-remote" depends="check-maven-base-build-available" unless="maven-base-build-available">
28
		<mkdir dir="target" />
29

  
30
		<!-- Download the build jar file -->
31
		<get src="http://devel.gvsig.org/m2repo/j2se/org/gvsig/org.gvsig.maven.base.build/${build.jar.version}/${build.jar.file}" dest="target/${build.jar.file}" verbose="true" />
32

  
33
		<!-- Unzip de build jar file into the workspace root folder -->
34
		<copy todir="${workspace.basedir}" preservelastmodified="false" filtering="false">
35
			<zipfileset src="target/${build.jar.file}">
36
				<patternset>
37
					<exclude name="META-INF/**" />
38
				</patternset>
39
			</zipfileset>
40
		</copy>
41

  
42
	</target>
43
	
44
	<target name="find.depends.natives.file">
45
	    <condition property="depends.natives.file.exists">
46
            <available file="${org.gvsig.initial.build.basedir}/DEPENDS_ON_NATIVE_LIBRARIES"/>
47
	    </condition>	
48
	</target>
49
	
50
	<target name="find.gvsig.platform.properties.file" 
51
			depends="find.depends.natives.file"
52
			if="depends.natives.file.exists">
53
	    <condition property="gvsig.platform.exists">
54
            <available file="${user.home}/.gvsig.platform.properties"/>
55
	    </condition>	
56
	</target>
57
	
58
	<target name="check.gvsig.platform.properties" 
59
			depends="find.gvsig.platform.properties.file">
60
		<fail if="depends.natives.file.exists" unless="gvsig.platform.exists">
61
ERROR!!
62
	
63
You have to define your gvSIG platform properties, 
64
by creating the file: ${user.home}/.gvsig.platform.properties
65
with the following content:
66

  
67
native_platform=linux
68
native_distribution=all
69
native_compiler=gcc4
70
native_arch=i386
71
native_libraryType=dynamic
72
export native_classifier=${native_platform}-${native_distribution}-${native_compiler}-${native_arch}-${native_libraryType}
73

  
74
Replace the fifth initial variables values with the ones appropiate 
75
to your platform.
76
	
77
If you use maven in the command line, you can use the previous file also
78
to define the MAVEN_OPTS environment variable, by adding to your 
79
.bash_rc file something like this:
80

  
81
if [ -f "${HOME}/.gvsig.platform.properties" ]
82
then
83
    . ${HOME}/.gvsig.platform.properties
84
    export MAVEN_OPTS="-Xmx256M -XX:MaxPermSize=64m -Dnative-classifier=${native_classifier}"
85
else
86
    export MAVEN_OPTS="-Xmx256M -XX:MaxPermSize=64m"
87
fi
88

  
89
It will work if you use the bash shell. In any other case or platform, you'll
90
have to define your MAVEN_OPTS environment variable and set the 
91
"native-classifier" parameter directly.
92
		</fail>			
93
	
94
	</target>
95

  
96
	<target name="prepare-workspace" depends="get-maven-base-build-local,get-maven-base-build-remote,check.gvsig.platform.properties">
97

  
98
		<mkdir dir="target" />
99

  
100
		<chmod dir="${build.basedir}/maven/bin" perm="u+x" includes="m2,mvn,mvnDebug" />
101

  
102
		<!-- Copy the maven launchers to the workspace metadata folder -->
103
		<copy todir="${workspace.basedir}/.metadata">
104
			<fileset dir="${build.basedir}/eclipse-launchers">
105
				<exclude name="**/org.eclipse.jdt.core.prefs" />
106
				<exclude name="**/org.eclipse.core.variables.prefs" />
107
			</fileset>
108
		</copy>
109

  
110
		<concat destfile="${workspace.basedir}/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.core.prefs" append="true">
111
			<filelist dir="${build.basedir}/eclipse-launchers/.plugins/org.eclipse.core.runtime/.settings" files="org.eclipse.jdt.core.prefs" />
112
		</concat>
113
		<concat destfile="${workspace.basedir}/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.core.variables.prefs" append="true">
114
			<filelist dir="${build.basedir}/eclipse-launchers/.plugins/org.eclipse.core.runtime/.settings" files="org.eclipse.core.variables.prefs" />
115
		</concat>
116

  
117
		<!-- Configure the eclipse workspace -->
118
		<ant antfile="${build.basedir}/maven-goals.xml" target="mvn-configure-eclipse-workspace" />
119

  
120
		<!-- Configure the gvSIG profile -->
121
		<ant antfile="${build.basedir}/check-gvsig-profile.xml" />
122

  
123
		<property name="user-settings-file-location" value="${user.home}/.m2/settings.xml" />
124

  
125
		<taskdef name="xmltask" classname="com.oopsconsultancy.xmltask.ant.XmlTask">
126
			<classpath>
127
				<pathelement location="${ant.libs.dir}/com.oopsconsultancy.xmltask-1.16.1.jar" />
128
			</classpath>
129
		</taskdef>
130

  
131
		<xmltask source="${user-settings-file-location}" dest="${user-settings-file-location}">
132
			<copy path="//:settings/:profiles/:profile[:id/text() = 'gvsig-install']/:properties/:gvsig.install.dir/text()" property="current-gvsig-location" />
133
		</xmltask>
134

  
135
		<replace file="${workspace.basedir}/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.core.prefs" token="@GVSIG_HOME@" value="${current-gvsig-location}" />
136
		<replace file="${workspace.basedir}/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.core.variables.prefs" token="@GVSIG_HOME@" value="${current-gvsig-location}" />
137

  
138
		<!-- Compile, install and generate eclipse projects -->
139
		<ant antfile="${build.basedir}/maven-goals.xml" target="mvn-install-and-eclipse-eclipse" />
140

  
141
		<echo>INFORMATION!!!</echo>
142
		<echo>Restart eclipse and then proceed to import the subprojects contained into the main project</echo>
143

  
144
		<!-- TODO: copiar al proyecto de configuraciĆ³n general -->
145
	</target>
146

  
147
	<target name="clean">
148
		<delete dir="target" />
149
	</target>
150
	
151
</project>
0 152

  
tags/libraries/org.gvsig.symbology/2.0.0/pom.xml
1
<?xml version="1.0" encoding="ISO-8859-1"?>
2

  
3
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4
	<modelVersion>4.0.0</modelVersion>
5
	<artifactId>org.gvsig.symbology</artifactId>
6
	<packaging>pom</packaging>
7
	<version>2.0.0</version>
8
	<name>org.gvsig.symbology</name>
9
	<description>Symbology example project</description>
10
    <parent>
11
        <groupId>org.gvsig</groupId>
12
        <artifactId>org.gvsig.maven.base.pom</artifactId>
13
        <version>1.0.9</version>
14
    </parent>
15
    <url>https://devel.gvsig.org/redmine/projects/gvsig-desktop</url>
16
    <scm>
17
        <connection>scm:svn:https://devel.gvsig.org/svn/gvsig-desktop/tags/libraries/org.gvsig.symbology/2.0.0</connection>
18
        <developerConnection>scm:svn:https://devel.gvsig.org/svn/gvsig-desktop/tags/libraries/org.gvsig.symbology/2.0.0</developerConnection>
19
        <url>https://devel.gvsig.org/redmine/projects/gvsig-desktop/repository/show/tags/libraries/org.gvsig.symbology/2.0.0</url>
20
    </scm>
21
	<developers>
22
		<developer>
23
			<id>jjdelcerro</id>
24
			<name>Joaqu?n Jos? del Cerro</name>
25
			<email>jjdelcerro@gvsig.org</email>
26
			<roles>
27
				<role>Architect</role>
28
				<role>Developer</role>
29
			</roles>
30
		</developer>
31
		<developer>
32
			<id>jbadia</id>
33
			<name>Jos? Bad?a</name>
34
			<email>badia_jos@gva.es</email>
35
			<roles>
36
				<role>Developer</role>
37
			</roles>
38
		</developer>
39
	</developers>
40
	<repositories>
41
		<repository>
42
			<id>gvsig-public-http-repository</id>
43
			<name>gvSIG maven public HTTP repository</name>
44
            <url>http://devel.gvsig.org/m2repo/j2se</url>
45
			<releases>
46
				<enabled>true</enabled>
47
				<updatePolicy>daily</updatePolicy>
48
				<checksumPolicy>warn</checksumPolicy>
49
			</releases>
50
			<snapshots>
51
				<enabled>true</enabled>
52
				<updatePolicy>daily</updatePolicy>
53
				<checksumPolicy>warn</checksumPolicy>
54
			</snapshots>
55
		</repository>
56
	</repositories>
57
    <dependencyManagement>
58
        <dependencies>          
59
            <dependency>
60
                <groupId>org.gvsig</groupId>
61
                <artifactId>org.gvsig.core.maven.dependencies</artifactId>
62
                <version>2.0.1</version>
63
                <type>pom</type>
64
                <scope>import</scope>
65
            </dependency>
66
        </dependencies>
67
    </dependencyManagement>
68
	<dependencies>
69
		<dependency>
70
			<groupId>org.gvsig</groupId>
71
			<artifactId>org.gvsig.tools.lib</artifactId>
72
            <scope>compile</scope>
73
		</dependency>
74
		<dependency>
75
			<groupId>org.gvsig</groupId>
76
			<artifactId>org.gvsig.tools.lib</artifactId>
77
			<type>test-jar</type>
78
		</dependency>	
79
	</dependencies>
80
	
81
	<build>
82
		<plugins>
83
		    <plugin>
84
		      <artifactId>maven-release-plugin</artifactId>
85
		      <version>2.0</version>
86
		      <configuration>
87
		        <tagBase>https://devel.gvsig.org/svn/gvsig-desktop/tags/libraries/${artifactId}</tagBase>
88
		      </configuration>
89
		    </plugin>		
90
		    
91
			<plugin>
92
				<groupId>org.codehaus.mojo</groupId>
93
				<artifactId>animal-sniffer-maven-plugin</artifactId>
94
				<configuration>
95
					<skip>true</skip>
96
				</configuration>
97
			</plugin>	
98
		</plugins>
99
	</build>
100

  
101

  
102
	<modules>
103
		<module>org.gvsig.symbology.lib</module>
104
		<module>org.gvsig.symbology.swing</module>
105
		<module>org.gvsig.symbology.main</module>
106
	</modules>
107
</project>
108

  
0 109

  
tags/libraries/org.gvsig.symbology/2.0.0/README.txt
1
The first time you checkout the current project to a new workspace, 
2
you have to prepare it to be able to work easily with maven from
3
eclipse itself.
4

  
5
Perform the following steps:
6

  
7
1.- Launch the *prepare-workspace.xml* ant build file. 
8
    You can do it by loading the file into the ant view, 
9
    and running the default task, or right-clicking the 
10
    file from the package explorer or the navigator and
11
    select the option: *Run as > Ant build*. 
12
    
13
2.- Restart eclipse.
14

  
15
3.- Import the subprojects of the project you have just checked out.
16

  
17
Those steps are only needed once per workspace.     
18

  
0 19

  
tags/libraries/org.gvsig.symbology/2.0.0/org.gvsig.symbology.main/src/main/resources/README.txt
1
Put into this folder the resources needed by your classes.
2

  
3
This folder is added to the classpath, so you can load any resources 
4
through the ClassLoader.
5

  
6
By default, in this folder you can find an example of log4j configuration,
7
prepared to log messages through the console, so logging works when you
8
run your classes.
0 9

  
tags/libraries/org.gvsig.symbology/2.0.0/org.gvsig.symbology.main/src/main/resources/log4j.xml
1
<?xml version="1.0" encoding="ISO-8859-1" ?>
2
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
3

  
4
<!-- 
5
Log4J configuration file for unit tests execution.
6
 -->
7
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
8

  
9
	<!-- Appender configuration to show logging messages through the console -->
10
	<appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
11
		<layout class="org.apache.log4j.PatternLayout">
12
			<param name="ConversionPattern" value="%d{HH:mm:ss,SSS} %-5p [%c{2}.%M()]\n  %m%n" />
13
		</layout>
14
	</appender>
15

  
16
	<!-- 
17
	Activate logging messages of DEBUG level of higher only for the
18
	org.gvsig.tools packages.
19
	You can put full classes names or packages instead, to configure
20
	logging for all the classes and subpackages of the package.
21
	-->
22
	<category name="org.gvsig.tools">
23
		<priority value="DEBUG" />
24
	</category>
25
	<category name="org.gvsig.symbology">
26
		<priority value="DEBUG" />
27
	</category>
28

  
29
	<!-- 
30
	By default, show only logging messages of INFO level or higher, 
31
	through the previously configured CONSOLE appender. 
32
	-->
33
	<root>
34
		<priority value="INFO" />
35
		<appender-ref ref="CONSOLE" />
36
	</root>
37
</log4j:configuration>
0 38

  
tags/libraries/org.gvsig.symbology/2.0.0/org.gvsig.symbology.main/src/main/java/org/gvsig/symbology/main/Main.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
package org.gvsig.symbology.main;
23

  
24
import java.awt.BorderLayout;
25
import java.awt.Dimension;
26
import java.awt.event.ActionEvent;
27

  
28
import javax.swing.AbstractAction;
29
import javax.swing.Action;
30
import javax.swing.JButton;
31
import javax.swing.JFrame;
32
import javax.swing.JMenu;
33
import javax.swing.JMenuBar;
34
import javax.swing.JMenuItem;
35
import javax.swing.JToolBar;
36
import javax.swing.WindowConstants;
37

  
38
import org.gvsig.symbology.SymbologyLocator;
39
import org.gvsig.symbology.SymbologyManager;
40
import org.gvsig.symbology.swing.SymbologySwingLocator;
41
import org.gvsig.symbology.swing.SymbologySwingManager;
42
import org.gvsig.tools.library.impl.DefaultLibrariesInitializer;
43
import org.slf4j.Logger;
44
import org.slf4j.LoggerFactory;
45

  
46
/**
47
 * Main executable class for testing the Symbology library.
48
 * 
49
 * @author gvSIG Team
50
 * @version $Id$
51
 */
52
public class Main {
53

  
54
    private static final Logger LOG = LoggerFactory.getLogger(Main.class);
55

  
56
    private SymbologyManager manager;
57
    private SymbologySwingManager swingManager;
58

  
59
    public static void main(String args[]) {
60
        new DefaultLibrariesInitializer().fullInitialize();
61
        Main main = new Main();
62
        main.show();
63
    }
64

  
65
    @SuppressWarnings("serial")
66
    public void show() {
67
        manager = SymbologyLocator.getSymbologyManager();
68
        swingManager = SymbologySwingLocator.getSwingManager();
69

  
70
        Action showCookie = new AbstractAction("Get a Symbology") {
71

  
72
            public void actionPerformed(ActionEvent e) {
73
                showSymbology(manager);
74
            }
75
        };
76

  
77
        Action exit = new AbstractAction("Exit") {
78

  
79
            public void actionPerformed(ActionEvent e) {
80
                System.exit(0);
81
            }
82
        };
83

  
84
        JFrame frame = new JFrame("Symbology example app");
85
        frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
86

  
87
        // Create the menu bar.
88
        JMenuBar menuBar = new JMenuBar();
89

  
90
        // Build the menu.
91
        JMenu menuFile = new JMenu("File");
92
        menuFile.add(new JMenuItem(showCookie));
93
        menuFile.add(new JMenuItem(exit));
94

  
95
        menuBar.add(menuFile);
96

  
97
        JToolBar toolBar = new JToolBar();
98
        toolBar.add(new JButton(showCookie));
99
        toolBar.add(new JButton(exit));
100

  
101
        frame.setPreferredSize(new Dimension(200, 100));
102
        frame.setJMenuBar(menuBar);
103
        frame.add(toolBar, BorderLayout.PAGE_START);
104

  
105
        // Display the window.
106
        frame.pack();
107
        frame.setVisible(true);
108
    }
109

  
110
    public void showSymbology(SymbologyManager manager) {
111
//        try {
112
//            SymbologyService service =
113
//                (SymbologyService) manager.getSymbologyService();
114
//            JSymbologyServicePanel panel =
115
//                swingManager.createSymbology(service);
116
//            swingManager.getWindowManager().showWindow(panel, "Symbology",
117
//                SymbologyWindowManager.MODE_WINDOW);
118
//
119
//        } catch (ServiceException e) {
120
//            LOG.error("Error showing a Symbology", e);
121
//        }
122
    }
123

  
124
}
0 125

  
tags/libraries/org.gvsig.symbology/2.0.0/org.gvsig.symbology.main/src/main/java/org/gvsig/symbology/main/package.html
1
<?xml version="1.0" encoding="UTF-8" ?>
2
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
<html xmlns="http://www.w3.org/1999/xhtml">
4
<head>
5
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
6
<title>org.gvsig.symbology package documentation</title>
7
</head>
8
<body>
9

  
10
	<p>Symbology library testing and demo application.</p>
11

  
12
</body>
13
</html>
0 14

  
tags/libraries/org.gvsig.symbology/2.0.0/org.gvsig.symbology.main/pom.xml
1
<?xml version="1.0" encoding="ISO-8859-1"?>
2
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
3
	<modelVersion>4.0.0</modelVersion>
4
	<artifactId>org.gvsig.symbology.main</artifactId>
5
	<packaging>jar</packaging>
6
	<name>org.gvsig.symbology.main</name>
7
	<parent>
8
		<groupId>org.gvsig</groupId>
9
		<artifactId>org.gvsig.symbology</artifactId>
10
		<version>2.0.0</version>
11
	</parent>
12
	<dependencies>
13
		<dependency>
14
			<groupId>org.gvsig</groupId>
15
			<artifactId>org.gvsig.symbology.lib.api</artifactId>
16
			<version>2.0.0</version>
17
            <scope>compile</scope>
18
		</dependency>
19
		<dependency>
20
			<groupId>org.gvsig</groupId>
21
			<artifactId>org.gvsig.symbology.lib.impl</artifactId>
22
			<version>2.0.0</version>
23
			<scope>runtime</scope>
24
		</dependency>
25
		<dependency>
26
			<groupId>org.gvsig</groupId>
27
			<artifactId>org.gvsig.symbology.swing.api</artifactId>
28
			<version>2.0.0</version>
29
            <scope>compile</scope>
30
		</dependency>
31
		<dependency>
32
			<groupId>org.gvsig</groupId>
33
			<artifactId>org.gvsig.symbology.swing.impl</artifactId>
34
			<version>2.0.0</version>
35
			<scope>runtime</scope>
36
		</dependency>
37
        <dependency>
38
            <groupId>org.slf4j</groupId>
39
            <artifactId>slf4j-api</artifactId>
40
            <scope>compile</scope>
41
        </dependency>
42
	</dependencies>
43
</project>
44

  
0 45

  
tags/libraries/org.gvsig.symbology/2.0.0/org.gvsig.symbology.lib/pom.xml
1
<?xml version="1.0" encoding="ISO-8859-1"?>
2
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0    http://maven.apache.org/xsd/maven-4.0.0.xsd">
3

  
4
	<modelVersion>4.0.0</modelVersion>
5
	<artifactId>org.gvsig.symbology.lib</artifactId>
6
	<packaging>pom</packaging>
7
	<name>org.gvsig.symbology.lib</name>
8
	<parent>
9
		<groupId>org.gvsig</groupId>
10
		<artifactId>org.gvsig.symbology</artifactId>
11
		<version>2.0.0</version>
12
	</parent>
13

  
14
	<modules>
15
		<module>org.gvsig.symbology.lib.api</module>
16
		<module>org.gvsig.symbology.lib.impl</module>
17
	</modules>
18
</project>
19

  
20

  
0 21

  
tags/libraries/org.gvsig.symbology/2.0.0/org.gvsig.symbology.lib/org.gvsig.symbology.lib.impl/pom.xml
1
<?xml version="1.0" encoding="ISO-8859-1"?>
2
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
3
	<modelVersion>4.0.0</modelVersion>
4
	<artifactId>org.gvsig.symbology.lib.impl</artifactId>
5
	<packaging>jar</packaging>
6
	<name>org.gvsig.symbology.lib.impl</name>
7
	<parent>
8
		<groupId>org.gvsig</groupId>
9
		<artifactId>org.gvsig.symbology.lib</artifactId>
10
		<version>2.0.0</version>
11
	</parent>
12
	<dependencies>
13
		<dependency>
14
			<groupId>org.gvsig</groupId>
15
			<artifactId>org.gvsig.symbology.lib.api</artifactId>
16
			<version>2.0.0</version>
17
            <scope>compile</scope>
18
		</dependency>
19
		<dependency>
20
			<groupId>org.gvsig</groupId>
21
			<artifactId>org.gvsig.symbology.lib.api</artifactId>
22
			<version>2.0.0</version>
23
			<type>test-jar</type>
24
			<scope>test</scope>
25
		</dependency>
26
		<dependency>
27
			<groupId>org.gvsig</groupId>
28
			<artifactId>org.gvsig.fmap.geometry</artifactId>
29
			<classifier>impl</classifier>
30
			<scope>test</scope>
31
		</dependency>
32
        <dependency>
33
            <groupId>org.gvsig</groupId>
34
            <artifactId>org.gvsig.fmap.dal</artifactId>
35
            <scope>compile</scope>
36
        </dependency>
37
		<dependency>
38
			<groupId>org.gvsig</groupId>
39
			<artifactId>org.gvsig.fmap.dal</artifactId>
40
			<classifier>impl</classifier>
41
			<scope>test</scope>
42
		</dependency>
43
		<dependency>
44
			<groupId>org.gvsig</groupId>
45
			<artifactId>org.gvsig.fmap.mapcontext</artifactId>
46
			<classifier>operation</classifier>
47
            <scope>compile</scope>
48
		</dependency>
49
		<dependency>
50
			<groupId>org.apache.xmlgraphics</groupId>
51
			<artifactId>batik-gvt</artifactId>
52
            <scope>compile</scope>
53
		</dependency>
54
		<dependency>
55
			<groupId>org.apache.xmlgraphics</groupId>
56
			<artifactId>batik-script</artifactId>
57
            <scope>compile</scope>
58
		</dependency>
59
		<dependency>
60
			<groupId>org.gvsig</groupId>
61
			<artifactId>batik-ext-gvsig-custom</artifactId>
62
            <scope>compile</scope>
63
		</dependency>
64
		<dependency>
65
			<groupId>org.gvsig</groupId>
66
			<artifactId>org.gvsig.remoteclient</artifactId>
67
            <scope>compile</scope>
68
		</dependency>
69
		<dependency>
70
			<groupId>org.gvsig</groupId>
71
			<artifactId>org.gvsig.utils</artifactId>
72
            <scope>compile</scope>
73
		</dependency>
74
        <dependency>
75
            <groupId>org.gvsig</groupId>
76
            <artifactId>org.gvsig.fmap.geometry</artifactId>
77
            <scope>compile</scope>
78
        </dependency>
79
        <dependency>
80
            <groupId>org.gvsig</groupId>
81
            <artifactId>org.gvsig.fmap.mapcontext</artifactId>
82
            <scope>compile</scope>
83
        </dependency>
84
        <dependency>
85
            <groupId>org.gvsig</groupId>
86
            <artifactId>org.gvsig.timesupport.lib.api</artifactId>
87
            <scope>compile</scope>
88
        </dependency>
89
        <dependency>
90
            <groupId>org.slf4j</groupId>
91
            <artifactId>slf4j-api</artifactId>
92
            <scope>compile</scope>
93
        </dependency>
94
        <dependency>
95
            <groupId>com.vividsolutions</groupId>
96
            <artifactId>jts</artifactId>
97
            <scope>compile</scope>
98
        </dependency>
99
        <dependency>
100
            <groupId>org.gvsig</groupId>
101
            <artifactId>org.gvsig.projection</artifactId>
102
            <scope>compile</scope>
103
        </dependency>
104
        <dependency>
105
            <groupId>org.gvsig</groupId>
106
            <artifactId>org.gvsig.compat</artifactId>
107
            <scope>compile</scope>
108
        </dependency>
109
        <dependency>
110
            <groupId>org.gvsig</groupId>
111
            <artifactId>org.gvsig.i18n</artifactId>
112
            <scope>compile</scope>
113
        </dependency>
114
        <dependency>
115
            <groupId>org.gvsig</groupId>
116
            <artifactId>org.gvsig.metadata.lib.basic.api</artifactId>
117
            <scope>compile</scope>
118
        </dependency>        
119
        <dependency>
120
            <groupId>org.apache.xmlgraphics</groupId>
121
            <artifactId>batik-awt-util</artifactId>
122
            <scope>compile</scope>
123
        </dependency>
124
        <dependency>
125
            <groupId>org.apache.xmlgraphics</groupId>
126
            <artifactId>batik-bridge</artifactId>
127
            <scope>compile</scope>
128
        </dependency>
129
        <dependency>
130
            <groupId>xml-apis</groupId>
131
            <artifactId>xml-apis-ext</artifactId>
132
            <scope>compile</scope>
133
        </dependency>
134
	</dependencies>
135
	<build>
136
		<plugins>
137
			<!-- TODO: MAKE TESTS WORK AND REMOVE THIS OPTION -->
138
			<plugin>
139
				<groupId>org.apache.maven.plugins</groupId>
140
				<artifactId>maven-surefire-plugin</artifactId>
141
				<configuration>
142
					<skipTests>true</skipTests>
143
				</configuration>
144
			</plugin>
145
		</plugins>
146
	</build>
147
</project>
148

  
149

  
0 150

  
tags/libraries/org.gvsig.symbology/2.0.0/org.gvsig.symbology.lib/org.gvsig.symbology.lib.impl/src/test/resources/README.txt
1
Put into this folder the resources needed by your test classes.
2

  
3
This folder is added to the Tests classpath, so you can load any resources 
4
through the ClassLoader.
5

  
6
By default, in this folder you can find an example of log4j configuration,
7
prepared to log messages through the console, so logging works when you
8
run your tests classes.
0 9

  
tags/libraries/org.gvsig.symbology/2.0.0/org.gvsig.symbology.lib/org.gvsig.symbology.lib.impl/src/test/resources/log4j.xml
1
<?xml version="1.0" encoding="ISO-8859-1" ?>
2
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
3

  
4
<!-- 
5
Log4J configuration file for unit tests execution.
6
 -->
7
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
8

  
9
	<!-- Appender configuration to show logging messages through the console -->
10
	<appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
11
		<layout class="org.apache.log4j.PatternLayout">
12
			<param name="ConversionPattern" value="%d{HH:mm:ss,SSS} %-5p [%c{2}.%M()]\n  %m%n" />
13
		</layout>
14
	</appender>
15

  
16
	<!-- 
17
	Activate logging messages of DEBUG level of higher only for the
18
	org.gvsig.tools packages.
19
	You can put full classes names or packages instead, to configure
20
	logging for all the classes and subpackages of the package.
21
	-->
22
	<category name="org.gvsig.tools">
23
		<priority value="DEBUG" />
24
	</category>
25
	<category name="org.gvsig.symbology">
26
		<priority value="DEBUG" />
27
	</category>
28

  
29
	<!-- 
30
	By default, show only logging messages of INFO level or higher, 
31
	through the previously configured CONSOLE appender. 
32
	-->
33
	<root>
34
		<priority value="INFO" />
35
		<appender-ref ref="CONSOLE" />
36
	</root>
37
</log4j:configuration>
0 38

  
tags/libraries/org.gvsig.symbology/2.0.0/org.gvsig.symbology.lib/org.gvsig.symbology.lib.impl/src/test/java/org/gvsig/symbology/impl/DefaultSymbologyManagerTest.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
package org.gvsig.symbology.impl;
23

  
24
import org.gvsig.symbology.SymbologyManager;
25
import org.gvsig.symbology.SymbologyManagerTest;
26

  
27
/**
28
 * {@link SymbologyManager} API compatibility tests for the
29
 * {@link DefaultSymbologyManager} implementation.
30
 * 
31
 * @author gvSIG Team
32
 * @version $Id$
33
 */
34
public class DefaultSymbologyManagerTest extends SymbologyManagerTest {
35

  
36
    // Nothing to add
37
}
0 38

  
tags/libraries/org.gvsig.symbology/2.0.0/org.gvsig.symbology.lib/org.gvsig.symbology.lib.impl/src/test/java/org/gvsig/symbology/fmap/mapcontext/rendering/AllTests.java
1
package org.gvsig.symbology.fmap.mapcontext.rendering;
2

  
3
import java.io.File;
4

  
5
import junit.framework.Test;
6
import junit.framework.TestCase;
7
import junit.framework.TestSuite;
8

  
9
import org.cresques.cts.IProjection;
10
import org.gvsig.fmap.crs.CRSFactory;
11
import org.gvsig.fmap.mapcontext.MapContext;
12
import org.gvsig.fmap.mapcontext.ViewPort;
13
import org.gvsig.fmap.mapcontext.exceptions.LoadLayerException;
14
import org.gvsig.fmap.mapcontext.layers.FLayer;
15
import org.gvsig.symbology.fmap.mapcontext.rendering.symbol.TestDrawFills;
16
import org.gvsig.symbology.fmap.mapcontext.rendering.symbol.TestDrawLines;
17
import org.gvsig.symbology.fmap.mapcontext.rendering.symbol.TestDrawMarkers;
18
import org.gvsig.symbology.fmap.mapcontext.rendering.symbol.TestISymbol;
19
import org.gvsig.symbology.fmap.mapcontext.rendering.symbol.TestMultiLayerSymbol;
20

  
21
public class AllTests extends TestCase{
22
	/**
23
	 * The EPSG:4326 projection
24
	 */
25
	public static IProjection TEST_DEFAULT_PROJECTION =
26
		CRSFactory.getCRS("EPSG:4326");
27

  
28
	/**
29
	 * The EPSG:23030 projection
30
	 */
31
	public static IProjection TEST_DEFAULT_MERCATOR_PROJECTION =
32
		CRSFactory.getCRS("EPSG:23030");
33

  
34
	/**
35
	 * The EPSG:23029 projection
36
	 */
37
	public static IProjection test_newProjection =
38
		CRSFactory.getCRS("EPSG:23029");
39

  
40
	public static Test suite() {
41
		TestSuite suite = new TestSuite("Test for com.iver.cit.gvsig.fmap");
42
		//$JUnit-BEGIN$
43

  
44

  
45
//		/* Symbols (jaume) */
46
//			// integration tests
47
//				// ISymbol
48
//				suite.addTestSuite(TestISymbol.class);
49
//				suite.addTestSuite(TestMultiLayerSymbol.class);
50
//
51
//				// CartographicSupport
52
//				suite.addTestSuite(TestCartographicSupportForSymbol.class);
53
//
54
//		//
55
//		/*
56
//		 * Feature iterators
57
//		 * */
58
////		suite.addTestSuite(FeatureIteratorTest.class);
59
//
60
//		/*
61
//		 * Other Tests present in FMap (cesar)
62
//		 * Remove them from here and the src-test dir if they are not
63
//		 * useful anymore.
64
//		 */
65
//
66
////		suite.addTestSuite(TestAbstractIntervalLegend.class);
67
//		suite.addTestSuite(TestCartographicSupportForSymbol.class);
68
//		suite.addTestSuite(TestDrawFills.class);
69
//		suite.addTestSuite(TestDrawLines.class);
70
//		suite.addTestSuite(TestDrawMarkers.class);
71
////		suite.addTestSuite(TestIClassifiedLegend.class);
72
////		suite.addTestSuite(TestILegend.class);
73
//		suite.addTestSuite(TestMultiLayerSymbol.class);
74

  
75
		//$JUnit-END$
76
		return suite;
77
	}
78

  
79
//// jaume
80
//// PASTED FROM FeatureIteratorTest.java to be globally accessible
81
	static final String fwAndamiDriverPath = "../_fwAndami/gvSIG/extensiones/com.iver.cit.gvsig/drivers";
82
	private static File baseDataPath;
83
	private static File baseDriversPath;
84

  
85

  
86
	public static void setUpDrivers() {
87
//		try {
88
//			URL url = AllTests.class.getResource("testdata");
89
//			if (url == null)
90
//				throw new Exception("No se encuentra el directorio con datos de prueba");
91
//
92
//			baseDataPath = new File(url.getFile());
93
//			if (!baseDataPath.exists())
94
//				throw new Exception("No se encuentra el directorio con datos de prueba");
95
//
96
//			baseDriversPath = new File(fwAndamiDriverPath);
97
//			if (!baseDriversPath.exists())
98
//				throw new Exception("Can't find drivers path: " + fwAndamiDriverPath);
99
//
100
//			LayerFactory.setDriversPath(baseDriversPath.getAbsolutePath());
101
//			if (LayerFactory.getDM().getDriverNames().length < 1)
102
//				throw new Exception("Can't find drivers in path: " + fwAndamiDriverPath);
103
//		} catch (Exception e) {
104
//			throw new RuntimeException(e);
105
//		}
106
	}
107

  
108
	public static FLayer newLayer(String fileName,
109
			String driverName)
110
	throws LoadLayerException {
111
//		File file = new File(baseDataPath, fileName);
112
//		return LayerFactory.createLayer(fileName,
113
//				driverName,
114
//				file, TEST_DEFAULT_MERCATOR_PROJECTION);
115
	return null;
116
	}
117

  
118
	public static MapContext newMapContext(IProjection projection) {
119
		ViewPort vp = new ViewPort(projection);
120
		return new MapContext(vp);
121
	}
122

  
123
//// end past
124
}
0 125

  
tags/libraries/org.gvsig.symbology/2.0.0/org.gvsig.symbology.lib/org.gvsig.symbology.lib.impl/src/test/java/org/gvsig/symbology/fmap/mapcontext/rendering/legend/TestAbstractIntervalLegend.java
1
 /* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
2
 *
3
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
4
 *
5
 * This program is free software; you can redistribute it and/or
6
 * modify it under the terms of the GNU General Public License
7
 * as published by the Free Software Foundation; either version 2
8
 * of the License, or (at your option) any later version.
9
 *
10
 * This program is distributed in the hope that it will be useful,
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 * GNU General Public License for more details.
14
 *
15
 * You should have received a copy of the GNU General Public License
16
 * along with this program; if not, write to the Free Software
17
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
18
 *
19
 * For more information, contact:
20
 *
21
 *  Generalitat Valenciana
22
 *   Conselleria d'Infraestructures i Transport
23
 *   Av. Blasco Ib??ez, 50
24
 *   46010 VALENCIA
25
 *   SPAIN
26
 *
27
 *      +34 963862235
28
 *   gvsig@gva.es
29
 *      www.gvsig.gva.es
30
 *
31
 *    or
32
 *
33
 *   IVER T.I. S.A
34
 *   Salamanca 50
35
 *   46005 Valencia
36
 *   Spain
37
 *
38
 *   +34 963163400
39
 *   dac@iver.es
40
 */
41
package org.gvsig.symbology.fmap.mapcontext.rendering.legend;
42

  
43
import java.awt.Dimension;
44
import java.awt.Rectangle;
45
import java.util.ArrayList;
46
import java.util.Collection;
47
import java.util.Hashtable;
48
import java.util.Iterator;
49
import java.util.List;
50
import java.util.Set;
51

  
52
import org.cresques.cts.IProjection;
53

  
54
import org.gvsig.fmap.dal.DataQuery;
55
import org.gvsig.fmap.dal.DataServerExplorer;
56
import org.gvsig.fmap.dal.DataSet;
57
import org.gvsig.fmap.dal.DataStoreParameters;
58
import org.gvsig.fmap.dal.exception.DataException;
59
import org.gvsig.fmap.dal.exception.ReadException;
60
import org.gvsig.fmap.dal.feature.EditableFeature;
61
import org.gvsig.fmap.dal.feature.EditableFeatureType;
62
import org.gvsig.fmap.dal.feature.Feature;
63
import org.gvsig.fmap.dal.feature.FeatureCache;
64
import org.gvsig.fmap.dal.feature.FeatureIndex;
65
import org.gvsig.fmap.dal.feature.FeatureIndexes;
66
import org.gvsig.fmap.dal.feature.FeatureLocks;
67
import org.gvsig.fmap.dal.feature.FeatureQuery;
68
import org.gvsig.fmap.dal.feature.FeatureReference;
69
import org.gvsig.fmap.dal.feature.FeatureSelection;
70
import org.gvsig.fmap.dal.feature.FeatureSet;
71
import org.gvsig.fmap.dal.feature.FeatureStore;
72
import org.gvsig.fmap.dal.feature.FeatureStoreTransforms;
73
import org.gvsig.fmap.dal.feature.FeatureType;
74
import org.gvsig.fmap.dal.feature.NewFeatureStoreParameters;
75
import org.gvsig.fmap.dal.feature.exception.NeedEditingModeException;
76
import org.gvsig.fmap.geom.Geometry.SUBTYPES;
77
import org.gvsig.fmap.geom.Geometry.TYPES;
78
import org.gvsig.fmap.geom.GeometryLocator;
79
import org.gvsig.fmap.geom.GeometryManager;
80
import org.gvsig.fmap.geom.primitive.Curve;
81
import org.gvsig.fmap.geom.primitive.Envelope;
82
import org.gvsig.fmap.geom.primitive.GeneralPathX;
83
import org.gvsig.fmap.mapcontext.rendering.legend.IClassifiedVectorLegend;
84
import org.gvsig.fmap.mapcontext.rendering.legend.ILegend;
85
import org.gvsig.fmap.mapcontext.rendering.symbols.ISymbol;
86
import org.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.AbstractIntervalLegend;
87
import org.gvsig.symbology.fmap.mapcontext.rendering.legend.impl.FInterval;
88
import org.gvsig.symbology.fmap.mapcontext.rendering.symbol.TestISymbol;
89
import org.gvsig.timesupport.Interval;
90
import org.gvsig.tools.dynobject.DynClass;
91
import org.gvsig.tools.dynobject.DynObject;
92
import org.gvsig.tools.dynobject.exception.DynFieldNotFoundException;
93
import org.gvsig.tools.dynobject.exception.DynMethodException;
94
import org.gvsig.tools.exception.BaseException;
95
import org.gvsig.tools.junit.AbstractLibraryAutoInitTestCase;
96
import org.gvsig.tools.observer.Observer;
97
import org.gvsig.tools.persistence.PersistentState;
98
import org.gvsig.tools.persistence.exception.PersistenceException;
99
import org.gvsig.tools.undo.RedoException;
100
import org.gvsig.tools.undo.UndoException;
101
import org.gvsig.tools.visitor.Visitor;
102

  
103

  
104
/**
105
 * Integration test to ensure that the legends which implements the
106
 * IVectorialIntervalLegend interface follow the rules that follow the managing
107
 * of them by the application.
108
 *
109
 * @author pepe vidal salvador - jose.vidal.salvador@iver.es
110
 */
111
public class TestAbstractIntervalLegend extends AbstractLibraryAutoInitTestCase {
112

  
113
	private static final Integer v0 = new Integer(0);
114
	private static final Integer v1 = new Integer(1);
115
	private static final Integer v2 = new Integer(2);
116
	private static final Integer v3 = new Integer(3);
117

  
118
	private static final String FIELD3 = "field3";
119
	private static final String FIELD2 = "field2";
120
	private static final String FIELD1 = "field1";
121
	private static final String FIELD0 = "field0";
122
	private static final int FIELDID = 0;
123

  
124
	private static final Integer[] feature0Values = new Integer[] { v0, v1, v2, v3, };
125
	private static final Integer[] feature1Values = new Integer[] { v3, v0, v1, v2, };
126
	private static final Integer[] feature2Values = new Integer[] { v2, v3, v0, v1, };
127
	private static final Integer[] feature3Values = new Integer[] { v1, v2, v3, v0, };
128

  
129
	private static final Integer[][] featureValues = new Integer[][] {
130
		feature0Values,
131
		feature1Values,
132
		feature2Values,
133
		feature3Values,};
134

  
135
	private static String[] fieldNames = new String[] {FIELD0,FIELD1,FIELD2,FIELD3,};
136

  
137

  
138
	// private static final Value v4 = (Value)ValueFactory.createValue(4);
139
	// private static final Value v5 = (Value)ValueFactory.createValue(5);
140
	// private static final Value v6 = (Value)ValueFactory.createValue(6);
141
	// private static final Value v7 = (Value)ValueFactory.createValue(7);
142
	// private static final Value v8 = (Value)ValueFactory.createValue(8);
143
	// private static final Value v9 = (Value)ValueFactory.createValue(9);
144

  
145
	private AbstractIntervalLegend[] intervalLegends;
146
	private MockDataSource mockDataSource = new MockDataSource();
147

  
148
	/**
149
	 * To avoid duplicated validation logic in the test a mock object is created
150
	 * to use a DataSource for this test.
151
	 *
152
	 */
153
	private class MockDataSource implements FeatureStore {
154

  
155
		public boolean allowWrite() {
156

  
157
			return false;
158
		}
159

  
160
		public void beginEditingGroup(String description)
161
				throws NeedEditingModeException {
162

  
163

  
164
		}
165

  
166
		public boolean canWriteGeometry(int gvSIGgeometryType)
167
				throws DataException {
168

  
169
			return false;
170
		}
171

  
172
		public void cancelEditing() throws DataException {
173

  
174

  
175
		}
176

  
177
		public FeatureSelection createFeatureSelection() throws DataException {
178

  
179
			return null;
180
		}
181

  
182
		public FeatureIndex createIndex(FeatureType featureType,
183
				String attributeName, String indexName) throws DataException {
184

  
185
			return null;
186
		}
187

  
188
		public EditableFeature createNewFeature() throws DataException {
189

  
190
			return null;
191
		}
192

  
193
		public EditableFeature createNewFeature(FeatureType type,
194
				Feature defaultValues) throws DataException {
195

  
196
			return null;
197
		}
198

  
199
		public EditableFeature createNewFeature(FeatureType type,
200
				boolean defaultValues) throws DataException {
201

  
202
			return null;
203
		}
204

  
205
		public EditableFeature createNewFeature(boolean defaultValues)
206
				throws DataException {
207

  
208
			return null;
209
		}
210

  
211
		public void delete(Feature feature) throws DataException {
212

  
213

  
214
		}
215

  
216
		public void edit() throws DataException {
217

  
218

  
219
		}
220

  
221
		public void edit(int mode) throws DataException {
222

  
223

  
224
		}
225

  
226
		public void endEditingGroup() throws NeedEditingModeException {
227

  
228

  
229
		}
230

  
231
		public void finishEditing() throws DataException {
232

  
233

  
234
		}
235

  
236
		public FeatureType getDefaultFeatureType() throws DataException {
237

  
238
			return null;
239
		}
240

  
241
		public Envelope getEnvelope() {
242

  
243
			return null;
244
		}
245

  
246
		public Feature getFeatureByReference(FeatureReference reference)
247
				throws DataException {
248

  
249
			return null;
250
		}
251

  
252
		public Feature getFeatureByReference(FeatureReference reference,
253
				FeatureType featureType) throws DataException {
254

  
255
			return null;
256
		}
257

  
258
		public FeatureSelection getFeatureSelection() throws DataException {
259

  
260
			return null;
261
		}
262

  
263
		public FeatureSet getFeatureSet() throws DataException {
264

  
265
			return null;
266
		}
267

  
268
		public FeatureSet getFeatureSet(FeatureQuery featureQuery)
269
				throws DataException {
270

  
271
			return null;
272
		}
273

  
274
		public void getFeatureSet(FeatureQuery featureQuery, Observer observer)
275
				throws DataException {
276

  
277

  
278
		}
279

  
280
		public void getFeatureSet(Observer observer) throws DataException {
281

  
282

  
283
		}
284

  
285
		public List getFeatureTypes() throws DataException {
286

  
287
			return null;
288
		}
289

  
290
		public FeatureIndexes getIndexes() {
291

  
292
			return null;
293
		}
294

  
295
		public FeatureLocks getLocks() throws DataException {
296

  
297
			return null;
298
		}
299

  
300
		public DataStoreParameters getParameters() {
301

  
302
			return null;
303
		}
304

  
305
		public IProjection getSRSDefaultGeometry() throws DataException {
306

  
307
			return null;
308
		}
309

  
310
		public FeatureStoreTransforms getTransforms() {
311

  
312
			return null;
313
		}
314

  
315
		public void insert(EditableFeature feature) throws DataException {
316

  
317

  
318
		}
319

  
320
		public boolean isAppendModeSupported() {
321

  
322
			return false;
323
		}
324

  
325
		public boolean isAppending() {
326

  
327
			return false;
328
		}
329

  
330
		public boolean isEditing() {
331

  
332
			return false;
333
		}
334

  
335
		public boolean isLocksSupported() {
336

  
337
			return false;
338
		}
339

  
340

  
341
		public void setSelection(FeatureSet selection) throws DataException {
342

  
343

  
344
		}
345
		public void update(EditableFeatureType featureType)
346
				throws DataException {
347

  
348

  
349
		}
350

  
351
		public void update(EditableFeature feature) throws DataException {
352

  
353

  
354
		}
355

  
356
		public void validateFeatures(int mode) throws DataException {
357

  
358

  
359
		}
360

  
361
		public DataSet createSelection() throws DataException {
362

  
363
			return null;
364
		}
365

  
366
		public void dispose() {
367

  
368

  
369
		}
370

  
371
		public Iterator getChildren() {
372

  
373
			return null;
374
		}
375

  
376
		public DataSet getDataSet() throws DataException {
377

  
378
			return null;
379
		}
380

  
381
		public DataSet getDataSet(DataQuery dataQuery) throws DataException {
382

  
383
			return null;
384
		}
385

  
386
		public void getDataSet(Observer observer) throws DataException {
387

  
388

  
389
		}
390

  
391
		public void getDataSet(DataQuery dataQuery, Observer observer)
392
				throws DataException {
393

  
394

  
395
		}
396

  
397
		public DataServerExplorer getExplorer() throws DataException {
398

  
399
			return null;
400
		}
401

  
402
		public String getName() {
403

  
404
			return null;
405
		}
406

  
407
		public DataSet getSelection() throws DataException {
408

  
409
			return null;
410
		}
411

  
412
		public void refresh() throws DataException {
413

  
414

  
415
		}
416

  
417
		public void setSelection(DataSet selection) throws DataException {
418

  
419

  
420
		}
421

  
422
		public void beginComplexNotification() {
423

  
424

  
425
		}
426

  
427
		public void disableNotifications() {
428

  
429

  
430
		}
431

  
432
		public void enableNotifications() {
433

  
434

  
435
		}
436

  
437
		public void endComplexNotification() {
438

  
439

  
440
		}
441

  
442
		public void addObserver(Observer o) {
443

  
444

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

Also available in: Unified diff