element of the Capabilities XML
providing general metadata for the service as a whole. It shall include a
Name, Title, and Online Resource URL. Optionally, Abstract, Keyword List,
Contact Information, Fees, and Access Constraints may be provided. The meaning
of most of these elements is defined in [ISO 19115]. The Service Name shall
be "OGC:WMS" in the case of a Web Map Service.
----------------------------------------------------------------------
- Version:
- $Revision: 1.13 $
- Author:
- Katharina Lupp, Markus Schneider
Constructor Summary |
Service_Impl(java.lang.String name,
java.lang.String title,
java.lang.String abstract_,
java.lang.String[] keywords,
java.net.URL onlineResource,
ContactInformation contactInformation,
java.lang.String fees,
java.lang.String accessConstraints)
constructor initializing the class with the OGCWebServiceCapabilities |
Method Summary |
void |
addKeyword(java.lang.String keyword)
adds the keywordList |
java.lang.String |
exportAsXML()
Returns an XML representation of this object. |
java.lang.String |
getAbstract()
The Abstract element allows a descriptive narrative providing more
information about the enclosing object. |
java.lang.String |
getAccessConstraints()
Returns access constraints assigned to the service. |
ContactInformation |
getContactInformation()
Returns informations who to contact for questions about the service. |
java.lang.String |
getFees()
Returns fees assigned to the service. |
java.lang.String[] |
getKeywordList()
A list of keywords or keyword phrases should be included to help catalog
searching. |
java.lang.String |
getName()
returns the name of the service. |
java.net.URL |
getOnlineResource()
The OnlineResource element within the Service element can be used, for
example, to point to the web site of the service provider. |
java.lang.String |
getTitle()
Returns the title of the service. |
void |
setAbstract(java.lang.String abstract_)
Sets the abstract element |
void |
setAccessConstraints(java.lang.String accessConstraints)
Sets access constraints assigned to the service. |
void |
setContactInformation(ContactInformation contactInformation)
Sets informations who to contact for questions about the service. |
void |
setFees(java.lang.String fees)
Sets fees assigned to the service. |
void |
setKeywordList(java.lang.String[] keywordList)
sets the keywordList |
void |
setName(java.lang.String name)
sets the name of the service. |
void |
setOnlineResource(java.net.URL onlineResource)
sets URL prefix for get HTTP request method. |
void |
setTitle(java.lang.String title)
Sets the title of the service. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
keywordList
private java.util.ArrayList keywordList
contactInformation
private ContactInformation contactInformation
abstract_
private java.lang.String abstract_
accessConstraints
private java.lang.String accessConstraints
fees
private java.lang.String fees
name
private java.lang.String name
title
private java.lang.String title
onlineResource
private java.net.URL onlineResource
Service_Impl
public Service_Impl(java.lang.String name,
java.lang.String title,
java.lang.String abstract_,
java.lang.String[] keywords,
java.net.URL onlineResource,
ContactInformation contactInformation,
java.lang.String fees,
java.lang.String accessConstraints)
- constructor initializing the class with the OGCWebServiceCapabilities
getName
public java.lang.String getName()
- returns the name of the service. Typically, the Name is a single word used
for machine-to-machine communication.
- Specified by:
getName
in interface Service
setName
public void setName(java.lang.String name)
- sets the name of the service. Typically, the Name is a single word used
for machine-to-machine communication.
getTitle
public java.lang.String getTitle()
- Returns the title of the service. The Title is for the benefit of humans.
The Service Title is at the discretion of the provider, and should be
brief yet descriptive enough to identify this server in a menu with other
servers.
- Specified by:
getTitle
in interface Service
- See Also:
getName()
setTitle
public void setTitle(java.lang.String title)
- Sets the title of the service. The Title is for the benefit of humans.
The Service Title is at the discretion of the provider, and should be
brief yet descriptive enough to identify this server in a menu with other
servers.
- See Also:
getName()
getAbstract
public java.lang.String getAbstract()
- The Abstract element allows a descriptive narrative providing more
information about the enclosing object.
- Specified by:
getAbstract
in interface Service
setAbstract
public void setAbstract(java.lang.String abstract_)
- Sets the abstract element
getKeywordList
public java.lang.String[] getKeywordList()
- A list of keywords or keyword phrases should be included to help catalog
searching. Currently, no controlled vocabulary has been defined.
- Specified by:
getKeywordList
in interface Service
addKeyword
public void addKeyword(java.lang.String keyword)
- adds the keywordList
setKeywordList
public void setKeywordList(java.lang.String[] keywordList)
- sets the keywordList
getOnlineResource
public java.net.URL getOnlineResource()
- The OnlineResource element within the Service element can be used, for
example, to point to the web site of the service provider. There are other
OnlineResource elements used for the URL prefix of each supported operation.
- Specified by:
getOnlineResource
in interface Service
setOnlineResource
public void setOnlineResource(java.net.URL onlineResource)
- sets URL prefix for get HTTP request method.
getContactInformation
public ContactInformation getContactInformation()
- Returns informations who to contact for questions about the service. This
method returns null if no contact informations are available.
- Specified by:
getContactInformation
in interface Service
setContactInformation
public void setContactInformation(ContactInformation contactInformation)
- Sets informations who to contact for questions about the service. This
method returns null if no contact informations are available.
getFees
public java.lang.String getFees()
- Returns fees assigned to the service. If no fees defined "none" will be
returned.
- Specified by:
getFees
in interface Service
setFees
public void setFees(java.lang.String fees)
- Sets fees assigned to the service. If no fees defined "none" will be
returned.
getAccessConstraints
public java.lang.String getAccessConstraints()
- Returns access constraints assigned to the service. If no access
constraints are defined "none" will be returned.
- Specified by:
getAccessConstraints
in interface Service
setAccessConstraints
public void setAccessConstraints(java.lang.String accessConstraints)
- Sets access constraints assigned to the service. If no access
constraints are defined "none" will be returned.
exportAsXML
public java.lang.String exportAsXML()
- Returns an XML representation of this object.
- Specified by:
exportAsXML
in interface Marshallable
- Returns:
- XML-representation of this object