Package org.geotools.data
Class DefaultServiceInfo
- Object
-
- DefaultServiceInfo
-
- All Implemented Interfaces:
Serializable
,ServiceInfo
- Direct Known Subclasses:
DefaultFileServiceInfo
public class DefaultServiceInfo extends Object implements ServiceInfo, Serializable
Implementation of DefaultServiceInfo as a java bean.- Author:
- Jody Garnett (Refractions Research)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DefaultServiceInfo()
DefaultServiceInfo(ServiceInfo copy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDescription()
Human readable description of this service.Set<String>
getKeywords()
Keywords associated with this service.URI
getPublisher()
Party responsible for providing this service.URI
getSchema()
A URI used to identify the service type.URI
getSource()
Returns the service source.String
getTitle()
Human readable title representing the service.void
setDescription(String description)
void
setKeywords(Set<String> keywords)
void
setPublisher(URI publisher)
void
setSchema(URI schema)
void
setSource(URI source)
void
setTitle(String title)
String
toString()
-
-
-
Constructor Detail
-
DefaultServiceInfo
public DefaultServiceInfo()
-
DefaultServiceInfo
public DefaultServiceInfo(ServiceInfo copy)
-
-
Method Detail
-
getDescription
public 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.
- Dublin Core:
A textual description of the content of the resource, including abstracts in the case of document-like objects or content descriptions in the case of visual resources.
When providing actual dublin-core metadata you can gather up all the description information into a single string for searching. - WMS: abstract
- WFS: abstract
- shapefile shp.xml information
- Specified by:
getDescription
in interfaceServiceInfo
- Returns:
- the description
- Dublin Core:
-
setDescription
public void setDescription(String description)
- Parameters:
description
- the description to set
-
getKeywords
public Set<String> getKeywords()
Description copied from interface:ServiceInfo
Keywords associated with this service.Maps to the Dublin Core Subject element.
- Specified by:
getKeywords
in interfaceServiceInfo
- Returns:
- the keywords
-
setKeywords
public void setKeywords(Set<String> keywords)
- Parameters:
keywords
- the keywords to set
-
getPublisher
public URI getPublisher()
Description copied from interface:ServiceInfo
Party responsible for providing this service.Known mappings:
- WMS contact info
- File formats may wish to use the current user, or the last user to modify the file
- Specified by:
getPublisher
in interfaceServiceInfo
- Returns:
- the publisher
-
setPublisher
public void setPublisher(URI publisher)
- Parameters:
publisher
- the publisher to set
-
getSchema
public URI getSchema()
Description copied from interface:ServiceInfo
A URI used to identify the service type.Maps to the Dublin Code Format element.
- Service type for open web services
- File format or extension for on disk files
- XML schema namespace for this service type.
- Specified by:
getSchema
in interfaceServiceInfo
- Returns:
- the schema
-
setSchema
public void setSchema(URI schema)
- Parameters:
schema
- the schema to set
-
getTitle
public 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 interfaceServiceInfo
- Returns:
- the title
-
setTitle
public void setTitle(String title)
- Parameters:
title
- the title to set
-
getSource
public URI getSource()
Description copied from interface:ServiceInfo
Returns the service source.Maps to the Dublin Core Server Element.
- Open web services can use the online resource of their capabilies document
- File formats may wish to use their parent directory
- Specified by:
getSource
in interfaceServiceInfo
- Returns:
- the source
-
setSource
public void setSource(URI source)
- Parameters:
source
- the source to set
-
-