Revision 406

View differences:

org.gvsig.educa.portableview/tags/org.gvsig.educa.portableview-1.0.25/org.gvsig.educa.portableview.lib/org.gvsig.educa.portableview.lib.api/src/test/resources/log4j.xml
1
<?xml version="1.0" encoding="ISO-8859-1" ?>
2
<!--
3

  
4
    gvSIG. Desktop Geographic Information System.
5

  
6
    Copyright (C) 2007-2012 gvSIG Association.
7

  
8
    This program is free software; you can redistribute it and/or
9
    modify it under the terms of the GNU General Public License
10
    as published by the Free Software Foundation; either version 2
11
    of the License, or (at your option) any later version.
12

  
13
    This program is distributed in the hope that it will be useful,
14
    but WITHOUT ANY WARRANTY; without even the implied warranty of
15
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
    GNU General Public License for more details.
17

  
18
    You should have received a copy of the GNU General Public License
19
    along with this program; if not, write to the Free Software
20
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
21
    MA  02110-1301, USA.
22

  
23
    For any additional information, do not hesitate to contact us
24
    at info AT gvsig.com, or visit our website www.gvsig.com.
25

  
26
-->
27
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
28

  
29
<!-- 
30
Log4J configuration file for unit tests execution.
31
 -->
32
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
33

  
34
	<!-- Appender configuration to show logging messages through the console -->
35
	<appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
36
		<layout class="org.apache.log4j.PatternLayout">
37
			<param name="ConversionPattern" value="%d{HH:mm:ss,SSS} %-5p [%c{2}.%M()]\n  %m%n" />
38
		</layout>
39
	</appender>
40

  
41
	<!-- 
42
	Activate logging messages of DEBUG level of higher only for the
43
	org.gvsig.tools packages.
44
	You can put full classes names or packages instead, to configure
45
	logging for all the classes and subpackages of the package.
46
	-->
47
	<category name="org.gvsig.tools">
48
		<priority value="DEBUG" />
49
	</category>
50
	<category name="org.gvsig.construc">
51
		<priority value="DEBUG" />
52
	</category>
53

  
54
	<!-- 
55
	By default, show only logging messages of INFO level or higher, 
56
	through the previously configured CONSOLE appender. 
57
	-->
58
	<root>
59
		<priority value="INFO" />
60
		<appender-ref ref="CONSOLE" />
61
	</root>
62
</log4j:configuration>
org.gvsig.educa.portableview/tags/org.gvsig.educa.portableview-1.0.25/org.gvsig.educa.portableview.lib/org.gvsig.educa.portableview.lib.api/src/test/resources/README.txt
1
====
2
    gvSIG. Desktop Geographic Information System.
3

  
4
    Copyright (C) 2007-2012 gvSIG Association.
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
    For any additional information, do not hesitate to contact us
22
    at info AT gvsig.com, or visit our website www.gvsig.com.
23
====
24

  
25
Put into this folder the resources needed by your classes.
26

  
27
This folder is added to the classpath, so you can load any resources 
28
through the ClassLoader.
29

  
30
By default, in this folder you can find an example of log4j configuration,
31
prepared to log messages through the console, so logging works when you
32
run your classes.
org.gvsig.educa.portableview/tags/org.gvsig.educa.portableview-1.0.25/org.gvsig.educa.portableview.lib/org.gvsig.educa.portableview.lib.api/src/main/java/org/gvsig/educa/portableview/PortableViewManager.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.educa.portableview;
23

  
24
import java.io.File;
25
import java.io.IOException;
26
import java.util.List;
27

  
28
import org.gvsig.educa.portableview.compilation.PortableViewCompilation;
29
import org.gvsig.educa.portableview.compilation.PortableViewCompiler;
30
import org.gvsig.educa.portableview.map.CantLoadContextException;
31
import org.gvsig.educa.portableview.map.InvalidPortableViewFormatException;
32
import org.gvsig.educa.portableview.map.PortableView;
33
import org.gvsig.educa.portableview.map.PortableViewInformation;
34
import org.gvsig.tools.dispose.Disposable;
35

  
36
/**
37
 * Library Manager.
38
 * </p>
39
 * Expose main library's functionalities:
40
 * <ul>
41
 * <li>Set default folders configuration</li>
42
 * <li>Get installed <i>Portable View</i></li>
43
 * <li>Identify and get a <i>Portable View</i> from a file</li>
44
 * <li>Create a new {@link PortableViewCompilation} instance</li>
45
 * <li>Create a new {@link PortableViewCompiler} instance</li>
46
 * </ul>
47
 *
48
 * @author gvSIG team
49
 * @version $Id$
50
 */
51
public interface PortableViewManager extends Disposable {
52

  
53
    public static final String  INSTALLER_PROVIDER_NAME = "PortableView";
54
            
55
    /**
56
     * Gets default folder to locate installed <i>Portable View</i>
57
     *
58
     * @return default installation folder
59
     */
60
    String getInstallationMapFolder();
61

  
62
    /**
63
     * Sets default folder to locate installed <i>Portable View</i>
64
     *
65
     * @param folder
66
     * @throws IllegalArgumentException
67
     *             if <code>folder</code> is a file or can't read or not exists
68
     */
69
    void setInstallationMapFolder(String folder);
70

  
71
    /**
72
     * Gets the folder to use to <i>open</i> any <i>Portable
73
     * View</i> before access to the information contained in it.
74
     *
75
     * @return temporal folder
76
     */
77
    String getTemporalFolder();
78

  
79
    /**
80
     * Sets the folder to use to <i>open</i> any <i>Portable View</i>
81
     *
82
     * @param folder
83
     * @throws IllegalArgumentException
84
     *             if <code>folder</code> is a file or can't write
85
     */
86
    void setTemporalFolder(String folder);
87

  
88
    /**
89
     * Clear all data in temporal folder
90
     */
91
    void cleanAllTemporalData();
92

  
93
    /**
94
     * Returns all <i>Portable View</i> installed
95
     * </p>
96
     * Uses installation folder to locate them
97
     *
98
     * @return All <i>Portable View></i> installed
99
     */
100
    List<PortableView> getInstalledMaps();
101

  
102
    /**
103
     * Returns all <i>Portable View</i> installed into the specified folder
104
     * </p>
105
     * Uses installation folder to locate them
106
     *
107
     * @param folder
108
     *            to analyze
109
     * @return All <i>Portable View></i> installed
110
     * @throws IllegalArgumentException
111
     *             if folder is not valid (a readable folder)
112
     */
113
    List<PortableView> getInstalledMaps(String folder);
114

  
115
    /**
116
     * Gets a {@link PortableView} from a file
117
     * </p>
118
     *
119
     * @param file
120
     * @return the <i>Portable View</i>
121
     * @throws InvalidPortableViewFormatException
122
     */
123
    PortableView getMapFromFile(File file)
124
        throws InvalidPortableViewFormatException;
125

  
126
    /**
127
     * Gets a {@link PortableView} from intalledMaps
128
     * by its id
129
     * </p>
130
     *
131
     * @param mapid
132
     *            PortableView id
133
     * @return the <i>Portable View</i>
134
     */
135
    PortableView getMapById(String mapId);
136

  
137
    /**
138
     * Informs if a file is a valid <i>Portable View</i> file
139
     *
140
     * @param file
141
     * @return
142
     */
143
    boolean isMap(File file);
144

  
145
    /**
146
     * Informs if a folder is a valid <i>Portable View</i> installed folder
147
     *
148
     * @param file
149
     * @return
150
     */
151
    boolean isAPortableViewIntalledFolder(File folder);
152

  
153
    /**
154
     * Creates a new instance of a {@link PortableViewCompilation}
155
     *
156
     * @return
157
     */
158
    PortableViewCompilation createCompilationInstance();
159

  
160
    /**
161
     * Creates a new instance of a {@link PortableViewCompilation} based on
162
     * values <code>map</code>
163
     *
164
     * @param map
165
     *            to use as template
166
     * @return
167
     * @throws IOException
168
     * @throws CantLoadContextException
169
     * @throws InvalidPortableViewFormatException
170
     */
171
    PortableViewCompilation createCompilationInstanceFromMap(PortableView map)
172
        throws InvalidPortableViewFormatException, CantLoadContextException,
173
        IOException;
174

  
175
    /**
176
     * Create a new instance of a {@link PortableViewCompiler}
177
     *
178
     * @return
179
     */
180
    PortableViewCompiler createCompilerInstance();
181

  
182
    /**
183
     * Generates the base name for a PortableView file using its info data
184
     *
185
     * @param info
186
     * @return
187
     */
188
    String getBaseFileNameFromInfo(PortableViewInformation info);
189

  
190
    /**
191
     * Generates the base name for a PortableView file
192
     *
193
     * @param info
194
     * @return
195
     */
196
    String getBaseFileNameFromInfo(String id, String name, int version,
197
        int buildNumber);
198

  
199
    /**
200
     * Create a gvSIG package file (gvspkg) from a portableView
201
     *
202
     * @param mapId
203
     *            id of map to export
204
     * @param targetFolder
205
     *            where write package file
206
     * @return
207
     * @throws PortableViewException
208
     * @throws IOException
209
     */
210
    File generatePackageFile(String mapId, File targetFolder)
211
        throws PortableViewException, IOException;
212

  
213
    /**
214
     * Create a gvSIG package file (gvspkg) from a portableView installed folder
215
     *
216
     * @param portableViewIntallFolder
217
     *            folder of a installed PortableView
218
     * @param targetFolder
219
     *            where write package file
220
     * @return
221
     * @throws PortableViewException
222
     * @throws IOException
223
     */
224
    File generatePackageFile(File portableViewIntallFolder, File targetFolder)
225
        throws PortableViewException, IOException;
226

  
227
    /**
228
     * Returns the translation of a string.
229
     *
230
     * @param key
231
     *            String to translate
232
     * @return a String with the translation of the string passed by parameter
233
     */
234
    public String getTranslation(String key);
235
}
org.gvsig.educa.portableview/tags/org.gvsig.educa.portableview-1.0.25/org.gvsig.educa.portableview.lib/org.gvsig.educa.portableview.lib.api/src/main/java/org/gvsig/educa/portableview/compilation/CompilationException.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.educa.portableview.compilation;
23

  
24
import org.gvsig.educa.portableview.PortableViewException;
25

  
26
/**
27
 * Exception Throws in a PortableView compilation process
28
 *
29
 * @author gvSIG Team
30
 * @version $Id$
31
 *
32
 */
33
public class CompilationException extends PortableViewException {
34

  
35
    /**
36
     *
37
     */
38
    private static final long serialVersionUID = -1052257268555865780L;
39

  
40
    private static final String MESSAGE =
41
        "Problem found compiling Portable view [%(portableViewId)]: %(info)";
42

  
43
    private static final String KEY = "_CompilationException";
44

  
45
    /**
46
     * Invalid format of a portable view file
47
     *
48
     * @param mapFile
49
     * @param mapContextFile
50
     * @param message
51
     *            problem description
52
     * @param cause
53
     */
54
    public CompilationException(String portableViewId, String message,
55
        Throwable cause) {
56
        super(MESSAGE, cause, KEY, serialVersionUID);
57
        setValue("info", message);
58
        setValue("portableViewId", portableViewId);
59
    }
60

  
61
    /**
62
     * Invalid format of a portable view file
63
     *
64
     * @param mapFile
65
     * @param mapContextFile
66
     * @param cause
67
     */
68
    public CompilationException(String portableViewId, Throwable cause) {
69
        this(portableViewId, "compilation problem", cause);
70
    }
71

  
72
}
org.gvsig.educa.portableview/tags/org.gvsig.educa.portableview-1.0.25/org.gvsig.educa.portableview.lib/org.gvsig.educa.portableview.lib.api/src/main/java/org/gvsig/educa/portableview/compilation/CompilationValidationMessage.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.educa.portableview.compilation;
23

  
24
/**
25
 * @author gvSIG Team
26
 * @version $Id$
27
 * 
28
 */
29
public interface CompilationValidationMessage {
30

  
31
    public enum Type {
32
        MESSAGE, WARNING, ERROR
33
    };
34

  
35
    Type getType();
36

  
37
    String getMessage();
38

  
39
    String getSource();
40

  
41
}
org.gvsig.educa.portableview/tags/org.gvsig.educa.portableview-1.0.25/org.gvsig.educa.portableview.lib/org.gvsig.educa.portableview.lib.api/src/main/java/org/gvsig/educa/portableview/compilation/PortableViewCompiler.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.educa.portableview.compilation;
23

  
24
/**
25
 * Process to generate a file which will contains a <i>Portable View</i>
26
 *
27
 * @author <a href="http://www.disid.com">DiSiD Technologies S.L.</a>
28
 * @version $Id$
29
 */
30
public interface PortableViewCompiler {
31

  
32
    /**
33
     * Gets temporal folder used by the process to prepare file
34
     *
35
     * @return
36
     */
37
    String getWorkFolder();
38

  
39
    /**
40
     * Sets temporal folder used by the process to prepare file
41
     *
42
     * @param folder
43
     * @throws IllegalArgumentException
44
     *             if folder not exists or is not writable
45
     */
46
    void setWorkFolder(String folder);
47

  
48
    /**
49
     * Gets folder used to deploy generated file
50
     *
51
     * @return
52
     */
53
    String getTargetFolder();
54

  
55
    /**
56
     * Sets folder where deploy generated file
57
     *
58
     * @throws IllegalArgumentException
59
     *             if folder not exists or is not writable
60
     */
61
    void setTargetFolder(String folder);
62

  
63
    /**
64
     * Set the process listener
65
     *
66
     * @param listener
67
     */
68
    void setCompilerListener(PortableViewCompilerListener listener);
69

  
70
    /**
71
     * <p>
72
     * Process compilation to generate a <i>Portable View</i>
73
     * </p>
74
     * <p>
75
     * <code>compilation</code> data will be update at the end of process if
76
     * it's success (build number, creation stamp).
77
     * </p>
78
     *
79
     * @param compilation
80
     * @return
81
     * @throws IllegalArgumentException
82
     *             if targetFolder or workFolder are not set
83
     */
84
    PortableViewCompilerStatus compile(PortableViewCompilation compilation);
85

  
86
}
org.gvsig.educa.portableview/tags/org.gvsig.educa.portableview-1.0.25/org.gvsig.educa.portableview.lib/org.gvsig.educa.portableview.lib.api/src/main/java/org/gvsig/educa/portableview/compilation/PortableViewCompilation.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.educa.portableview.compilation;
23

  
24
import java.util.List;
25

  
26
import org.gvsig.fmap.mapcontext.MapContext;
27

  
28
/**
29
 * Interface for classes which contain all information needed to
30
 * generate a new Portable View file
31
 *
32
 * @author gvSIG Team
33
 * @version $Id$
34
 */
