org.deegree.services.wps.provider.sextante
Class FormatHelper

java.lang.Object
  extended by org.deegree.services.wps.provider.sextante.FormatHelper

public class FormatHelper
extends Object

This class presents static methods to determine the GMLVersion and the GMLSchema.GMLType of the input and output data. Additional the class knows all supported formats of the deegree WPS for SEXTANTE GeoAlgorithms and provides corresponding get methods.

Version:
$Revision: $, $Date: $
Author:
Jens Pabel, last edited by: $Author: pabel $

Constructor Summary
FormatHelper()
           
 
Method Summary
static GMLSchema.GMLType determineGMLType(ComplexInput input)
          Returns the GMLSchema.GMLType of the input data.
static GMLSchema.GMLType determineGMLType(ComplexOutput output)
          Returns the GMLSchema.GMLType of the output data.
static GMLVersion determineGMLVersion(ComplexInput input)
          Returns the GMLVersion of the input data.
static GMLVersion determineGMLVersion(ComplexOutput output)
          Returns the GMLVersion of the output data.
static ComplexFormatType getDefaultInputFormat()
          Returns the ComplexFormatType of the default input schema.
static ComplexFormatType getDefaultOutputFormat()
          Returns the ComplexFormatType of the default output schema.
static LinkedList<ComplexFormatType> getInputFormatsWithoutDefault()
          Returns the ComplexFormatTypes of all input schemas without the default schema.
static LinkedList<ComplexFormatType> getOutputFormatsWithoutDefault()
          Returns the ComplexFormatTypes of all output schemas without the default schema.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FormatHelper

public FormatHelper()
Method Detail

determineGMLVersion

public static GMLVersion determineGMLVersion(ComplexInput input)
Returns the GMLVersion of the input data.

Parameters:
input - ComplexInput, can be created with the ProcessletInputs.
Returns:
The GMLVersion of the input data.

determineGMLVersion

public static GMLVersion determineGMLVersion(ComplexOutput output)
Returns the GMLVersion of the output data.

Parameters:
output - ComplexOutput, can be created with the ProcessletOutputs.
Returns:
GMLVersion of the output data. If this method can't determine the GMLVersion, returns default GMLVersion.

determineGMLType

public static GMLSchema.GMLType determineGMLType(ComplexInput input)
Returns the GMLSchema.GMLType of the input data.

Parameters:
input - ComplexInput, can be created with the ProcessletInputs.
Returns:
The GMLSchema.GMLType of the input data.

determineGMLType

public static GMLSchema.GMLType determineGMLType(ComplexOutput output)
Returns the GMLSchema.GMLType of the output data.

Parameters:
output - - ComplexOutput, can be created with the ProcessletOutputs
Returns:
The GML GMLSchema.GMLType of the output data. If this method can't determine the GMLVersion, returns default GMLVersion.

getDefaultInputFormat

public static ComplexFormatType getDefaultInputFormat()
Returns the ComplexFormatType of the default input schema.

Returns:
The ComplexFormatType of the default input schema

getDefaultOutputFormat

public static ComplexFormatType getDefaultOutputFormat()
Returns the ComplexFormatType of the default output schema.

Returns:
The ComplexFormatType of the default output schema

getInputFormatsWithoutDefault

public static LinkedList<ComplexFormatType> getInputFormatsWithoutDefault()
Returns the ComplexFormatTypes of all input schemas without the default schema.

Returns:
The ComplexFormatType of all input schemas without the default schema.

getOutputFormatsWithoutDefault

public static LinkedList<ComplexFormatType> getOutputFormatsWithoutDefault()
Returns the ComplexFormatTypes of all output schemas without the default schema.

Returns:
The ComplexFormatType of all output schemas without the default schema.


Copyright © 2011. All Rights Reserved.