it.geosolutions.geoserver.rest.decoder
Class RESTAbstractList<ELEM extends NameLinkElem>

java.lang.Object
  extended by it.geosolutions.geoserver.rest.decoder.RESTAbstractList<ELEM>
All Implemented Interfaces:
Iterable<ELEM>
Direct Known Subclasses:
RESTCoverageList, RESTCoverageStoreList, RESTDataStoreList, RESTLayerGroupList, RESTLayerList, RESTPublishedList, RESTStyleList

public class RESTAbstractList<ELEM extends NameLinkElem>
extends Object
implements Iterable<ELEM>

Parses list of summary data.

This is the XML REST representation:

  <ELEMENTs>
      <ELEMENT>
        <name>elem1</name>
        <atom:link xmlns:atom="http://www.w3.org/2005/Atom" rel="alternate" href="url1" type="application/xml"/>
      </ELEMENT>
      <ELEMENT>
        <name>elem2</name>
        <atom:link xmlns:atom="http://www.w3.org/2005/Atom" rel="alternate" href="url2" type="application/xml"/>
      </ELEMENT>
</ELEMENTs>

Author:
ETj (etj at geo-solutions.it)

Field Summary
protected  List<org.jdom.Element> elementList
           
 
Constructor Summary
protected RESTAbstractList(org.jdom.Element list)
           
 
Method Summary
protected  ELEM createElement(org.jdom.Element el)
           
 ELEM get(int index)
           
 List<String> getNames()
           
 boolean isEmpty()
           
 Iterator<ELEM> iterator()
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

elementList

protected final List<org.jdom.Element> elementList
Constructor Detail

RESTAbstractList

protected RESTAbstractList(org.jdom.Element list)
Method Detail

size

public int size()

isEmpty

public boolean isEmpty()

get

public ELEM get(int index)

iterator

public Iterator<ELEM> iterator()
Specified by:
iterator in interface Iterable<ELEM extends NameLinkElem>

getNames

public List<String> getNames()

createElement

protected ELEM createElement(org.jdom.Element el)


Copyright © 2007-2013 GeoSolutions. All Rights Reserved.