35
public interface PortableViewCompilation {
36

  
37
    /**
38
     * <p>
39
     * Gets object which contain PortableView information
40
     * </p>
41
     * <p>
42
     * Fill this object with the values of the information to target map
43
     * </p>
44
     *
45
     * @return
46
     */
47
    PortableViewCompilationInformation getInformation();
48

  
49
    /**
50
     * Gets current map context
51
     *
52
     * @return
53
     */
54
    MapContext getMapContext();
55

  
56
    /**
57
     * Sets map context for PortableView
58
     *
59
     * @param mapContext
60
     */
61
    void setMapContext(MapContext mapContext);
62

  
63
    /**
64
     * Validates compilation
65
     *
66
     * @param messages
67
     *            <i>output parameter</i> which will fill with validation
68
     *            messages
69
     * @return true is valid or false if any problems found (see
70
     *         <code>messages</code> parameter to get why)
71
     */
72
    boolean isValid(List<CompilationValidationMessage> messages);
73

  
74
}
org.gvsig.educa.portableview/tags/org.gvsig.educa.portableview-1.0.25/org.gvsig.educa.portableview.lib/org.gvsig.educa.portableview.lib.api/src/main/java/org/gvsig/educa/portableview/compilation/PortableViewCompilerStatus.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.educa.portableview.compilation;
23

  
24
import java.io.File;
25

  
26
import org.gvsig.tools.task.TaskStatus;
27

  
28
/**
29
 * Status of a Compiler process
30
 *
31
 * @author <a href="http://www.disid.com">DiSiD Technologies S.L.</a>
32
 * @version $Id$
33
 */
34
public interface PortableViewCompilerStatus extends TaskStatus {
35

  
36
    /**
37
     * Available status of a {@link PortableViewCompilerStatus}
38
     *
39
     * @author <a href="http://www.disid.com">DiSiD Technologies S.L.</a>
40
     * @version $Rev$
41
     * @since {version}
42
     */
43
    enum Status {
44
        preparing, processing, canceled, finished_ok, finished_fail, finished_error
45
    };
46

  
47
    /**
48
     * Gets current status
49
     *
50
     * @return
51
     */
52
    Status getStatus();
53

  
54
    /**
55
     * Current step
56
     *
57
     * @return
58
     */
59
    int getCurrentStep();
60

  
61
    /**
62
     * Total steps
63
     *
64
     * @return
65
     */
66
    int getTotalSteps();
67

  
68
    /**
69
     * Current step i18n description key
70
     *
71
     * @return
72
     */
73
    String getCurrentStepKey();
74

  
75
    /**
76
     * Gets message from current step
77
     */
78
    String getCurrentStepMessage();
79

  
80
    /**
81
     * Gets generated file (if {@link Status#finished_ok} )
82
     *
83
     * @return
84
     */
85
    File getGeneratedPortableViewFile();
86

  
87
    /**
88
     * Gets generated folder of installed portableView for gvSIG installer
89
     * integration (if {@link Status#finished_ok} )
90
     *
91
     * @return
92
     */
93
    File getGeneratedInstalationPortableViewFolder();
94

  
95
    /**
96
     * Gets message (if {@link Status#finished_fail} or
97
     * {@link Status#finished_error})
98
     *
99
     * @return
100
     */
101
    String getFailMessage();
102

  
103
    /**
104
     * Gets exception if any (if {@link Status#finished_error})
105
     *
106
     * @return
107
     */
108
    Throwable getException();
109

  
110
    /**
111
     * Gets result compilation (if {@link Status#finished_ok}) modified by the
112
     * process (updated buildNumber, creation timestamp, etc...)
113
     *
114
     * @return
115
     */
116
    PortableViewCompilation getResultCompilation();
117

  
118
}
org.gvsig.educa.portableview/tags/org.gvsig.educa.portableview-1.0.25/org.gvsig.educa.portableview.lib/org.gvsig.educa.portableview.lib.api/src/main/java/org/gvsig/educa/portableview/compilation/PortableViewCompilerListener.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.educa.portableview.compilation;
23

  
24
/**
25
 * Interface for a Listener of {@link PortableViewCompiler} process
26
 * 
27
 * @author <a href="http://www.disid.com">DiSiD Technologies S.L.</a>
28
 * @version $Id$
29
 */
