org.n52.oxf.ows.capabilities
Class ServiceIdentification

java.lang.Object
  extended by org.n52.oxf.ows.capabilities.Description
      extended by org.n52.oxf.ows.capabilities.ServiceIdentification

public class ServiceIdentification
extends Description

ServiceIdentification describes the specific service.

Author:
Theodor Foerster , Arne Broering

Constructor Summary
ServiceIdentification(String title, String serviceType, String[] serviceTypeVersion)
          Constructor which has got the 'required' attributes for the ServiceIdentification-Section as its parameters.
ServiceIdentification(String title, String serviceType, String[] serviceTypeVersion, String fees, String[] accessConstraints, String abstractDescription, String[] keywords)
          his constructor has all attributes of the class as its parameters.
 
Method Summary
 String[] getAccessConstraints()
           
 String getFees()
           
 String getServiceType()
           
 String[] getServiceTypeVersion()
           
protected  void setAccessConstraints(String[] constraints)
           
protected  void setFees(String fees)
          sets the fees for this service.
protected  void setServiceType(String serviceType)
           
protected  void setServiceTypeVersion(String[] version)
          sets the version for this service
 String toXML()
           
 
Methods inherited from class org.n52.oxf.ows.capabilities.Description
getAbstractDescription, getKeywords, getTitle, setAbstractDescription, setKeywords, setTitle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceIdentification

public ServiceIdentification(String title,
                             String serviceType,
                             String[] serviceTypeVersion)
Constructor which has got the 'required' attributes for the ServiceIdentification-Section as its parameters.
And:
sets the accessConstraints variable on initialization to "NONE" (as specified by OWS COMMON).
sets the fees variable on initialization to "NONE" (as specified by OWS COMMON).

Parameters:
title - the title of the service.
serviceType - service type name normally used for machine-to-machine communication.
serviceTypeVersion - version(s) of the service type supported by the server.
Throws:
OXFException - if parameters are not correct.

ServiceIdentification

public ServiceIdentification(String title,
                             String serviceType,
                             String[] serviceTypeVersion,
                             String fees,
                             String[] accessConstraints,
                             String abstractDescription,
                             String[] keywords)
his constructor has all attributes of the class as its parameters.

Parameters:
title -
serviceType -
serviceTypeVersion -
fees -
accessConstraints -
abstractDescription -
keywords -
Throws:
OXFException
Method Detail

toXML

public String toXML()
Returns:
a XML representation of this ServiceIdentification-section.

getAccessConstraints

public String[] getAccessConstraints()
Returns:
Returns the accessConstraints.

getFees

public String getFees()
Returns:
Returns the fees.

getServiceTypeVersion

public String[] getServiceTypeVersion()
Returns:
Returns the serviceTypeVersion.

setServiceTypeVersion

protected void setServiceTypeVersion(String[] version)
                              throws IllegalArgumentException
sets the version for this service

Parameters:
version -
Throws:
IllegalArgumentException - if version.length == 0 or version[0].equals("").

setFees

protected void setFees(String fees)
sets the fees for this service.

Parameters:
fees -

setAccessConstraints

protected void setAccessConstraints(String[] constraints)
Parameters:
constraints - zero or more (optional) accessConstraints are possible

getServiceType

public String getServiceType()
Returns:
Returns the serviceType.

setServiceType

protected void setServiceType(String serviceType)
                       throws IllegalArgumentException
Parameters:
serviceType - The serviceType to set.
Throws:
IllegalArgumentException - if serviceType == null or serviceType.equals("").


Copyright © 2012-2013 52north.org. All Rights Reserved.