|
||||||||||
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. Please use rules().add( rule ) |
String |
getAbstract()
Deprecated. use getDescription().getAbstract().toString() |
Description |
getDescription()
Description for this style. |
String |
getFeatureTypeName()
Deprecated. this method is replaced by a live set featureTypeNames() |
Rule[] |
getRules()
Deprecated. use rules().toArray( new Rule[0] ) |
String[] |
getSemanticTypeIdentifiers()
Deprecated. this method is replaced by a live set semanticIdentifiers() |
String |
getTitle()
Deprecated. use getDescription.getTitle().toString() |
Expression |
getTransformation()
The eventual transformation to be applied before rendering the data (should be an expression taking a feature collection or a grid coverage as the evaluation context and returns a feature collection or a grid coverage as an output) |
List<Rule> |
rules()
Rules govern the appearance of any given feature to be styled by this styler. |
void |
setAbstract(String abstractStr)
Deprecated. Please use getDescription().setAbstract( new SimpleInternationalString( abstractStr )) |
void |
setFeatureTypeName(String name)
Deprecated. Use featureTypeNames().clear() and featureTypeNames.add( new NameImpl( name )) |
void |
setName(String name)
|
void |
setOnlineResource(OnLineResource online)
It is common to have a style coming from a external xml file, this method provide a way to get the original source if there is one. |
void |
setRules(Rule[] rules)
Deprecated. Please use rules().clear(); rules.addAll( rules ) |
void |
setSemanticTypeIdentifiers(String[] types)
Deprecated. Please use semanticIdentifiers().addAll() |
void |
setTitle(String title)
Deprecated. please use getDescription.setTitle( new SimpleInternationalString( title )) |
void |
setTransformation(Expression transformation)
Sets the eventual transformation to be applied before rendering the data (should be an expression taking a feature collection or a grid coverage as an input and returns a feature collection or a grid coverage as an output) |
Methods inherited from interface FeatureTypeStyle |
---|
accept, featureTypeNames, getFeatureInstanceIDs, getName, getOnlineResource, semanticTypeIdentifiers |
Method Detail |
---|
void setName(String name)
String getTitle()
void setTitle(String title)
title
- Description getDescription()
getDescription
in interface FeatureTypeStyle
String getAbstract()
void setAbstract(String abstractStr)
abstractStr
- 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!
rules
in interface FeatureTypeStyle
void setOnlineResource(OnLineResource online)
online
- location external file defining this style, or null if not availablevoid accept(StyleVisitor visitor)
Expression getTransformation()
void setTransformation(Expression transformation)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |