public static class TLcdSLDFeatureTypeStyle.Builder<T> extends Object
Modifier and Type | Method and Description |
---|---|
TLcdSLDRule.Builder<TLcdSLDFeatureTypeStyle.Builder<T>> |
addRule()
Starts a new rule.
|
TLcdSLDFeatureTypeStyle.Builder<T> |
addRule(TLcdSLDRule aRule)
Adds a rule to the feature type style under construction.
|
T |
buildStyle()
Builds the feature type style with the set parameters.
|
TLcdSLDFeatureTypeStyle.Builder<T> |
description(TLcdSLDDescription aDescription)
Sets the
description of the style. |
TLcdSLDFeatureTypeStyle.Builder<T> |
descriptionAbstract(String aAbstract)
Sets the abstract of
the description of the style.
|
TLcdSLDFeatureTypeStyle.Builder<T> |
descriptionTitle(String aTitle)
Sets the title of the
description of
the style.
|
TLcdSLDFeatureTypeStyle.Builder<T> |
featureTypeName(String aTypeName)
Sets the feature type name of the style.
|
TLcdSLDFeatureTypeStyle.Builder<T> |
name(String aName)
Sets the name of the style.
|
public TLcdSLDFeatureTypeStyle.Builder<T> name(String aName)
aName
- A name. Must not be null
ALcdSLDFeatureTypeStyle.getName()
public TLcdSLDFeatureTypeStyle.Builder<T> descriptionTitle(String aTitle)
Sets the title of the description of the style.
It is not allowed to call this method if you already called description(TLcdSLDDescription)
.
aTitle
- The title of the description. Must not be null
descriptionAbstract(String)
,
description(TLcdSLDDescription)
public TLcdSLDFeatureTypeStyle.Builder<T> descriptionAbstract(String aAbstract)
Sets the abstract of the description of the style.
It is not allowed to call this method if you already called description(TLcdSLDDescription)
.
aAbstract
- The abstract of the description. Must not be null
descriptionTitle(String)
,
description(TLcdSLDDescription)
public TLcdSLDFeatureTypeStyle.Builder<T> description(TLcdSLDDescription aDescription)
Sets the description
of the style.
It is not allowed to call this method if you already called descriptionTitle(String)
or descriptionAbstract(String)
.
aDescription
- The description. Must not be null
descriptionTitle(String)
,
descriptionAbstract(String)
public TLcdSLDFeatureTypeStyle.Builder<T> featureTypeName(String aTypeName)
TLcdDataType
, nor a typeName, than the 'FeatureTypeName' will not
be set.aTypeName
- A valid type name.public TLcdSLDRule.Builder<TLcdSLDFeatureTypeStyle.Builder<T>> addRule()
TLcdSLDRule.Builder.buildRule()
will return this builder.addRule()
public TLcdSLDFeatureTypeStyle.Builder<T> addRule(TLcdSLDRule aRule)
aRule
- The rule. Should not be null
addRule()
public T 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.