|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SLDVisitor
An interface for classes that want to perform operations on a SLD hierarchy. It forms part of a GoF Visitor Pattern implementation.
A call to sld.accept(SLDVisitor) will result in a call to one of the methods in this interface. The responsibility for traversing sub filters is intended to lie with the visitor (this is unusual, but permitted under the Visitor pattern).
A typical use would be to transcribe a sld into a specific format, e.g. XML or SQL. Alternatively it may be to extract specific information from the SLD structure, for example a list of all fills. Finally a a sld visitor is often used (in conjunction with a factory) in the production of a copy; or slightly modified copy of the original sld.
It is common practice for a SLDVisitor to also implement a StyleVisitor and ExpressionVisitor in order to traverse all data structures.
ExpressionVisitor,
StyleVisitor,
StyleFactory| Method Summary | |
|---|---|
Object |
visit(CoverageConstraint constraint,
Object data)
Called when accept is called on a coverage constraint. |
Object |
visit(CoverageExtent extent,
Object data)
Called when accept is called on a coverage extent. |
Object |
visit(Extent extent,
Object data)
Called when accept is called on a feature extent. |
Object |
visit(FeatureTypeConstraint constraint,
Object data)
Called when accept is called on a featrure constraint. |
Object |
visit(InlineFeature inline,
Object data)
Called when accept is called on an InlineFeature. |
Object |
visit(LayerCoverageConstraints constraints,
Object data)
Called when accept is called on a layer coverage constraints. |
Object |
visit(LayerFeatureConstraints constraints,
Object data)
Called when accept is called on a layer feature constraints. |
Object |
visit(NamedLayer layer,
Object data)
Called when accept is called on a named layer. |
Object |
visit(NamedStyle style,
Object data)
Called when accept is called on a named style. |
Object |
visit(RangeAxis axi,
Object data)
Called when accept is called on a range axis. |
Object |
visit(RemoteOWS ows,
Object data)
Called when accept is called on a remoteOWS. |
Object |
visit(SLDLibrary library,
Object data)
Called when accept is called on a SLDLibrary. |
Object |
visit(StyledLayerDescriptor sld,
Object data)
Called when accept is called on a StyledLayerDescriptor. |
Object |
visit(Style style,
Object data)
Called when accept is called on a user style. |
Object |
visit(UserLayer layer,
Object data)
Called when accept is called on a user layer. |
| Method Detail |
|---|
Object visit(StyledLayerDescriptor sld,
Object data)
sld - The style layer descriptor to visit
Object visit(SLDLibrary library,
Object data)
library - The SLD library to visit
Object visit(NamedLayer layer,
Object data)
layer - The named layer to visit
Object visit(UserLayer layer,
Object data)
layer - The user layer to visit
Object visit(NamedStyle style,
Object data)
style - The named style to visit
Object visit(Style style,
Object data)
style - The user style to visit
Object visit(LayerCoverageConstraints constraints,
Object data)
constraints - The layer coverage constraints to visit
Object visit(LayerFeatureConstraints constraints,
Object data)
constraints - The layer feature constraints to visit
Object visit(CoverageConstraint constraint,
Object data)
constraint - The coverage constraint to visit
Object visit(FeatureTypeConstraint constraint,
Object data)
constraint - The feature constraint to visit
Object visit(CoverageExtent extent,
Object data)
extent - The coverage extent to visit
Object visit(Extent extent,
Object data)
extent - The feature extent to visit
Object visit(RangeAxis axi,
Object data)
axi - The range axi to visit
Object visit(RemoteOWS ows,
Object data)
ows - The remoteOWS to visit
Object visit(InlineFeature inline,
Object data)
inline - The InlineFeature to visit
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||