Class RESTStructuredCoverageIndexSchema
- java.lang.Object
-
- it.geosolutions.geoserver.rest.decoder.RESTStructuredCoverageIndexSchema
-
- All Implemented Interfaces:
java.lang.Iterable<RESTStructuredCoverageIndexSchema.RESTStructuredCoverageIndexAttribute>
public class RESTStructuredCoverageIndexSchema extends java.lang.Object implements java.lang.Iterable<RESTStructuredCoverageIndexSchema.RESTStructuredCoverageIndexAttribute>
This decode turns index format for a GeoServer StructuredGridCoverageReader into something useful, giving access to the definition of the single attributes.This is the XML REST representation:
<Schema> <attributes> <Attribute> <name>the_geom</name> <minOccurs>0</minOccurs> <maxOccurs>1</maxOccurs> <nillable>true</nillable> <binding>com.vividsolutions.jts.geom.Polygon</binding> </Attribute> <Attribute> <name>location</name> <minOccurs>0</minOccurs> <maxOccurs>1</maxOccurs> <nillable>true</nillable> <binding>java.lang.String</binding> </Attribute> <Attribute> <name>imageindex</name> <minOccurs>0</minOccurs> <maxOccurs>1</maxOccurs> <nillable>true</nillable> <binding>java.lang.Integer</binding> </Attribute> <Attribute> <name>time</name> <minOccurs>0</minOccurs> <maxOccurs>1</maxOccurs> <nillable>true</nillable> <binding>java.sql.Timestamp</binding> </Attribute> <Attribute> <name>elevation</name> <minOccurs>0</minOccurs> <maxOccurs>1</maxOccurs> <nillable>true</nillable> <binding>java.lang.Double</binding> </Attribute> <Attribute> <name>fileDate</name> <minOccurs>0</minOccurs> <maxOccurs>1</maxOccurs> <nillable>true</nillable> <binding>java.sql.Timestamp</binding> </Attribute> <Attribute> <name>updated</name> <minOccurs>0</minOccurs> <maxOccurs>1</maxOccurs> <nillable>true</nillable> <binding>java.sql.Timestamp</binding> </Attribute> </attributes> <atom:link xmlns:atom="http://www.w3.org/2005/Atom" rel="alternate" href="http://localhost:8080/geoserver/rest/workspaces/it.geosolutions/coveragestores/polyphemus/coverages/V/index/granules.xml" type="application/xml"/> </Schema>- Version:
- $Id: $
- Author:
- Simone Giannecchini, GeoSolutions SAS
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRESTStructuredCoverageIndexSchema.RESTStructuredCoverageIndexAttributeGeneric granule of the index.
-
Constructor Summary
Constructors Modifier Constructor Description protectedRESTStructuredCoverageIndexSchema(org.jdom.Element schema)Constructor for RESTStructuredCoverageIndexSchema.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RESTStructuredCoverageIndexSchemabuild(java.lang.String response)buildRESTStructuredCoverageIndexSchema.RESTStructuredCoverageIndexAttributeget(int index)getbooleanisEmpty()isEmptyjava.util.Iterator<RESTStructuredCoverageIndexSchema.RESTStructuredCoverageIndexAttribute>iterator()intsize()size
-
-
-
Method Detail
-
build
public static RESTStructuredCoverageIndexSchema build(java.lang.String response)
build
- Parameters:
response- aStringobject.- Returns:
- a
RESTStructuredCoverageIndexSchemaobject.
-
size
public int size()
size
- Returns:
- a int.
-
isEmpty
public boolean isEmpty()
isEmpty
- Returns:
- a boolean.
-
get
public RESTStructuredCoverageIndexSchema.RESTStructuredCoverageIndexAttribute get(int index)
get
- Parameters:
index- a int.- Returns:
- a
RESTStructuredCoverageIndexSchema.RESTStructuredCoverageIndexAttributeobject.
-
iterator
public java.util.Iterator<RESTStructuredCoverageIndexSchema.RESTStructuredCoverageIndexAttribute> iterator()
- Specified by:
iteratorin interfacejava.lang.Iterable<RESTStructuredCoverageIndexSchema.RESTStructuredCoverageIndexAttribute>
-
-