Interface SLDVisitor


  • 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.

    Since:
    GeoAPI 2.2
    See Also:
    ExpressionVisitor, StyleVisitor, StyleFactory
    • Method Detail

      • visit

        Object visit​(StyledLayerDescriptor sld,
                     Object data)
        Called when accept is called on a StyledLayerDescriptor.
        Parameters:
        sld - The style layer descriptor to visit
      • visit

        Object visit​(SLDLibrary library,
                     Object data)
        Called when accept is called on a SLDLibrary.
        Parameters:
        library - The SLD library to visit
      • visit

        Object visit​(NamedLayer layer,
                     Object data)
        Called when accept is called on a named layer.
        Parameters:
        layer - The named layer to visit
      • visit

        Object visit​(UserLayer layer,
                     Object data)
        Called when accept is called on a user layer.
        Parameters:
        layer - The user layer to visit
      • visit

        Object visit​(NamedStyle style,
                     Object data)
        Called when accept is called on a named style.
        Parameters:
        style - The named style to visit
      • visit

        Object visit​(Style style,
                     Object data)
        Called when accept is called on a user style.
        Parameters:
        style - The user style to visit
      • visit

        Object visit​(LayerCoverageConstraints constraints,
                     Object data)
        Called when accept is called on a layer coverage constraints.
        Parameters:
        constraints - The layer coverage constraints to visit
      • visit

        Object visit​(LayerFeatureConstraints constraints,
                     Object data)
        Called when accept is called on a layer feature constraints.
        Parameters:
        constraints - The layer feature constraints to visit
      • visit

        Object visit​(CoverageConstraint constraint,
                     Object data)
        Called when accept is called on a coverage constraint.
        Parameters:
        constraint - The coverage constraint to visit
      • visit

        Object visit​(FeatureTypeConstraint constraint,
                     Object data)
        Called when accept is called on a featrure constraint.
        Parameters:
        constraint - The feature constraint to visit
      • visit

        Object visit​(CoverageExtent extent,
                     Object data)
        Called when accept is called on a coverage extent.
        Parameters:
        extent - The coverage extent to visit
      • visit

        Object visit​(Extent extent,
                     Object data)
        Called when accept is called on a feature extent.
        Parameters:
        extent - The feature extent to visit
      • visit

        Object visit​(RangeAxis axi,
                     Object data)
        Called when accept is called on a range axis.
        Parameters:
        axi - The range axi to visit
      • visit

        Object visit​(RemoteOWS ows,
                     Object data)
        Called when accept is called on a remoteOWS.
        Parameters:
        ows - The remoteOWS to visit
      • visit

        Object visit​(InlineFeature inline,
                     Object data)
        Called when accept is called on an InlineFeature.
        Parameters:
        inline - The InlineFeature to visit