org.geotools.data
Interface ResourceInfo

All Known Implementing Classes:
ArcSdeResourceInfo, DefaultResourceInfo, WebMapServer.LayerInfo

public interface ResourceInfo

This interface defines methods to convey information about some resource such as title, keywords, description and spatial parameters.

It is based on Dublin Core (a metadata specification initiative; http://dublincore.org/) and the RDF application profile.

There are two ids that may be associated with a resource:

Since:
2.5
Author:
Jody Garnett, Refractions Research, David Zwiers, Refractions Research, Justin Deoliveira, The Open Planning Project

Method Summary
 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 a URI, used to identify the resource type.
 String getTitle()
          Returns the resource's title.
 

Method Detail

getTitle

String getTitle()
Returns the resource's title.

The title is human readable text representing the resource, in the current locale if available.

Returns:
tile, in the current locale if available.

getKeywords

Set<String> getKeywords()
Returns keywords associated with this resource for use with searches etc.

Known Mappings:

Returns:
Keywords or null if unavailable

getDescription

String getDescription()
Returns a description or abstract for this resource.

Known Mappings:

The description may be in the current locale if known.

Returns:
description of resource, or null if unavailable

getName

String getName()
Returns the name of this resource within the context of its service.

Known mappings:

The name should be unique within the context of a single Service.

Returns:
name of this resource

getSchema

URI getSchema()
A namespace, in the form of a URI, used to identify the resource type.

Known Mappings:

Returns:
namespace, used with getName() to identify resource type

getBounds

ReferencedEnvelope getBounds()
Returns the bounds of the resource, expressed in the native coordinate reference system. IF the bounds are unknown or undefined calling isNull() on the returned envelope will return true.

Returns:
bounds of the resource if defined; otherwise an envelope where the isNull() returns true

getCRS

CoordinateReferenceSystem getCRS()
Returns the coordinate reference system of this resource if known.

Known Mappings:

Returns:
CRS of the resource, or null if unavailable.


Copyright © 1996-2014 Geotools. All Rights Reserved.