Package org.geotools.data
Class DefaultResourceInfo
Object
DefaultResourceInfo
- All Implemented Interfaces:
ResourceInfo
- Direct Known Subclasses:
DefaultFileResourceInfo,GDALResourceInfo,ImageMosaicFileResourceInfo
Default implementation of ResourceInfo; a simple java bean.
- Author:
- Jody Garnett
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the bounds of the resource, expressed in the native coordinate reference system.getCRS()Returns the coordinate reference system of this resource if known.Returns a description or abstract for this resource.Returns keywords associated with this resource for use with searches etc.getName()Returns the name of this resource within the context of its service.A namespace, in the form of aURI, used to identify the resource type.getTitle()Returns the resource's title.voidsetBounds(ReferencedEnvelope bounds) voidvoidsetDescription(String description) voidsetKeywords(Set<String> keywords) voidvoidvoid
-
Constructor Details
-
DefaultResourceInfo
public DefaultResourceInfo() -
DefaultResourceInfo
-
-
Method Details
-
getTitle
Description copied from interface:ResourceInfoReturns the resource's title.The title is human readable text representing the resource, in the current locale if available.
- Specified by:
getTitlein interfaceResourceInfo- Returns:
- the title
-
getSchema
Description copied from interface:ResourceInfoA namespace, in the form of aURI, used to identify the resource type.Known Mappings:
- Dublin Code Format element
- WFS DescribeFeatureType URL
- file.toURI()
- XML namespace
- URL
- Specified by:
getSchemain interfaceResourceInfo- Returns:
- the schema
-
getName
Description copied from interface:ResourceInfoReturns the name of this resource within the context of its service.Known mappings:
- WFS typeName
- Database table name
- WMS layer name
- level of a grid coverage
- Specified by:
getNamein interfaceResourceInfo- Returns:
- the name
-
getKeywords
Description copied from interface:ResourceInfoReturns keywords associated with this resource for use with searches etc.Known Mappings:
- Maps to Dublin Core's Subject element
- Specified by:
getKeywordsin interfaceResourceInfo- Returns:
- the keywords
-
getDescription
Description copied from interface:ResourceInfoReturns a description or abstract for this resource.Known Mappings:
- WFS GetCapabilities abstract
- WMS GetCapabilities abstract
- Specified by:
getDescriptionin interfaceResourceInfo- Returns:
- the description
-
getBounds
Description copied from interface:ResourceInfoReturns the bounds of the resource, expressed in the native coordinate reference system. IF the bounds are unknown or undefined callingisNull()on the returned envelope will returntrue.- Specified by:
getBoundsin interfaceResourceInfo- Returns:
- the bounds
-
getCRS
Description copied from interface:ResourceInfoReturns the coordinate reference system of this resource if known.Known Mappings:
- 2nd part of the Dublin Core Coverage
- Shapefile prj file
- WFS SRS
- Specified by:
getCRSin interfaceResourceInfo- Returns:
- the crs
-
setCRS
- Parameters:
crs- the crs to set
-
setTitle
- Parameters:
title- the title to set
-
setSchema
- Parameters:
schema- the schema to set
-
setName
- Parameters:
name- the name to set
-
setKeywords
- Parameters:
keywords- the keywords to set
-
setDescription
- Parameters:
description- the description to set
-
setBounds
- Parameters:
bounds- the bounds to set
-