Project

General

Profile

Download (1.52 KB) Statistics
| Branch: | Revision:

git_sitools_idoc / sitools-idoc / hesiod / javaExt / src / fr / ias / sitools / resources / geojson / DatasetToJsonModel.java @ 779bac69

1
/*
2
 * To change this license header, choose License Headers in Project Properties.
3
 * To change this template file, choose Tools | Templates
4
 * and open the template in the editor.
5
 */
6

    
7
package fr.ias.sitools.resources.geojson;
8

    
9
import fr.cnes.sitools.dataset.DataSetApplication;
10
import fr.cnes.sitools.plugins.resources.model.DataSetSelectionType;
11
import fr.cnes.sitools.plugins.resources.model.ResourceModel;
12
import fr.cnes.sitools.plugins.resources.model.ResourceParameter;
13
import fr.cnes.sitools.plugins.resources.model.ResourceParameterType;
14

    
15
/**
16
 *
17
 * @author marc
18
 */
19
public class DatasetToJsonModel extends ResourceModel {
20
    
21
    public static final String DICO_PARAM_NAME = "dictionary_name";
22
    
23
    public DatasetToJsonModel(){
24
        super();
25
        setClassAuthor("IDOC/IAS");
26
        setClassOwner("IDOC/IAS");
27
        setClassVersion("0.2");
28
        setName("DatasetToJsonModel");
29
        setDescription("dataset to GeoJson file");
30
        setResourceClassName("fr.ias.sitools.resources.geojson.DatasetToJson");
31

    
32
        ResourceParameter param1 = new ResourceParameter(DICO_PARAM_NAME, "The name of the dictionary to use",
33
        ResourceParameterType.PARAMETER_INTERN);
34
        param1.setValueType("xs:dictionary");
35
        this.addParam(param1);
36
        
37
        this.setApplicationClassName(DataSetApplication.class.getName());
38
        this.setDataSetSelection(DataSetSelectionType.MULTIPLE);
39
        this.getParameterByName("methods").setValue("GET");
40
        this.getParameterByName("url").setValue("/mizar/dstojson");
41
    }
42
    
43
}