30
public interface PortableViewCompilerListener {
31

  
32
    /**
33
     * Called when process status changes: next step, process percentage
34
     * changes, etc
35
     * 
36
     * @param currentStatus
37
     */
38
    void updatedStatus(PortableViewCompilerStatus currentStatus);
39

  
40
    /**
41
     * Called when process notify a warning
42
     * 
43
     * @param message
44
     *            of the warning
45
     * @param currentStatus
46
     */
47
    void notifyWarning(String message, PortableViewCompilerStatus currentStatus);
48

  
49
    /**
50
     * Called when process found an exception
51
     * 
52
     * @param currentStatus
53
     */
54
    void notifyException(PortableViewCompilerStatus currentStatus);
55
}
org.gvsig.educa.portableview/tags/org.gvsig.educa.portableview-1.0.25/org.gvsig.educa.portableview.lib/org.gvsig.educa.portableview.lib.api/src/main/java/org/gvsig/educa/portableview/compilation/PortableViewCompilationInformation.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.educa.portableview.compilation;
23

  
24
import org.gvsig.educa.portableview.map.PortableViewInformation;
25

  
26
/**
27
 * @author gvSIG Team
28
 * @version $Id$
29
 *
30
 */
31
public interface PortableViewCompilationInformation extends
32
    PortableViewInformation {
33

  
34
    /**
35
     * Sets <i>Portable View</i> id
36
     *
37
     * @param Name
38
     */
39
    void setId(String id);
40

  
41
    /**
42
     * Sets <i>Portable View</i> name
43
     *
44
     * @param Name
45
     */
46
    void setName(String Name);
47

  
48
    /**
49
     * Sets <i>Portable View</i> description
50
     *
51
     * @param description
52
     */
53
    void setDescription(String description);
54

  
55
    /**
56
     * Sets <i>Portable View</i> version
57
     *
58
     * @param version
59
     */
60
    void setVersion(int version);
61
}
org.gvsig.educa.portableview/tags/org.gvsig.educa.portableview-1.0.25/org.gvsig.educa.portableview.lib/org.gvsig.educa.portableview.lib.api/src/main/java/org/gvsig/educa/portableview/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.educa.portableview package documentation</title>
7
</head>
8
<body>
9

  
10
	<p>PortableView library API.</p>
11

  
12
	<p>
13
	It allows to get new PortableView and get their text.
14
	</p>
15

  
16
</body>
17
</html>
org.gvsig.educa.portableview/tags/org.gvsig.educa.portableview-1.0.25/org.gvsig.educa.portableview.lib/org.gvsig.educa.portableview.lib.api/src/main/java/org/gvsig/educa/portableview/PortableViewException.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.educa.portableview;
23

  
24
import org.gvsig.tools.exception.BaseException;
25

  
26
/**
27
 * Generic exception thrown in the PortableView API when the exception or error
28
 * may be dealt by the program or the user of the program which is a client of
29
 * the PortableView API.
30
 *
31
 * @see {@link PortableViewService}
32
 * @see {@link PortableViewManager}
33
 * @author gvSIG team.
34
 * @version $Id$
35
 */
