Class LegendURLBinding

  • All Implemented Interfaces:
    Binding, ComplexBinding

    public class LegendURLBinding
    extends OnlineResourceTypeBinding
    Binding object for the element http://www.opengis.net/wmts/1.0:LegendURL.

      
      <?xml version="1.0" encoding="UTF-8"?><element name="LegendURL" xmlns="http://www.w3.org/2001/XMLSchema">
                    <annotation>
                            <documentation>
              Zero or more LegendURL elements may be provided, providing an
              image(s) of a legend relevant to each Style of a Layer.  The Format
              element indicates the MIME type of the legend. minScaleDenominator
              and maxScaleDenominator attributes may be provided to indicate to
              the client which scale(s) (inclusive) the legend image is appropriate
              for.  (If provided, these values must exactly match the scale
              denominators of available TileMatrixes.)  width and height
              attributes may be provided to assist client applications in laying
              out space to display the legend.
            </documentation>
                    </annotation>
                    <complexType>
                            <complexContent>
                                    <extension base="ows:OnlineResourceType">
                                            <annotation>
                                                    <documentation>The URL from which the legend image can be retrieved</documentation>
                                            </annotation>
                                            <attribute name="format" type="ows:MimeType">
                                                    <annotation>
                                                            <documentation>A supported output format for the legend image</documentation>
                                                    </annotation>
                                            </attribute>
                                            <attribute name="minScaleDenominator" type="double">
                                                    <annotation>
                                                            <documentation>Denominator of the minimum scale (inclusive) for which this legend image is valid</documentation>
                                                    </annotation>
                                            </attribute>
                                            <attribute name="maxScaleDenominator" type="double">
                                                    <annotation>
                                                            <documentation>Denominator of the maximum scale (exclusive) for which this legend image is valid</documentation>
                                                    </annotation>
                                            </attribute>
                                            <attribute name="width" type="positiveInteger">
                                                    <annotation>
                                                            <documentation>Width (in pixels) of the legend image</documentation>
                                                    </annotation>
                                            </attribute>
                                            <attribute name="height" type="positiveInteger">
                                                    <annotation>
                                                            <documentation>Height (in pixels) of the legend image</documentation>
                                                    </annotation>
                                            </attribute>
                                    </extension>
                                    <!--/attributeGroup-->
                            </complexContent>
                    </complexType>
            </element>
    
       
        
    • Constructor Detail

      • LegendURLBinding

        public LegendURLBinding​(wmtsv_1Factory factory)
    • Method Detail

      • parse

        public Object parse​(ElementInstance instance,
                            Node node,
                            Object value)
                     throws Exception
        Specified by:
        parse in interface ComplexBinding
        Overrides:
        parse in class OnlineResourceTypeBinding
        Parameters:
        instance - The element being parsed.
        node - The node in the parse tree representing the element being parsed.
        value - The result of the parse from another strategy in the type hierarchy. Could be null if this is the first strategy being executed.
        Returns:
        The parsed object, or null if the component could not be parsed.
        Throws:
        Exception - Strategy objects should not attempt to handle any exceptions.