public class TLcdSLDFeatureTypeStyle extends TLcdDataObject
Modifier and Type | Class and Description |
---|---|
static class |
TLcdSLDFeatureTypeStyle.Builder<T>
A builder for SLD Feature Type Styles.
|
Constructor and Description |
---|
TLcdSLDFeatureTypeStyle()
Empty constructor.
|
TLcdSLDFeatureTypeStyle(String aName,
TLcdSLDDescription aDescription,
String aFeatureTypeName,
TLcdSLDRule[] aRules,
String[] aSemanticTypeIdentifiers,
String aVersion)
Constructor for given parameters.
|
TLcdSLDFeatureTypeStyle(TLcdDataType aDataType)
Empty constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addRule(TLcdSLDRule aRule)
Adds a rule.
|
void |
addSemanticTypeIdentifier(String aSemanticTypeIdentifier)
Adds a semantic type identifier.
|
TLcdSLDDescription |
getDescription()
Returns the value of the property that maps to the
Description element. |
String |
getFeatureTypeName()
Returns the feature type name.
|
String |
getName()
Returns the value of the property that maps to the
Name element. |
TLcdSLDRule |
getRule(int aIndex)
Gets the rule at a given position.
|
int |
getRuleCount()
Returns the number of rules.
|
List<String> |
getSemanticTypeIdentifier()
Returns the value of the property that maps to the
SemanticTypeIdentifier element. |
String |
getSemanticTypeIdentifier(int aIndex)
Gets the semantic type identifier at a given position.
|
int |
getSemanticTypeIdentifierCount()
Returns the semantic type identifier count.
|
String |
getVersion()
Returns the value of the property that maps to the
version attribute. |
void |
insertRuleAt(TLcdSLDRule aRule,
int aIndex)
Inserts a rule in the list of rules at the given index.
|
boolean |
isRuleInline(int aIndex)
Returns whether the rule at the given index is given in line in the symbology encoding.
|
static TLcdSLDFeatureTypeStyle.Builder<TLcdSLDFeatureTypeStyle> |
newBuilder()
Creates a new builder with the default values.
|
static TLcdSLDFeatureTypeStyle.Builder<TLcdSLDFeatureTypeStyle> |
newBuilder(TLcdDataType aDataType)
Creates a new builder for the given data type with the default values.
|
void |
removeRule(TLcdSLDRule aRule)
Removes a rule.
|
void |
removeSemanticTypeIdentifier(String aSemanticTypeIdentifier)
Removes a given semantic type identifier.
|
void |
setDescription(TLcdSLDDescription aValue)
Sets the value of the property that maps to the
Description element. |
void |
setFeatureTypeName(String aFeatureTypeName)
Sets the feature type name.
|
void |
setName(String aValue)
Sets the value of the property that maps to the
Name element. |
void |
setVersion(String aValue)
Sets the value of the property that maps to the
version attribute. |
String |
toString()
Returns the description title if it exists.
|
clone, clone, getDataType, getValue, getValue, hasValue, hasValue, setValue, setValue
public TLcdSLDFeatureTypeStyle()
public TLcdSLDFeatureTypeStyle(String aName, TLcdSLDDescription aDescription, String aFeatureTypeName, TLcdSLDRule[] aRules, String[] aSemanticTypeIdentifiers, String aVersion)
aName
- the given name of the style.aDescription
- the given description of the style.aFeatureTypeName
- the given feature type to which the style applies.aRules
- the given rules to be applied.aSemanticTypeIdentifiers
- the given semantic identifiers.aVersion
- the given version of the style.public TLcdSLDFeatureTypeStyle(TLcdDataType aDataType)
public void setFeatureTypeName(String aFeatureTypeName)
aFeatureTypeName
- the feature type name.getFeatureTypeName
public String getFeatureTypeName()
public int getRuleCount()
public TLcdSLDRule getRule(int aIndex)
aIndex
- the index of the given position.public void addRule(TLcdSLDRule aRule)
aRule
- the given rule.public void insertRuleAt(TLcdSLDRule aRule, int aIndex)
aRule
- the rule to insert.aIndex
- the index at which to enter the rule. The index should be less than or equal to the value returned by
getRuleCount()
.public boolean isRuleInline(int aIndex)
TLcdSLDRule
.
This is always the case for SLD 1.0.0.aIndex
- the index of the rule to check.public void removeRule(TLcdSLDRule aRule)
aRule
- the rule to be removed.public void addSemanticTypeIdentifier(String aSemanticTypeIdentifier)
aSemanticTypeIdentifier
- the given semantic type identifier.public void removeSemanticTypeIdentifier(String aSemanticTypeIdentifier)
aSemanticTypeIdentifier
- the semantic type identifier to be removed.public int getSemanticTypeIdentifierCount()
public String getSemanticTypeIdentifier(int aIndex)
aIndex
- the index of the given position.public String toString()
toString
in class TLcdDataObject
public static TLcdSLDFeatureTypeStyle.Builder<TLcdSLDFeatureTypeStyle> newBuilder()
public static TLcdSLDFeatureTypeStyle.Builder<TLcdSLDFeatureTypeStyle> newBuilder(TLcdDataType aDataType)
aDataType
- The feature type for which this style is created. This
type is used to construct XPath expressions.public String getVersion()
version
attribute.
The version identifies the Symbology Encoding number this feature type style corresponds to. Depending on the version some properties may not need to be defined.
VERSION_PROPERTY
property.public void setVersion(String aValue)
version
attribute.
The version identifies the Symbology Encoding number this feature type style corresponds to. Depending on the version some properties may not need to be defined.
aValue
- the value to set for the VERSION_PROPERTY
property.public String getName()
Name
element.NAME_PROPERTY
property.public void setName(String aValue)
Name
element.aValue
- the value to set for the NAME_PROPERTY
property.public TLcdSLDDescription getDescription()
Description
element.
A "Description" gives human-readable descriptive information for the object it is included within.
DESCRIPTION_PROPERTY
property.public void setDescription(TLcdSLDDescription aValue)
Description
element.
A "Description" gives human-readable descriptive information for the object it is included within.
aValue
- the value to set for the DESCRIPTION_PROPERTY
property.public List<String> getSemanticTypeIdentifier()
SemanticTypeIdentifier
element.SEMANTIC_TYPE_IDENTIFIER_PROPERTY
property.