org.gcube.common.vremanagement.deployer.impl.resources
Class Converter

java.lang.Object
  extended by org.gcube.common.vremanagement.deployer.impl.resources.Converter

public final class Converter
extends Object

Helper to convert from some internal objects to their WSDL representation

Author:
Manuele Simi (ISTI-CNR)

Constructor Summary
Converter()
           
 
Method Summary
static BasePackage toBasePackage(org.gcube.common.vremanagement.deployer.stubs.common.PackageInfo source)
          Converts a PackageInfo into a BasePackage
static org.gcube.common.vremanagement.deployer.stubs.deployer.DeployedPackage toDeployablePackage(BaseTypedPackage source)
          Converts a DeployablePackage into a DeployedPackage
static org.gcube.common.core.resources.GCUBEHostingNode.Package toGHNPackage(BasePackage source)
          Converts a DeployablePackage into a GCUBEHostingNode.Package
static org.gcube.common.vremanagement.deployer.stubs.common.PackageInfo toPackageInfo(BasePackage source)
          Converts a BasePackage into a PackageInfo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Converter

public Converter()
Method Detail

toDeployablePackage

public static org.gcube.common.vremanagement.deployer.stubs.deployer.DeployedPackage toDeployablePackage(BaseTypedPackage source)
Converts a DeployablePackage into a DeployedPackage

Parameters:
source - the object to convert
Returns:
the converted object

toGHNPackage

public static org.gcube.common.core.resources.GCUBEHostingNode.Package toGHNPackage(BasePackage source)
Converts a DeployablePackage into a GCUBEHostingNode.Package

Parameters:
source - the object to convert
Returns:
the converted object

toPackageInfo

public static org.gcube.common.vremanagement.deployer.stubs.common.PackageInfo toPackageInfo(BasePackage source)
Converts a BasePackage into a PackageInfo

Parameters:
source - the object to convert
Returns:
the converted object

toBasePackage

public static BasePackage toBasePackage(org.gcube.common.vremanagement.deployer.stubs.common.PackageInfo source)
Converts a PackageInfo into a BasePackage

Parameters:
source - the object to convert
Returns:
the converted object


Copyright © 2013. All Rights Reserved.