36
public class PortableViewException extends BaseException {
37

  
38
    private static final long serialVersionUID = 6756475060924237176L;
39

  
40
    private static final String MESSAGE =
41
        "An error has been produced in the PortableView library";
42

  
43
    private static final String KEY = "_PortableViewException";
44

  
45
    /**
46
     * Constructor to be used in rare cases, usually you must create a new child
47
     * exception class for each case.
48
     * <strong>Don't use this constructor in child classes.</strong>
49
     */
50
    public PortableViewException() {
51
        super(MESSAGE, KEY, serialVersionUID);
52
    }
53

  
54
    /**
55
     * Constructor to be used in rare cases, usually you must create a new child
56
     * exception class for each case.
57
     * <p>
58
     * <strong>Don't use this constructor in child classes.</strong>
59
     * </p>
60
     *
61
     * @param cause
62
     *            the original cause of the exception
63
     */
64
    public PortableViewException(Exception cause) {
65
        super(MESSAGE, cause, KEY, serialVersionUID);
66
    }
67

  
68
    /**
69
     * @see BaseException#BaseException(String, String, long).
70
     * @param message
71
     *            the default messageFormat to describe the exception
72
     * @param key
73
     *            the key to use to search a localized messageFormnata
74
     * @param code
75
     *            the unique code to identify the exception
76
     */
77
    protected PortableViewException(String message, String key, long code) {
78
        super(message, key, code);
79
    }
80

  
81
    /**
82
     * @see BaseException#BaseException(String, Throwable, String, long).
83
     * @param message
84
     *            the default messageFormat to describe the exception
85
     * @param cause
86
     *            the original cause of the exception
87
     * @param key
88
     *            the key to use to search a localized messageFormnata
89
     * @param code
90
     *            the unique code to identify the exception
91
     */
92
    protected PortableViewException(String message, Throwable cause, String key,
93
        long code) {
94
        super(message, cause, key, code);
95
    }
96
}
org.gvsig.educa.portableview/tags/org.gvsig.educa.portableview-1.0.25/org.gvsig.educa.portableview.lib/org.gvsig.educa.portableview.lib.api/src/main/java/org/gvsig/educa/portableview/PortableViewRuntimeException.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.educa.portableview;
23

  
24
import org.gvsig.tools.exception.BaseRuntimeException;
25

  
26
/**
27
 * Generic exception thrown in the PortableView API when the exception or error
28
 * may be dealt by the program or the user of the program which is a client of
29
 * the PortableView API.
30
 *
31
 * @see {@link PortableViewService}
32
 * @see {@link PortableViewManager}
33
 * @author gvSIG team.
34
 * @version $Id$
35
 */
36
public class PortableViewRuntimeException extends BaseRuntimeException {
37

  
38

  
39
    /**
40
     *
41
     */
42
    private static final long serialVersionUID = -4039843730204021312L;
43

  
44
    private static final String MESSAGE =
45
        "An error has been produced in the PortableView library";
46

  
47
    private static final String KEY = "_PortableViewRuntimeException";
48

  
49
    public PortableViewRuntimeException(String message) {
50
        super(message, KEY, serialVersionUID);
51
    }
52

  
53
    /**
54
     *
55
     * @param cause
56
     *            the original cause of the exception
57
     */
58
    public PortableViewRuntimeException(String message, Exception cause) {
59
        super(message, cause, KEY, serialVersionUID);
60
    }
61

  
62
    /**
63
     *
64
     * @param cause
65
     *            the original cause of the exception
66
     */
67
    public PortableViewRuntimeException(Exception cause) {
68
        super(MESSAGE, cause, KEY, serialVersionUID);
69
    }
70

  
71
    /**
72
     * @see BaseException#BaseException(String, String, long).
73
     * @param message
74
     *            the default messageFormat to describe the exception
75
     * @param key
76
     *            the key to use to search a localized messageFormnata
77
     * @param code
78
     *            the unique code to identify the exception
79
     */
80
    protected PortableViewRuntimeException(String message, String key, long code) {
81
        super(message, key, code);
82
    }
83

  
84
    /**
85
     * @see BaseException#BaseException(String, Throwable, String, long).
86
     * @param message
87
     *            the default messageFormat to describe the exception
88
     * @param cause
89
     *            the original cause of the exception
90
     * @param key
91
     *            the key to use to search a localized messageFormnata
92
     * @param code
93
     *            the unique code to identify the exception
94
     */
95
    protected PortableViewRuntimeException(String message, Throwable cause, String key,
96
        long code) {
97
        super(message, cause, key, code);
98
    }
99
}
org.gvsig.educa.portableview/tags/org.gvsig.educa.portableview-1.0.25/org.gvsig.educa.portableview.lib/org.gvsig.educa.portableview.lib.api/src/main/java/org/gvsig/educa/portableview/PortableViewFileServices.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.educa.portableview;
23

  
24
import java.io.File;
25
import java.io.IOException;
26
import java.util.zip.ZipException;
27

  
28
import org.gvsig.fmap.mapcontext.MapContext;
29
import org.gvsig.tools.persistence.exception.PersistenceException;
30

  
31
/**
32
 * Portable View Utilities related to files
33
 *
34
 * @author gvSIG Team
35
 * @version $Id$
36
 *
37
 */
38
/**
39
 * @author gvSIG Team
40
 * @version $Id$
41
 * 
42
 */
