Package com.luciad.ogc.sld.model
Class TLcdSLDFeatureTypeStyle.Builder<T>
java.lang.Object
com.luciad.ogc.sld.model.TLcdSLDFeatureTypeStyle.Builder<T>
- Enclosing class:
TLcdSLDFeatureTypeStyle
A builder for SLD Feature Type Styles.
- Since:
- 2012.1
-
Method Summary
Modifier and TypeMethodDescriptionaddRule()
Starts a new rule.addRule
(TLcdSLDRule aRule) Adds a rule to the feature type style under construction.Builds the feature type style with the set parameters.description
(TLcdSLDDescription aDescription) Sets thedescription
of the style.descriptionAbstract
(String aAbstract) Sets the abstract of the description of the style.descriptionTitle
(String aTitle) Sets the title of the description of the style.featureTypeName
(String aTypeName) Sets the feature type name of the style.Sets the name of the style.
-
Method Details
-
name
Sets the name of the style.- Parameters:
aName
- A name. Must not benull
- Returns:
- this builder
- See Also:
-
descriptionTitle
Sets the title of the description of the style.
It is not allowed to call this method if you already called
description(TLcdSLDDescription)
.- Parameters:
aTitle
- The title of the description. Must not benull
- Returns:
- this builder.
- See Also:
-
descriptionAbstract
Sets the abstract of the description of the style.
It is not allowed to call this method if you already called
description(TLcdSLDDescription)
.- Parameters:
aAbstract
- The abstract of the description. Must not benull
- Returns:
- this builder.
- See Also:
-
description
Sets the
description
of the style.It is not allowed to call this method if you already called
descriptionTitle(String)
ordescriptionAbstract(String)
.- Parameters:
aDescription
- The description. Must not benull
- Returns:
- this builder.
- See Also:
-
featureTypeName
Sets the feature type name of the style. This type name overrides the type name of the data type to use this filter. If there is noTLcdDataType
, nor a typeName, than the 'FeatureTypeName' will not be set.- Parameters:
aTypeName
- A valid type name.- Returns:
- this builder
-
addRule
Starts a new rule. Each feature type style should contain at least one rule. When the rule is done, callingTLcdSLDRule.Builder.buildRule()
will return this builder.- Returns:
- a TLcdSLDRule builder.
- See Also:
-
addRule
Adds a rule to the feature type style under construction.- Parameters:
aRule
- The rule. Should not benull
- Returns:
- This builder
- See Also:
-
buildStyle
Builds the feature type style with the set parameters.
This method can only be called once. When you used the builder to build an instance, the builder is no longer valid and should be thrown away.
- Returns:
- the resulting style
-