Package com.luciad.wms.sld.model
Class TLcdSLDLayerFeatureConstraints
java.lang.Object
com.luciad.datamodel.TLcdDataObject
com.luciad.wms.sld.model.TLcdSLDLayerFeatureConstraints
- All Implemented Interfaces:
ILcdDataObject
,ILcdCloneable
,ILcdDeepCloneable
,Cloneable
Represents a LayerFeatureConstraint, which defines what features and feature types are referenced in a layer.
-
Constructor Summary
ConstructorDescriptionCreates a newTLcdSLDLayerFeatureConstraint
instance.TLcdSLDLayerFeatureConstraints
(TLcdDataType aDataType) Creates a newTLcdSLDLayerFeatureConstraint
instance.TLcdSLDLayerFeatureConstraints
(TLcdSLDFeatureTypeConstraint[] aFeatureTypeConstraints) Creates a newTLcdSLDLayerFeatureConstraint
instance with the given feature type constraints. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addFeatureTypeConstraint
(TLcdSLDFeatureTypeConstraint aFeatureTypeConstraint) Adds a feature type constraint to this SLD layer.void
addFeatureTypeContraint
(TLcdSLDFeatureTypeConstraint aFeatureTypeConstraint) Deprecated.Returns the value of the property that maps to theFeatureTypeConstraint
element.getFeatureTypeConstraint
(int aIndex) Returns the feature type constraint of this SLD layer at a given index.int
Returns the number of eature constraints associated with this SLD layer.void
removeFeatureTypeConstraint
(TLcdSLDFeatureTypeConstraint aFeatureTypeConstraint) Removes a feature type constraint from this SLD layer.void
removeFeatureTypeContraint
(TLcdSLDFeatureTypeConstraint aFeatureTypeConstraint) Deprecated.
-
Constructor Details
-
TLcdSLDLayerFeatureConstraints
public TLcdSLDLayerFeatureConstraints()Creates a newTLcdSLDLayerFeatureConstraint
instance. -
TLcdSLDLayerFeatureConstraints
Creates a newTLcdSLDLayerFeatureConstraint
instance with the given feature type constraints.- Parameters:
aFeatureTypeConstraints
- The feature type constraints.
-
TLcdSLDLayerFeatureConstraints
Creates a newTLcdSLDLayerFeatureConstraint
instance.
-
-
Method Details
-
getFeatureTypeConstraintCount
public int getFeatureTypeConstraintCount()Returns the number of eature constraints associated with this SLD layer.- Returns:
- the number of feature type constraints associated with this SLD layer.
-
getFeatureTypeConstraint
public TLcdSLDFeatureTypeConstraint getFeatureTypeConstraint(int aIndex) throws IndexOutOfBoundsException Returns the feature type constraint of this SLD layer at a given index.- Parameters:
aIndex
- the index of the feature type constraint to return.- Returns:
- the feature type constraint of this SLD layer at a given index.
- Throws:
IndexOutOfBoundsException
-
addFeatureTypeContraint
@Deprecated public void addFeatureTypeContraint(TLcdSLDFeatureTypeConstraint aFeatureTypeConstraint) Deprecated. -
removeFeatureTypeContraint
@Deprecated public void removeFeatureTypeContraint(TLcdSLDFeatureTypeConstraint aFeatureTypeConstraint) Deprecated. -
addFeatureTypeConstraint
Adds a feature type constraint to this SLD layer.- Parameters:
aFeatureTypeConstraint
- the feature constraint to be added.
-
removeFeatureTypeConstraint
Removes a feature type constraint from this SLD layer.- Parameters:
aFeatureTypeConstraint
- the feature constraint to be removed.
-
getFeatureTypeConstraint
Returns the value of the property that maps to theFeatureTypeConstraint
element.A FeatureTypeConstraint identifies a specific feature type and supplies fitlering.
- Returns:
- the value of the
FEATURE_TYPE_CONSTRAINT_PROPERTY
property.
-
addFeatureTypeConstraint(TLcdSLDFeatureTypeConstraint)