org.geotools.data
Class DefaultServiceInfo

java.lang.Object
  extended by org.geotools.data.DefaultServiceInfo
All Implemented Interfaces:
java.io.Serializable, ServiceInfo

public class DefaultServiceInfo
extends java.lang.Object
implements ServiceInfo, java.io.Serializable

Implementation of DefaultServiceInfo as a java bean.

Author:
Jody Garnett (Refractions Research)
See Also:
Serialized Form

Field Summary
protected  java.lang.String description
           
protected  java.util.Set<java.lang.String> keywords
           
protected  java.net.URI publisher
           
protected  java.net.URI schema
           
protected  java.lang.String title
           
 
Constructor Summary
DefaultServiceInfo()
           
DefaultServiceInfo(ServiceInfo copy)
           
 
Method Summary
 java.lang.String getDescription()
          Human readable description of this service.
 java.util.Set<java.lang.String> getKeywords()
          Keywords associated with this service.
 java.net.URI getPublisher()
          Party responsible for providing this service.
 java.net.URI getSchema()
          A URI used to identify the service type.
 java.net.URI getSource()
          Returns the service source.
 java.lang.String getTitle()
          Human readable title representing the service.
 void setDescription(java.lang.String description)
           
 void setKeywords(java.util.Set<java.lang.String> keywords)
           
 void setPublisher(java.net.URI publisher)
           
 void setSchema(java.net.URI schema)
           
 void setSource(java.net.URI source)
           
 void setTitle(java.lang.String title)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

description

protected java.lang.String description

keywords

protected java.util.Set<java.lang.String> keywords

publisher

protected java.net.URI publisher

schema

protected java.net.URI schema

title

protected java.lang.String title
Constructor Detail

DefaultServiceInfo

public DefaultServiceInfo()

DefaultServiceInfo

public DefaultServiceInfo(ServiceInfo copy)
Method Detail

getDescription

public java.lang.String getDescription()
Description copied from interface: ServiceInfo
Human readable description of this service.

This use is understood to be in agreement with "dublin-core", implementors may use either abstract or description as needed.

Specified by:
getDescription in interface ServiceInfo
Returns:
the description

setDescription

public void setDescription(java.lang.String description)
Parameters:
description - the description to set

getKeywords

public java.util.Set<java.lang.String> getKeywords()
Description copied from interface: ServiceInfo
Keywords associated with this service.

Maps to the Dublin Core Subject element.

Specified by:
getKeywords in interface ServiceInfo
Returns:
the keywords

setKeywords

public void setKeywords(java.util.Set<java.lang.String> keywords)
Parameters:
keywords - the keywords to set

getPublisher

public java.net.URI getPublisher()
Description copied from interface: ServiceInfo
Party responsible for providing this service.

Known mappings:

Specified by:
getPublisher in interface ServiceInfo
Returns:
the publisher

setPublisher

public void setPublisher(java.net.URI publisher)
Parameters:
publisher - the publisher to set

getSchema

public java.net.URI getSchema()
Description copied from interface: ServiceInfo
A URI used to identify the service type.

Maps to the Dublin Code Format element.

Specified by:
getSchema in interface ServiceInfo
Returns:
the schema

setSchema

public void setSchema(java.net.URI schema)
Parameters:
schema - the schema to set

getTitle

public java.lang.String getTitle()
Description copied from interface: ServiceInfo
Human readable title representing the service.

The title is used to represent the service in the context of a user interface and should make use of the current Locale if possible.

Specified by:
getTitle in interface ServiceInfo
Returns:
the title

setTitle

public void setTitle(java.lang.String title)
Parameters:
title - the title to set

getSource

public java.net.URI getSource()
Description copied from interface: ServiceInfo
Returns the service source.

Maps to the Dublin Core Server Element.

Specified by:
getSource in interface ServiceInfo
Returns:
the source

setSource

public void setSource(java.net.URI source)
Parameters:
source - the source to set

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 1996-2010 Geotools. All Rights Reserved.