svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.compat.cdc / org.gvsig.fmap.dal / org.gvsig.fmap.dal.swing / org.gvsig.fmap.dal.swing.api / src / main / java / org / gvsig / fmap / dal / swing / searchPostProcess / AbstractSearchPostProcessFactory.java @ 45704
History | View | Annotate | Download (2.06 KB)
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 |
package org.gvsig.fmap.dal.swing.searchPostProcess; |
7 |
|
8 |
import org.gvsig.fmap.dal.feature.FeatureQuery; |
9 |
import org.gvsig.fmap.dal.feature.FeatureStore; |
10 |
import org.gvsig.fmap.dal.swing.searchpanel.SearchParameters; |
11 |
import org.gvsig.tools.dynobject.DynObject; |
12 |
import org.slf4j.Logger; |
13 |
import org.slf4j.LoggerFactory; |
14 |
|
15 |
/**
|
16 |
*
|
17 |
* @author jovivas
|
18 |
*/
|
19 |
public class AbstractSearchPostProcessFactory implements SearchPostProcessFactory { |
20 |
|
21 |
protected static final Logger LOGGER = LoggerFactory.getLogger(AbstractSearchPostProcessFactory.class); |
22 |
|
23 |
protected String label; |
24 |
protected String name; |
25 |
protected String description; |
26 |
protected FeatureStore input;
|
27 |
protected FeatureQuery query;
|
28 |
|
29 |
protected AbstractSearchPostProcessFactory (
|
30 |
String label,
|
31 |
String name,
|
32 |
String description,
|
33 |
FeatureStore input, |
34 |
FeatureQuery query |
35 |
){ |
36 |
this.label=label;
|
37 |
this.name=name;
|
38 |
this.description=description;
|
39 |
this.input=input;
|
40 |
this.query=query;
|
41 |
} |
42 |
|
43 |
@Override
|
44 |
public String getName() { |
45 |
return this.name; |
46 |
} |
47 |
|
48 |
@Override
|
49 |
public String getLabel() { |
50 |
return this.label; |
51 |
} |
52 |
|
53 |
@Override
|
54 |
public String getDescription() { |
55 |
return this.description; |
56 |
} |
57 |
|
58 |
@Override
|
59 |
public DynObject createProcessParameters(FeatureStore input, FeatureQuery query, SearchParameters searchParams) {
|
60 |
return null; |
61 |
} |
62 |
|
63 |
@Override
|
64 |
public boolean hasProcessParameters() { |
65 |
return false; |
66 |
} |
67 |
|
68 |
@Override
|
69 |
public boolean isApplicable(FeatureStore input) { |
70 |
return false; |
71 |
// hay que especificar codigo de si un postproceso se puede aplicara un determinado tipo de dato
|
72 |
} |
73 |
|
74 |
@Override
|
75 |
public SearchPostProcess createProcess(SearchPostProcessFactory factory, FeatureStore input, FeatureQuery query, DynObject parameters) {
|
76 |
return null; |
77 |
} |
78 |
|
79 |
} |