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:
  • Field Details

    • description

      protected String description
    • keywords

      protected Set<String> keywords
    • publisher

      protected URI publisher
    • schema

      protected URI schema
    • title

      protected String title
  • Constructor Details

    • DefaultServiceInfo

      public DefaultServiceInfo()
    • DefaultServiceInfo

      public DefaultServiceInfo(ServiceInfo copy)
  • Method Details

    • 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 interface ServiceInfo
      Returns:
      the description
    • 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 interface ServiceInfo
      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 interface ServiceInfo
      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 interface ServiceInfo
      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 interface ServiceInfo
      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 interface ServiceInfo
      Returns:
      the source
    • setSource

      public void setSource(URI source)
      Parameters:
      source - the source to set
    • toString

      public String toString()
      Overrides:
      toString in class Object