org.gcube.datatransformation.datatransformationservice
Class StubsToModelUtils

java.lang.Object
  extended by org.gcube.datatransformation.datatransformationservice.StubsToModelUtils

public class StubsToModelUtils
extends Object

Author:
Dimitris Katris, NKUA Helper class that converts stub objects from model objects and the reverse.

Constructor Summary
StubsToModelUtils()
           
 
Method Summary
static org.gcube.datatransformation.datatransformationservice.stubs.ArrayOfContentTypes contentTypeArrayToStub(ArrayList<org.gcube.datatransformation.datatransformationlibrary.model.ContentType> contentTypesList)
          Returns an array of stub ContentType from an ArrayList of model ContentType
static org.gcube.datatransformation.datatransformationlibrary.model.ContentType contentTypeFromStub(org.gcube.datatransformation.datatransformationservice.stubs.ContentType contentType)
          Returns a model ContentType from a stub ContentType
static org.gcube.datatransformation.datatransformationservice.stubs.ContentType contentTypeToStub(org.gcube.datatransformation.datatransformationlibrary.model.ContentType contentType)
          Returns a stub ContentType from a model ContentType.
static org.gcube.datatransformation.datatransformationlibrary.datahandlers.model.Input inputFromStub(org.gcube.datatransformation.datatransformationservice.stubs.Input stubInput)
          Returns model's Input constructed from stubs Input
static org.gcube.datatransformation.datatransformationlibrary.datahandlers.model.Output outputFromStub(org.gcube.datatransformation.datatransformationservice.stubs.Output stubOutput)
          Returns model's Output constructed from stubs Output
static org.gcube.datatransformation.datatransformationlibrary.model.Parameter[] parametersFromStub(org.gcube.datatransformation.datatransformationservice.stubs.Parameter[] parameters)
          Returns an array of Parameter from an array of Parameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StubsToModelUtils

public StubsToModelUtils()
Method Detail

contentTypeFromStub

public static org.gcube.datatransformation.datatransformationlibrary.model.ContentType contentTypeFromStub(org.gcube.datatransformation.datatransformationservice.stubs.ContentType contentType)
                                                                                                    throws Exception
Returns a model ContentType from a stub ContentType

Parameters:
contentType - The stub ContentType
Returns:
The model ContentType
Throws:
Exception - If an error in conversion occurred.

parametersFromStub

public static org.gcube.datatransformation.datatransformationlibrary.model.Parameter[] parametersFromStub(org.gcube.datatransformation.datatransformationservice.stubs.Parameter[] parameters)
Returns an array of Parameter from an array of Parameter

Parameters:
parameters - The array of Parameter
Returns:
The array of Parameter

contentTypeToStub

public static org.gcube.datatransformation.datatransformationservice.stubs.ContentType contentTypeToStub(org.gcube.datatransformation.datatransformationlibrary.model.ContentType contentType)
                                                                                                  throws Exception
Returns a stub ContentType from a model ContentType.

Parameters:
contentType - The model ContentType
Returns:
The stub ContentType
Throws:
Exception - If an error in conversion occurred.

contentTypeArrayToStub

public static org.gcube.datatransformation.datatransformationservice.stubs.ArrayOfContentTypes contentTypeArrayToStub(ArrayList<org.gcube.datatransformation.datatransformationlibrary.model.ContentType> contentTypesList)
Returns an array of stub ContentType from an ArrayList of model ContentType

Parameters:
contentTypesList - The ArrayList of model ContentType
Returns:
The array of ContentTypes

inputFromStub

public static org.gcube.datatransformation.datatransformationlibrary.datahandlers.model.Input inputFromStub(org.gcube.datatransformation.datatransformationservice.stubs.Input stubInput)
Returns model's Input constructed from stubs Input

Parameters:
stubInput -
Returns:

outputFromStub

public static org.gcube.datatransformation.datatransformationlibrary.datahandlers.model.Output outputFromStub(org.gcube.datatransformation.datatransformationservice.stubs.Output stubOutput)
Returns model's Output constructed from stubs Output

Parameters:
stubInput -
Returns:


Copyright © 2012. All Rights Reserved.