Class RESTAbstractList<ELEM extends NameLinkElem>
- java.lang.Object
-
- it.geosolutions.geoserver.rest.decoder.RESTAbstractList<ELEM>
-
- All Implemented Interfaces:
java.lang.Iterable<ELEM>
- Direct Known Subclasses:
RESTCoverageList,RESTCoverageStoreList,RESTDataStoreList,RESTFeatureTypeList,RESTLayerGroupList,RESTLayerList,RESTPublishedList,RESTStyleList,RESTWmsList,RESTWmsStoreList
public class RESTAbstractList<ELEM extends NameLinkElem> extends java.lang.Object implements java.lang.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>- Version:
- $Id: $
- Author:
- ETj (etj at geo-solutions.it)
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<org.jdom.Element>elementList
-
Constructor Summary
Constructors Modifier Constructor Description protectedRESTAbstractList(org.jdom.Element list)Constructor for RESTAbstractList.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ELEMcreateElement(org.jdom.Element el)createElementELEMget(int index)getjava.util.List<java.lang.String>getNames()getNamesbooleanisEmpty()isEmptyjava.util.Iterator<ELEM>iterator()iteratorintsize()size
-
-
-
Method Detail
-
size
public int size()
size
- Returns:
- a int.
-
isEmpty
public boolean isEmpty()
isEmpty
- Returns:
- a boolean.
-
get
public ELEM get(int index)
get
- Parameters:
index- a int.- Returns:
- a ELEM object.
-
iterator
public java.util.Iterator<ELEM> iterator()
iterator
- Specified by:
iteratorin interfacejava.lang.Iterable<ELEM extends NameLinkElem>- Returns:
- a
Iteratorobject.
-
getNames
public java.util.List<java.lang.String> getNames()
getNames
- Returns:
- a
Listobject.
-
createElement
protected ELEM createElement(org.jdom.Element el)
createElement
- Parameters:
el- aElementobject.- Returns:
- a ELEM object.
-
-