43
public interface PortableViewFileServices {
44

  
45
    /**
46
     * <p>
47
     * Unzip a file into a folder
48
     * </p>
49
     * 
50
     * @param zipFile
51
     * @param outputFloder
52
     *            must exists. WARNING: <b>Contents will be removed before
53
     *            unzip</b>
54
     * @throws IOException
55
     * @throws ZipException
56
     * @throws IllegalArgumentException
57
     *             if zipFile is not a file or outputFloder doesn't exists or is
58
     *             read-only
59
     */
60
    void unzipFile(File zipFile, File outputFloder) throws ZipException,
61
        IOException;
62

  
63
    /**
64
     * <p>
65
     * Create a zip file which will contains all contents of a folder
66
     * </p>
67
     * <p>
68
     * Files will be use relative path to <code>rootFolder</code>
69
     * </p>
70
     * 
71
     * @param rootFolder
72
     *            rootFolder (must be an existing folder)
73
     * @param targetFile
74
     *            final file (must not exists)
75
     * @throws IOException
76
     * @throws IllegalArgumentException
77
     *             if there are any problem in parameters
78
     */
79
    void zipFolder(File rootFolder, File targetFile) throws IOException;
80

  
81
    /**
82
     * Informs if <code>folder</code> is a writable folder( exists & isDir &
83
     * canWrite)
84
     * 
85
     * @param folder
86
     * @return
87
     */
88
    boolean isWritableFolder(File folder);
89

  
90
    /**
91
     * Informs if <code>folder</code> is a readable folder( exists & isDir &
92
     * canRead)
93
     * 
94
     * @param folder
95
     * @return
96
     */
97
    boolean isReadableFolder(File folder);
98

  
99
    /**
100
     * Informs if <code>file</code> is a readable file ( exists & isFile &
101
     * canRead)
102
     * 
103
     * @param file
104
     * @return
105
     */
106
    boolean isReadableFile(File file);
107

  
108
    /**
109
     * <p>
110
     * Look for a folder on a <code>baseFolder</code> starts with
111
     * <code>baseName</code> which is writable.
112
     * </p>
113
     * <p>
114
     * The pattern is: <code>baseFolder/baseName.0000</code> where
115
     * <code>000</code> it's a counter.
116
     * </p>
117
     * 
118
     * @param baseFolder
119
     *            existing and writable folder
120
     * @param baseName
121
     *            start of new folder
122
     * @return new folder
123
     * @throws IllegalArgumentException
124
     *             if base folder is not a writable folder
125
     * @throws IllegalStateException
126
     *             if can't found a suitable folder
127
     */
128
    File getWritableFolder(File baseFolder, String baseName);
129

  
130
    /**
131
     * <p>
132
     * Create a new folder on a <code>baseFolder</code> starts with
133
     * <code>baseName</code> which is new and writable.
134
     * </p>
135
     * <p>
136
     * The pattern is: <code>baseFolder/baseName.0000</code> where
137
     * <code>000</code> it's a counter.
138
     * </p>
139
     * 
140
     * @param baseFolder
141
     *            existing and writable folder
142
     * @param baseName
143
     *            start of new folder
144
     * @return new folder
145
     * @throws IllegalArgumentException
146
     *             if base folder is not a writable folder
147
     * @throws IllegalStateException
148
     *             if can't found a suitable folder
149
     */
150
    File getNewWritableFolder(File baseFolder, String baseName);
151

  
152
    /**
153
     * <p>
154
     * Create {@link File} instance for a new file on a <code>baseFolder</code>
155
     * starts with <code>baseName</code>.
156
     * </p>
157
     * <p>
158
     * The pattern is: <code>baseFolder/baseName.0000.ext</code> where
159
     * <code>000</code> it's a counter.
160
     * </p>
161
     * <p>
162
     * This <b>no create</b> the file into the file system.
163
     * </p>
164
     * 
165
     * @param baseFolder
166
     *            existing and writable folder
167
     * @param name
168
     *            start of new file
169
     * @return new folder
170
     * @throws IllegalArgumentException
171
     *             if base folder is not a writable folder
172
     * @throws IllegalStateException
173
     *             if can't found a suitable folder
174
     */
175
    File getNewFileName(File baseFolder, String name);
176

  
177
    /**
178
     * <p>
179
     * Return <code>path</code> as relative from <code>basePath</code> only if
180
     * <code>basePath</code> is an ancestor of <code>path</code>:
181
     * </p>
182
     * 
183
     * @param path
184
     * @param basePath
185
     * @return
186
     * @see FilenameUtils#getRelativeTo(String, String)
187
     */
188
    File getRelativeTo(File path, File basePath);
189

  
190
    /**
191
     * <p>
192
     * Load a mapContext from a file adjusting file paths which are supposed
193
     * relatives to a folder
194
     * </p>
195
     * 
196
     * @param mapContext
197
     *            persistence file
198
     * @param relativaPathFolder
199
     *            for files refered in mapContext
200
     * @return
201
     * @throws IOException
202
     * @throws PersistenceException
203
     */
204
    MapContext loadMapContext(File mapContext, File relativaPathFolder)
205
        throws IOException, PersistenceException;
206
}
org.gvsig.educa.portableview/tags/org.gvsig.educa.portableview-1.0.25/org.gvsig.educa.portableview.lib/org.gvsig.educa.portableview.lib.api/src/main/java/org/gvsig/educa/portableview/PortableViewLocator.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.educa.portableview;
23

  
24
import org.gvsig.tools.locator.BaseLocator;
25
import org.gvsig.tools.locator.Locator;
26
import org.gvsig.tools.locator.LocatorException;
27

  
28
/**
29
 * This locator is the entry point for the PortableView library, providing
30
 * access to all PortableView services through the {@link PortableViewManager} .
31
 *
32
 * @author gvSIG team
33
 * @version $Id$
34
 */
35
public class PortableViewLocator extends BaseLocator {
36

  
37
    /**
38
     * PortableView manager name.
39
     */
40
    public static final String MANAGER_NAME = "PortableView.manager";
41

  
42
    /**
43
     * PortableView manager description.
44
     */
45
    public static final String MANAGER_DESCRIPTION = "PortableView Manager";
46

  
47
    /**
48
     * PortableView file services name.
49
     */
50
    public static final String FILESERVICES_NAME = "PortableView.fileservices";
51

  
52
    /**
53
     * PortableView file services manager description.
54
     */
55
    public static final String FILESERVICES_DESCRIPTION =
56
        "PortableView File Servides";
57

  
58
    private static final String LOCATOR_NAME = "PortableView.locator";
59

  
60
    /**
61
     * Unique instance.
62
     */
63
    private static final PortableViewLocator INSTANCE = new PortableViewLocator();
64

  
65
    /**
66
     * Return the singleton instance.
67
     *
68
     * @return the singleton instance
69
     */
70
    public static PortableViewLocator getInstance() {
71
        return INSTANCE;
72
    }
73

  
74
    /**
75
     * Return the Locator's name.
76
     *
77
     * @return a String with the Locator's name
78
     */
79
    @Override
80
    public final String getLocatorName() {
81
        return LOCATOR_NAME;
82
    }
83

  
84
    /**
85
     * Return a reference to the PortableViewManager.
86
     *
87
     * @return a reference to the PortableViewManager
88
     * @throws LocatorException
89
     *             if there is no access to the class or the class cannot be
90
     *             instantiated
91
     * @see Locator#get(String)
92
     */
93
    public static PortableViewManager getManager() throws LocatorException {
94
        return (PortableViewManager) getInstance().get(MANAGER_NAME);
95
    }
96

  
97
    /**
98
     * Registers the Class implementing the PortableViewManager interface.
99
     *
100
     * @param clazz
101
     *            implementing the PortableViewManager interface
102
     */
103
    public static void registerManager(Class<? extends PortableViewManager> clazz) {
104
        getInstance().register(MANAGER_NAME, MANAGER_DESCRIPTION, clazz);
105
    }
106

  
107
    /**
108
     * Return a reference to the PortableViewFileServices.
109
     *
110
     * @return a reference to the PortableViewFileServices
111
     * @throws LocatorException
112
     *             if there is no access to the class or the class cannot be
113
     *             instantiated
114
     * @see Locator#get(String)
115
     */
116
    public static PortableViewFileServices getFileServices()
117
        throws LocatorException {
118
        return (PortableViewFileServices) getInstance().get(FILESERVICES_NAME);
119
    }
120

  
121
    /**
122
     * Registers the Class implementing the PortableViewFileServices interface.
123
     *
124
     * @param clazz
125
     *            implementing the PortableViewFileServices interface
126
     */
127
    public static void registerFileServices(
128
        Class<? extends PortableViewFileServices> clazz) {
129
        getInstance().register(FILESERVICES_NAME, FILESERVICES_DESCRIPTION,
130
            clazz);
131
    }
132

  
133
}
org.gvsig.educa.portableview/tags/org.gvsig.educa.portableview-1.0.25/org.gvsig.educa.portableview.lib/org.gvsig.educa.portableview.lib.api/src/main/java/org/gvsig/educa/portableview/PortableViewLibrary.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.educa.portableview;
23

  
24
import org.gvsig.fmap.dal.DALLibrary;
25
import org.gvsig.fmap.mapcontext.MapContextLibrary;
26
import org.gvsig.tools.library.AbstractLibrary;
27
import org.gvsig.tools.library.LibraryException;
28
import org.gvsig.tools.locator.ReferenceNotRegisteredException;
29

  
30
/**
31
 * Library for API initialization and configuration.
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff