it.geosolutions.geoserver.rest.encoder
Class GSLayerGroupEncoder

java.lang.Object
  extended by it.geosolutions.geoserver.rest.encoder.utils.XmlElement
      extended by it.geosolutions.geoserver.rest.encoder.utils.PropertyXMLEncoder
          extended by it.geosolutions.geoserver.rest.encoder.GSLayerGroupEncoder
Direct Known Subclasses:
GSLayerGroupEncoder23

public class GSLayerGroupEncoder
extends PropertyXMLEncoder

LayerGroup encoder for GeoServer < 2.3

Author:
Davide Savazzi (geo-solutions.it)

Field Summary
protected  org.jdom.Element boundsElem
           
protected  org.jdom.Element nameElem
           
protected  org.jdom.Element publishablesElem
           
protected  org.jdom.Element stylesElem
           
protected  org.jdom.Element workspaceElem
           
 
Constructor Summary
GSLayerGroupEncoder()
           
 
Method Summary
 void addLayer(String layer)
           
 void addLayer(String layer, String styleName)
           
protected  void addToRoot(org.jdom.Element... elements)
           
protected  org.jdom.Element elem(String tag, org.jdom.Element... children)
           
protected  org.jdom.Element elem(String tag, String text)
           
protected  org.jdom.Element elem(String tag, String attributeName, String attributeValue)
           
protected  void initPublishables(String publishablesTag)
           
 void setBounds(String crs, double minx, double maxx, double miny, double maxy)
           
 void setName(String name)
           
 void setWorkspace(String workspace)
           
 String toString()
           
 
Methods inherited from class it.geosolutions.geoserver.rest.encoder.utils.PropertyXMLEncoder
add, get, get, set
 
Methods inherited from class it.geosolutions.geoserver.rest.encoder.utils.XmlElement
add, addContent, getRoot, isEmpty, remove, set
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

nameElem

protected org.jdom.Element nameElem

workspaceElem

protected org.jdom.Element workspaceElem

boundsElem

protected org.jdom.Element boundsElem

publishablesElem

protected org.jdom.Element publishablesElem

stylesElem

protected org.jdom.Element stylesElem
Constructor Detail

GSLayerGroupEncoder

public GSLayerGroupEncoder()
Method Detail

setWorkspace

public void setWorkspace(String workspace)

setName

public void setName(String name)

addLayer

public void addLayer(String layer)

addLayer

public void addLayer(String layer,
                     String styleName)

setBounds

public void setBounds(String crs,
                      double minx,
                      double maxx,
                      double miny,
                      double maxy)

initPublishables

protected void initPublishables(String publishablesTag)

addToRoot

protected void addToRoot(org.jdom.Element... elements)

elem

protected org.jdom.Element elem(String tag,
                                String attributeName,
                                String attributeValue)

elem

protected org.jdom.Element elem(String tag,
                                String text)

elem

protected org.jdom.Element elem(String tag,
                                org.jdom.Element... children)

toString

public String toString()
Overrides:
toString in class XmlElement
Returns:
an xml String


Copyright © 2007-2013 GeoSolutions. All Rights Reserved.