org.geotools.catalog.defaults
Class DefaultServiceInfo

java.lang.Object
  extended byorg.geotools.catalog.defaults.DefaultServiceInfo
All Implemented Interfaces:
ServiceInfo

public class DefaultServiceInfo
extends java.lang.Object
implements ServiceInfo

Implementation of ServiceInfo.

Author:
Justin Deoliveira, The Open Planning Project

Field Summary
protected  java.lang.String _abstract
           
protected  java.lang.String description
           
protected  javax.swing.Icon icon
           
protected  java.lang.String[] keywords
           
protected  java.net.URI publisher
           
protected  java.net.URI schema
           
protected  java.net.URI source
           
protected  java.lang.String title
           
 
Constructor Summary
protected DefaultServiceInfo()
           
  DefaultServiceInfo(java.lang.String title, java.lang.String description, java.lang.String _abstract, java.net.URI source, java.net.URI publisher, java.net.URI schema, java.lang.String[] keywords, javax.swing.Icon icon)
           
 
Method Summary
 java.lang.String getAbstract()
          Return the service abstract
 java.lang.String getDescription()
          Returns the service description
 javax.swing.Icon getIcon()
          Base symbology (with out decorators) representing this IService.
 java.lang.String[] getKeywords()
          Returns the service keywords.
 java.net.URI getPublisher()
          Return the service publisher
 java.net.URI getSchema()
          Returns the xml schema namespace for this service type.
 java.net.URI getSource()
          Returns the service source.
 java.lang.String getTitle()
          Returns the service title, may be empty or null if unsupported.
 
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

_abstract

protected java.lang.String _abstract

schema

protected java.net.URI schema

source

protected java.net.URI source

publisher

protected java.net.URI publisher

keywords

protected java.lang.String[] keywords

icon

protected javax.swing.Icon icon
Constructor Detail

DefaultServiceInfo

protected DefaultServiceInfo()

DefaultServiceInfo

public DefaultServiceInfo(java.lang.String title,
                          java.lang.String description,
                          java.lang.String _abstract,
                          java.net.URI source,
                          java.net.URI publisher,
                          java.net.URI schema,
                          java.lang.String[] keywords,
                          javax.swing.Icon icon)
Method Detail

getTitle

public java.lang.String getTitle()
Returns the service title, may be empty or null if unsupported.

Note this is always metadata, and is in user terms.

Specified by:
getTitle in interface ServiceInfo
Returns:
title, may be empty, null if unsupported.

getKeywords

public java.lang.String[] getKeywords()
Returns the service keywords. Maps to the Dublin Core Subject element.

Specified by:
getKeywords in interface ServiceInfo
Returns:

getDescription

public java.lang.String getDescription()
Returns the service description

Specified by:
getDescription in interface ServiceInfo
Returns:

getAbstract

public java.lang.String getAbstract()
Return the service abstract

Specified by:
getAbstract in interface ServiceInfo
Returns:

getPublisher

public java.net.URI getPublisher()
Return the service publisher

Specified by:
getPublisher in interface ServiceInfo
Returns:

getSchema

public java.net.URI getSchema()
Returns the xml schema namespace for this service type. Maps to the Dublin Code Format element

Specified by:
getSchema in interface ServiceInfo
Returns:

getSource

public java.net.URI getSource()
Returns the service source. Maps to the Dublin Core Server Element

Specified by:
getSource in interface ServiceInfo
Returns:

getIcon

public javax.swing.Icon getIcon()
Base symbology (with out decorators) representing this IService.

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

This plug-in provides default images based on service type:


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


Copyright © GeoTools. All Rights Reserved.