Statistics
| Revision:

root / trunk / extensions / extSymbology / src / org / gvsig / remoteClient / sld / layers / ISLDLayer.java @ 20768

History | View | Annotate | Download (3.69 KB)

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.remoteClient.sld.layers;
42

    
43
import java.util.ArrayList;
44

    
45
import org.gvsig.remoteClient.sld.SLDLayerFeatureConstraints;
46
import org.gvsig.remoteClient.sld.filterEncoding.Filter;
47
import org.gvsig.remoteClient.sld.styles.AbstractSLDStyle;
48
import org.gvsig.remoteClient.sld.symbolizers.ISLDSymbolizer;
49
/**
50
 * Interface that has to be implemented by all the sld Layers 
51
 *
52
 * @see http://portal.opengeospatial.org/files/?artifact_id=1188
53
 * @author Pepe Vidal Salvador - jose.vidal.salvador@iver.es
54
 */
55

    
56
public interface ISLDLayer {
57

    
58
        /**
59
         * Obtains all the symbolizers for the specific shapeType which are contained in
60
         * a layer
61
         * 
62
         * @param shapeType
63
         * @return
64
         */
65
        public ArrayList<ISLDSymbolizer> getSymbolizersByShapeType(int type);
66
        /**
67
         * Obtains all the filters contained in a layer.
68
         * 
69
         * @return ArrayList of Filters
70
         */
71
        public ArrayList<Filter> getLayerFilters();
72
        /**
73
         * Obtains all the fieldNames contained in a Layer.
74
         *  
75
         * @return String[] with all the fieldNames
76
         */
77
        public String[] getFieldNames();
78
        /**
79
         * Returns true if the layer has rules with filters for symbolizers which has
80
         * the same shapeType as the parameter (the shapeType of the layer).
81
         * Otherwise, false.
82
         * 
83
         * @param shapeType of the layer
84
         */
85
        public boolean layerHasFilterForSymbolizers(int shapeType);
86
        /**
87
         * Returns true if the layer contains filters. Otherwise, false.
88
         * 
89
         * @return
90
         */
91
        public boolean layerHasFilters();
92
        /**
93
         * Returns true if the layer contains symbolizers of an specific shapeType.
94
         * Otherwise, false.
95
         * 
96
         * @param shapeType
97
         * @return
98
         */
99
        public boolean layerHasSymbolizers(int shapeType);
100
        /**
101
         * Returns the name of the layer
102
         * @return
103
         */
104
        public String getName();
105
        /**
106
         * Sets the name of the layer
107
         * 
108
         * @param name
109
         */
110
        public void setName(String name) ;
111
        /**
112
         * Obtains the styles contained in a layer
113
         * @return
114
         */
115
        public ArrayList<AbstractSLDStyle> getLayerStyles() ;
116
        /**
117
         * Sets the styles to be contained in a layer
118
         * @param layerStyles
119
         */
120
        public void setLayerStyles(ArrayList<AbstractSLDStyle> layerStyles);
121
        public ArrayList<SLDLayerFeatureConstraints> getLayerFeatureConstraints() ;
122
        public void setLayerFeatureConstraints(ArrayList<SLDLayerFeatureConstraints> layerFeatureConstraints) ;
123
        public void addLayerFeatureConstraint(SLDLayerFeatureConstraints layerFeatureCons);
124
        public void addLayerStyle(AbstractSLDStyle style);
125
}