|
||||||||||
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 ) |
java.lang.String |
getAbstract()
Deprecated. use getDescription().getAbstract().toString() |
Description |
getDescription()
Description for this style. |
java.lang.String |
getFeatureTypeName()
Deprecated. this method is replaced by a live set featureTypeNames() |
Rule[] |
getRules()
Deprecated. use rules().toArray( new Rule[0] ) |
java.lang.String[] |
getSemanticTypeIdentifiers()
Deprecated. this method is replaced by a live set semanticIdentifiers() |
java.lang.String |
getTitle()
Deprecated. use getDescription.getTitle().toString() |
java.util.List<Rule> |
rules()
Rules govern the appearance of any given feature to be styled by this styler. |
void |
setAbstract(java.lang.String abstractStr)
Deprecated. Please use getDescription().setAbstract( new SimpleInternationalString( abstractStr )) |
void |
setFeatureTypeName(java.lang.String name)
Deprecated. Use featureTypeNames().clear() and featureTypeNames.add( new NameImpl( name )) |
void |
setName(java.lang.String name)
|
void |
setOnlineResource(org.opengis.metadata.citation.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(java.lang.String[] types)
Deprecated. Please use semanticIdentifiers().addAll() |
void |
setTitle(java.lang.String title)
Deprecated. please use getDescription.setTitle( new SimpleInternationalString( title )) |
Methods inherited from interface org.opengis.style.FeatureTypeStyle |
---|
accept, featureTypeNames, getFeatureInstanceIDs, getName, getOnlineResource, semanticTypeIdentifiers |
Method Detail |
---|
void setName(java.lang.String name)
java.lang.String getTitle()
void setTitle(java.lang.String title)
title
- Description getDescription()
getDescription
in interface org.opengis.style.FeatureTypeStyle
java.lang.String getAbstract()
void setAbstract(java.lang.String abstractStr)
abstractStr
- java.lang.String getFeatureTypeName()
void setFeatureTypeName(java.lang.String name)
name
- The TypeName of the features to be styled by this instance.java.lang.String[] getSemanticTypeIdentifiers()
This method will be replaced by a live set semanticIdentifiers() in 2.6.x
void setSemanticTypeIdentifiers(java.lang.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)
java.util.List<Rule> rules()
This is *the* list being used to manage the rules!
rules
in interface org.opengis.style.FeatureTypeStyle
void setOnlineResource(org.opengis.metadata.citation.OnLineResource online)
online
- location external file defining this style, or null if not availablevoid accept(StyleVisitor visitor)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |