Statistics
| Revision:

gvsig-educa / org.gvsig.educa.portableview / trunk / org.gvsig.educa.portableview / org.gvsig.educa.portableview.lib / org.gvsig.educa.portableview.lib.api / src / main / java / org / gvsig / educa / portableview / compilation / PortableViewCompiler.java @ 256

History | View | Annotate | Download (2.45 KB)

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