Class RESTFeatureType
- java.lang.Object
-
- it.geosolutions.geoserver.rest.decoder.RESTResource
-
- it.geosolutions.geoserver.rest.decoder.RESTFeatureType
-
public class RESTFeatureType extends RESTResource
Parse FeatureTypes returned as XML REST objects.This is the XML REST representation:
<featureType> <name>tasmania_cities</name> <nativeName>tasmania_cities</nativeName> <namespace> <name>topp</name> <atom:link xmlns:atom="http://www.w3.org/2005/Atom" rel="alternate" href="http://localhost:8080/geoserver/rest/namespaces/topp.xml" type="application/xml"/> </namespace> <title>Tasmania cities</title> <abstract>Cities in Tasmania (actually, just the capital)</abstract> <keywords> <string>cities</string> <string>Tasmania</string> </keywords> <nativeCRS>GEOGCS["GCS_WGS_1984", DATUM["WGS_1984", SPHEROID["WGS_1984", 6378137.0, 298.257223563]], PRIMEM["Greenwich", 0.0], UNIT["degree", 0.017453292519943295], AXIS["Longitude", EAST], AXIS["Latitude", NORTH]]</nativeCRS> <srs>EPSG:4326</srs> <nativeBoundingBox> <minx>147.2910004483</minx> <maxx>147.2910004483</maxx> <miny>-42.851001816890005</miny> <maxy>-42.851001816890005</maxy> <crs>EPSG:4326</crs> </nativeBoundingBox> <latLonBoundingBox> <minx>145.19754</minx> <maxx>148.27298000000002</maxx> <miny>-43.423512</miny> <maxy>-40.852802</maxy> <crs>EPSG:4326</crs> </latLonBoundingBox> <projectionPolicy>FORCE_DECLARED</projectionPolicy> <enabled>true</enabled> <metadata> <entry key="cacheAgeMax">3600</entry> <entry key="indexingEnabled">false</entry> <entry key="kml.regionateFeatureLimit">10</entry> <entry key="cachingEnabled">true</entry> <entry key="dirName">tasmania_cities</entry> </metadata> <store class="dataStore"> <name>taz_shapes</name> <atom:link xmlns:atom="http://www.w3.org/2005/Atom" rel="alternate" href="http://localhost:8080/geoserver/rest/workspaces/topp/datastores/taz_shapes.xml" type="application/xml"/> </store> <attributes> <attribute> <name>the_geom</name> <minOccurs>0</minOccurs> <maxOccurs>1</maxOccurs> <nillable>false</nillable> </attribute> <attribute> <name>CITY_NAME</name> <minOccurs>0</minOccurs> <maxOccurs>1</maxOccurs> <nillable>false</nillable> </attribute> <attribute> <name>ADMIN_NAME</name> <minOccurs>0</minOccurs> <maxOccurs>1</maxOccurs> <nillable>false</nillable> </attribute> <attribute> <name>CNTRY_NAME</name> <minOccurs>0</minOccurs> <maxOccurs>1</maxOccurs> <nillable>false</nillable> </attribute> <attribute> <name>STATUS</name> <minOccurs>0</minOccurs> <maxOccurs>1</maxOccurs> <nillable>false</nillable> </attribute> <attribute> <name>POP_CLASS</name> <minOccurs>0</minOccurs> <maxOccurs>1</maxOccurs> <nillable>false</nillable> </attribute> </attributes> <maxFeatures>0</maxFeatures> <numDecimals>0</numDecimals> </featureType>- Version:
- $Id: $
- Author:
- etj
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRESTFeatureType.Attribute
-
Field Summary
-
Fields inherited from class it.geosolutions.geoserver.rest.decoder.RESTResource
rootElem
-
-
Constructor Summary
Constructors Constructor Description RESTFeatureType(RESTResource resource)Constructor for RESTFeatureType.RESTFeatureType(org.jdom.Element resource)Constructor for RESTFeatureType.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Iterator<RESTFeatureType.Attribute>attributesIterator()attributesIteratorstatic RESTFeatureTypebuild(java.lang.String response)java.util.List<java.util.Map<FeatureTypeAttribute,java.lang.String>>getAttributeList()getAttributeListjava.lang.Iterable<RESTFeatureType.Attribute>getAttributes()Get the URL to retrieve the featuretype.java.util.List<GSAttributeEncoder>getEncodedAttributeList()getEncodedAttributeList-
Methods inherited from class it.geosolutions.geoserver.rest.decoder.RESTResource
getAbstract, getCRS, getEncodedDimensionsInfoList, getEncodedMetadataLinkInfoList, getKeywords, getLatLonBoundingBox, getMaxX, getMaxY, getMinX, getMinY, getName, getNameSpace, getNativeBoundingBox, getNativeCRS, getNativeName, getStoreName, getStoreType, getStoreUrl, getTitle
-
-
-
-
Constructor Detail
-
RESTFeatureType
public RESTFeatureType(org.jdom.Element resource)
Constructor for RESTFeatureType.
- Parameters:
resource- aElementobject.
-
RESTFeatureType
public RESTFeatureType(RESTResource resource)
Constructor for RESTFeatureType.
- Parameters:
resource- aRESTResourceobject.
-
-
Method Detail
-
build
public static RESTFeatureType build(java.lang.String response)
-
getAttributes
public java.lang.Iterable<RESTFeatureType.Attribute> getAttributes()
Get the URL to retrieve the featuretype.<resource class="featureType"> <name>tasmania_cities</name> <atom:link xmlns:atom="http://www.w3.org/2005/Atom" rel="alternate" href="http://localhost:8080/geoserver/rest/workspaces/topp/datastores/taz_shapes/featuretypes/tasmania_cities.xml" type="application/xml"/> </resource>- Returns:
- a
Iterableobject.
-
attributesIterator
public java.util.Iterator<RESTFeatureType.Attribute> attributesIterator()
attributesIterator
- Returns:
- a
Iteratorobject.
-
getAttributeList
public java.util.List<java.util.Map<FeatureTypeAttribute,java.lang.String>> getAttributeList()
getAttributeList
- Overrides:
getAttributeListin classRESTResource- Returns:
- a
Listobject.
-
getEncodedAttributeList
public java.util.List<GSAttributeEncoder> getEncodedAttributeList()
getEncodedAttributeList
- Overrides:
getEncodedAttributeListin classRESTResource- Returns:
- a
Listobject.
-
-