Package org.geotools.data
Class DefaultResourceInfo
- Object
-
- DefaultResourceInfo
-
- All Implemented Interfaces:
ResourceInfo
- Direct Known Subclasses:
DefaultFileResourceInfo
,GDALResourceInfo
,ImageMosaicFileResourceInfo
public class DefaultResourceInfo extends Object implements ResourceInfo
Default implementation of ResourceInfo; a simple java bean.- Author:
- Jody Garnett
-
-
Constructor Summary
Constructors Constructor Description DefaultResourceInfo()
DefaultResourceInfo(ResourceInfo copy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReferencedEnvelope
getBounds()
Returns the bounds of the resource, expressed in the native coordinate reference system.CoordinateReferenceSystem
getCRS()
Returns the coordinate reference system of this resource if known.String
getDescription()
Returns a description or abstract for this resource.Set<String>
getKeywords()
Returns keywords associated with this resource for use with searches etc.String
getName()
Returns the name of this resource within the context of its service.URI
getSchema()
A namespace, in the form of aURI
, used to identify the resource type.String
getTitle()
Returns the resource's title.void
setBounds(ReferencedEnvelope bounds)
void
setCRS(CoordinateReferenceSystem crs)
void
setDescription(String description)
void
setKeywords(Set<String> keywords)
void
setName(String name)
void
setSchema(URI schema)
void
setTitle(String title)
-
-
-
Constructor Detail
-
DefaultResourceInfo
public DefaultResourceInfo()
-
DefaultResourceInfo
public DefaultResourceInfo(ResourceInfo copy)
-
-
Method Detail
-
getTitle
public String getTitle()
Description copied from interface:ResourceInfo
Returns the resource's title.The title is human readable text representing the resource, in the current locale if available.
- Specified by:
getTitle
in interfaceResourceInfo
- Returns:
- the title
-
getSchema
public URI getSchema()
Description copied from interface:ResourceInfo
A 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:
getSchema
in interfaceResourceInfo
- Returns:
- the schema
-
getName
public String getName()
Description copied from interface:ResourceInfo
Returns 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:
getName
in interfaceResourceInfo
- Returns:
- the name
-
getKeywords
public Set<String> getKeywords()
Description copied from interface:ResourceInfo
Returns keywords associated with this resource for use with searches etc.Known Mappings:
- Maps to Dublin Core's Subject element
- Specified by:
getKeywords
in interfaceResourceInfo
- Returns:
- the keywords
-
getDescription
public String getDescription()
Description copied from interface:ResourceInfo
Returns a description or abstract for this resource.Known Mappings:
- WFS GetCapabilities abstract
- WMS GetCapabilities abstract
- Specified by:
getDescription
in interfaceResourceInfo
- Returns:
- the description
-
getBounds
public ReferencedEnvelope getBounds()
Description copied from interface:ResourceInfo
Returns 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:
getBounds
in interfaceResourceInfo
- Returns:
- the bounds
-
getCRS
public CoordinateReferenceSystem getCRS()
Description copied from interface:ResourceInfo
Returns 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:
getCRS
in interfaceResourceInfo
- Returns:
- the crs
-
setCRS
public void setCRS(CoordinateReferenceSystem crs)
- Parameters:
crs
- the crs to set
-
setTitle
public void setTitle(String title)
- Parameters:
title
- the title to set
-
setSchema
public void setSchema(URI schema)
- Parameters:
schema
- the schema to set
-
setName
public void setName(String name)
- Parameters:
name
- the name to set
-
setKeywords
public void setKeywords(Set<String> keywords)
- Parameters:
keywords
- the keywords to set
-
setDescription
public void setDescription(String description)
- Parameters:
description
- the description to set
-
setBounds
public void setBounds(ReferencedEnvelope bounds)
- Parameters:
bounds
- the bounds to set
-
-