Class LayerInfo

java.lang.Object
de.latlon.ets.wms13.core.domain.LayerInfo

public class LayerInfo extends Object
Represents a named layer from a capabilities document.
Author:
Lyn Goltz
  • Constructor Details

    • LayerInfo

      public LayerInfo(String layerName, boolean isQueryable, List<BoundingBox> bboxes, List<Dimension> dimensions, BoundingBox geographicBbox)
      Parameters:
      layerName - name of the layer (wms:Layer/wms:Name), never null or empty
      isQueryable - true if the layer is queryable (wms:Layer/@queryable=1), false if the layer is not queryable (wms:Layer/@queryable=1)
      bboxes - bounding boxes of the layer (wms:Layer/wms:wms:BoundingBox), never null
      dimensions - dimensions of the layer,never null
      geographicBbox - geographic bounding box of the layer, never null
      Throws:
      IllegalArgumentException - if layerName or bboxes is null
  • Method Details

    • getLayerName

      public String getLayerName()
      Returns:
      the name of the layer (wms:Layer/wms:Name), never null
    • isQueryable

      public boolean isQueryable()
      Returns:
      true if the layer is queryable, false otherwise
    • getBboxes

      public List<BoundingBox> getBboxes()
      Returns:
      the bounding boxes of the layer (wms:Layer/wms:wms:BoundingBox), never null
    • getDimensions

      public List<Dimension> getDimensions()
      Returns:
      the dimensions of the layer (wms:Layer/wms:wms:Dimension), never null
    • getGeographicBbox

      public BoundingBox getGeographicBbox()
      Returns:
      the geographic bounding box of the layer, never null
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object