|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FeatureTypeStyle
How to style a feature type. This is introduced as a convenient package that can be used independently for feature types, for example in GML Default Styling. The "layer" concept is discarded inside of this element and all processing is relative to feature types. The FeatureTypeName is allowed to be optional, but only one feature type may be in context and it must match the syntax and semantics of all attribute references inside of the FeatureTypeStyle.
The details of this object are taken from the OGC Styled-Layer Descriptor Report (OGC 02-070) version 1.0.0.:
<xsd:element name="FeatureTypeStyle">
<xsd:annotation>
<xsd:documentation>
A FeatureTypeStyle contains styling information specific to one
feature type. This is the SLD level that separates the 'layer'
handling from the 'feature' handling.
</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="sld:Name" minOccurs="0"/>
<xsd:element ref="sld:Title" minOccurs="0"/>
<xsd:element ref="sld:Abstract" minOccurs="0"/>
<xsd:element ref="sld:FeatureTypeName" minOccurs="0"/>
<xsd:element ref="sld:SemanticTypeIdentifier" minOccurs="0"
maxOccurs="unbounded"/>
<xsd:element ref="sld:Rule" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
Method Summary | |
---|---|
void |
accept(StyleVisitor visitor)
|
void |
addRule(Rule rule)
Deprecated. this method will be replaced by a live list rules().add( rule ) |
String |
getAbstract()
Deprecated. use getDescription.getAbstract().toString() |
Description |
getDescription()
Description for this style. |
String |
getFeatureTypeName()
Deprecated. this method will be replaced by a live set featureTypeNames() in 2.6.x |
String |
getName()
|
Rule[] |
getRules()
Deprecated. use rules().toArray( new Rule[0] ) |
String[] |
getSemanticTypeIdentifiers()
The SemanticTypeIdentifiers is experimental and is intended to be used to identify, using a community-controlled name(s), what the style is suitable to be used for. |
String |
getTitle()
Deprecated. use getDescription.getTitle().toString() |
List<Rule> |
rules()
Rules govern the appearance of any given feature to be styled by this styler. |
void |
setAbstract(String abstractStr)
Deprecated. |
void |
setFeatureTypeName(String name)
Sets the type name of the features that this styler should be applied to. |
void |
setName(String name)
|
void |
setRules(Rule[] rules)
Deprecated. this method will be replaced by a live list rules().clear(); rules.addAll( rules ) |
void |
setSemanticTypeIdentifiers(String[] types)
The SemanticTypeIdentifiers is experimental and is intended to be used to identify, using a community-controlled name(s), what the style is suitable to be used for. |
void |
setTitle(String title)
Deprecated. |
Method Detail |
---|
String getName()
void setName(String name)
@Deprecated String getTitle()
@Deprecated void setTitle(String title)
Description getDescription()
@Deprecated String getAbstract()
@Deprecated void setAbstract(String abstractStr)
@Deprecated String getFeatureTypeName()
void setFeatureTypeName(String name)
name
- The TypeName of the features to be styled by this instance.String[] getSemanticTypeIdentifiers()
This method will be replaced by a live set semanticIdentifiers() in 2.6.x
void setSemanticTypeIdentifiers(String[] types)
types
- An array of strings representing systematic types which
could be styled by this instance.Rule[] getRules()
void setRules(Rule[] rules)
rules
- The set of rules to be set for this styler.void addRule(Rule rule)
List<Rule> rules()
This is *the* list being used to manage the rules!
void accept(StyleVisitor visitor)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |