Class RESTLayerGroup


  • public class RESTLayerGroup
    extends java.lang.Object
    Parse LayerGroups returned as XML REST objects.

    This is the XML REST representation:

     
    <layerGroup>
      <name>tasmania</name>
      <layers>
        <layer>
          <name>tasmania_state_boundaries</name>
          <atom:link xmlns:atom="http://www.w3.org/2005/Atom" rel="alternate" href="http://localhost:8080/geoserver/rest/layers/tasmania_state_boundaries.xml" type="application/xml"/>
        </layer>
        <layer>
          <name>tasmania_water_bodies</name>
          <atom:link xmlns:atom="http://www.w3.org/2005/Atom" rel="alternate" href="http://localhost:8080/geoserver/rest/layers/tasmania_water_bodies.xml" type="application/xml"/>
        </layer>
        <layer>
          <name>tasmania_roads</name>
          <atom:link xmlns:atom="http://www.w3.org/2005/Atom" rel="alternate" href="http://localhost:8080/geoserver/rest/layers/tasmania_roads.xml" type="application/xml"/>
        </layer>
        <layer>
          <name>tasmania_cities</name>
          <atom:link xmlns:atom="http://www.w3.org/2005/Atom" rel="alternate" href="http://localhost:8080/geoserver/rest/layers/tasmania_cities.xml" type="application/xml"/>
        </layer>
      </layers>
      <styles>
        <style/>
        <style/>
        <style/>
        <style/>
      </styles>
      <bounds>
        <minx>143.83482400000003</minx>
        <maxx>148.47914100000003</maxx>
        <miny>-43.648056</miny>
        <maxy>-39.573891</maxy>
        <crs>EPSG:4326</crs>
      </bounds>
      <metadata>
        <entry key="rawStyleList"></entry>
      </metadata>
    </layerGroup>
     
    Version:
    $Id: $
    Author:
    etj
    • Constructor Detail

      • RESTLayerGroup

        public RESTLayerGroup​(org.jdom.Element layerElem)

        Constructor for RESTLayerGroup.

        Parameters:
        layerElem - a Element object.
    • Method Detail

      • build

        public static RESTLayerGroup build​(java.lang.String response)

        build

        Parameters:
        response - a String object.
        Returns:
        a RESTLayerGroup object.
      • getName

        public java.lang.String getName()

        getName

        Returns:
        a String object.
      • getWorkspace

        public java.lang.String getWorkspace()

        getWorkspace

        Returns:
        a String object.
      • getMode

        public java.lang.String getMode()

        getMode

        Returns:
        a String object.
      • getTitle

        public java.lang.String getTitle()

        getTitle

        Returns:
        a String object.
      • getAbstract

        public java.lang.String getAbstract()

        getAbstract

        Returns:
        a String object.
      • getRootLayer

        public java.lang.String getRootLayer()

        getRootLayer

        Returns:
        a String object.
      • getCRS

        public java.lang.String getCRS()

        getCRS

        Returns:
        a String object.
      • getBound

        protected double getBound​(java.lang.String edge)

        getBound

        Parameters:
        edge - a String object.
        Returns:
        a double.
      • getMinX

        public double getMinX()

        getMinX

        Returns:
        a double.
      • getMaxX

        public double getMaxX()

        getMaxX

        Returns:
        a double.
      • getMinY

        public double getMinY()

        getMinY

        Returns:
        a double.
      • getMaxY

        public double getMaxY()

        getMaxY

        Returns:
        a double.