01: /*
02: * GeoTools - OpenSource mapping toolkit
03: * http://geotools.org
04: * (C) 2002-2006, GeoTools Project Managment Committee (PMC)
05: *
06: * This library is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU Lesser General Public
08: * License as published by the Free Software Foundation;
09: * version 2.1 of the License.
10: *
11: * This library 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 GNU
14: * Lesser General Public License for more details.
15: */
16: package org.geotools.styling;
17:
18: import org.geotools.event.GTComponent;
19:
20: /**
21: * LayerFeatureConstraints define what features and feature types are referenced
22: * in a layer.
23: *
24: * <p>
25: * <pre>
26: * <code>
27: * <xsd:element name="LayerFeatureConstraints">
28: * <xsd:annotation>
29: * <xsd:documentation> LayerFeatureConstraints define what
30: * features & feature types are referenced in a
31: * layer. </xsd:documentation>
32: * </xsd:annotation>
33: * <xsd:complexType>
34: * <xsd:sequence>
35: * <xsd:element ref="sld:FeatureTypeConstraint" maxOccurs="unbounded"/>
36: * </xsd:sequence>
37: * </xsd:complexType>
38: * </xsd:element>
39: *
40: * </code>
41: * </pre>
42: * </p>
43: *
44: * @author Justin Deoliveira, The Open Planning Project
45: *
46: * @source $URL: http://svn.geotools.org/geotools/tags/2.4.1/modules/library/api/src/main/java/org/geotools/styling/LayerFeatureConstraints.java $
47: */
48: public interface LayerFeatureConstraints extends GTComponent {
49: /**
50: * @return The feature type constraints.
51: */
52: FeatureTypeConstraint[] getFeatureTypeConstraints();
53:
54: /**
55: * @param constraints The new feature type constraints.
56: */
57: void setFeatureTypeConstraints(FeatureTypeConstraint[] constraints);
58: }
|