net.refractions.udig.catalog
Class IGeoResourceInfo

java.lang.Object
  extended by net.refractions.udig.catalog.IGeoResourceInfo

public class IGeoResourceInfo
extends java.lang.Object

Represents a bean style metadata accessor for metadata about a geoResource.

The methods within this class must be non-blocking. This class, and sub-classes represent cached versions of the metadata about a particular service.

Much of this interface is based on Dublin Core and the RDF application profile.

Any changes to this content will be communicate by an event by the assocaited GeoResource.

Since:
0.6
Author:
David Zwiers, Refractions Research

Field Summary
protected  ReferencedEnvelope bounds
           
protected  java.lang.String description
           
protected  ImageDescriptor icon
           
protected  java.lang.String[] keywords
           
protected  java.lang.String name
           
protected  java.net.URI schema
           
protected  java.lang.String title
           
 
Constructor Summary
protected IGeoResourceInfo()
           
  IGeoResourceInfo(java.lang.String title, java.lang.String name, java.lang.String description, java.net.URI schema, Envelope bounds, CoordinateReferenceSystem crs, java.lang.String[] keywords, ImageDescriptor icon)
           
 
Method Summary
 ReferencedEnvelope getBounds()
          Returns the BBox of the resource if one exists, The null envelope otherwise.
 CoordinateReferenceSystem getCRS()
          Returns the CRS of the resource if one exists, null otherwise.
 java.lang.String getDescription()
          Returns the resource's description.
 ImageDescriptor getIcon()
          Base symbology (with out decorators) representing this resource.
 java.lang.String[] getKeywords()
          Returns the keywords assocaited with this resource
 java.lang.String getName()
          Returns the name of the data ...
 java.net.URI getSchema()
          Returns the xml schema namespace for this resource type.
 java.lang.String getTitle()
          Returns the resource's title
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

title

protected java.lang.String title

description

protected java.lang.String description

name

protected java.lang.String name

keywords

protected java.lang.String[] keywords

schema

protected java.net.URI schema

icon

protected ImageDescriptor icon

bounds

protected ReferencedEnvelope bounds
Constructor Detail

IGeoResourceInfo

protected IGeoResourceInfo()

IGeoResourceInfo

public IGeoResourceInfo(java.lang.String title,
                        java.lang.String name,
                        java.lang.String description,
                        java.net.URI schema,
                        Envelope bounds,
                        CoordinateReferenceSystem crs,
                        java.lang.String[] keywords,
                        ImageDescriptor icon)
Method Detail

getTitle

public java.lang.String getTitle()
Returns the resource's title

Returns:
Readble title (in current local)

getKeywords

public java.lang.String[] getKeywords()
Returns the keywords assocaited with this resource

Known Mappings:

Returns:
Keywords for use with search, or null unavailable.

getDescription

public java.lang.String getDescription()
Returns the resource's description.

Known Mappings:

Returns:
description of resource, or null if unavailable

getSchema

public java.net.URI getSchema()
Returns the xml schema namespace for this resource type.

Known Mappings:

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

getName

public java.lang.String getName()
Returns the name of the data ... such as the typeName or LayerName.

Known Mappings:

Returns:
name of the data, used with getSchema() to identify resource

getIcon

public ImageDescriptor getIcon()
Base symbology (with out decorators) representing this resource.

The ImageDescriptor returned should conform the the Eclipse User Interface Guidelines (16x16 image with a 16x15 glyph centered).

This plug-in provides default based on resource type:


  <b>return</b> ISharedImages.getImagesDescriptor( IGeoResoruce );
 

getBounds

public ReferencedEnvelope getBounds()
Returns the BBox of the resource if one exists, The null envelope otherwise.

The bounds are returned in (ie should be reprojected to) Lat Long:

Known Mappings:

Returns:
Lat Long bounding box of the resource

getCRS

public CoordinateReferenceSystem getCRS()
Returns the CRS of the resource if one exists, null otherwise.

Known Mappings:

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