org.ow2.util.plan.bindings.deploymentplan
Class DeploymentHelper

java.lang.Object
  extended by org.ow2.util.plan.bindings.deploymentplan.DeploymentHelper

public class DeploymentHelper
extends Object

Helper class to access properties of the deployment binding class that have element and attribute members.

Author:
Mickaƫl LEDUQUE

Constructor Summary
DeploymentHelper()
           
 
Method Summary
static String getId(Deployment deployment)
          Accesses the Id of the deployment.
static String getRepositoryRef(Deployment deployment)
          Accesses the repository reference of the deployment.
static Integer getStartLevel(Deployment deployment)
          Accesses the startlevel flag of the deployment.
static Boolean isReference(Deployment deployment)
          Accesses the reference flag of the deployment.
static Boolean isReloadable(Deployment deployment)
          Accesses the reloadable flag of the deployment.
static Boolean isStart(Deployment deployment)
          Accesses the start flag of the deployment.
static Boolean isStartTransient(Deployment deployment)
          Accesses the starttransient flag of the deployment.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeploymentHelper

public DeploymentHelper()
Method Detail

getId

public static String getId(Deployment deployment)
                    throws InvalidDeploymentException
Accesses the Id of the deployment.

Parameters:
deployment - the deployment.
Returns:
the Id.
Throws:
InvalidDeploymentException - if both the element and attribute are set.

isReloadable

public static Boolean isReloadable(Deployment deployment)
                            throws InvalidDeploymentException
Accesses the reloadable flag of the deployment.

Parameters:
deployment - the deployment.
Returns:
the reloadable value.
Throws:
InvalidDeploymentException

getRepositoryRef

public static String getRepositoryRef(Deployment deployment)
                               throws InvalidDeploymentException
Accesses the repository reference of the deployment.

Parameters:
deployment - the deployment.
Returns:
the repository reference.
Throws:
InvalidDeploymentException - if both the element and attribute are set.

isStart

public static Boolean isStart(Deployment deployment)
                       throws InvalidDeploymentException
Accesses the start flag of the deployment.

Parameters:
deployment - the deployment.
Returns:
the start value.
Throws:
InvalidDeploymentException - if both the element and attribute are set.

isReference

public static Boolean isReference(Deployment deployment)
                           throws InvalidDeploymentException
Accesses the reference flag of the deployment.

Parameters:
deployment - the deployment.
Returns:
the reference value.
Throws:
InvalidDeploymentException - if both the element and attribute are set.

getStartLevel

public static Integer getStartLevel(Deployment deployment)
                             throws InvalidDeploymentException
Accesses the startlevel flag of the deployment.

Parameters:
deployment - the deployment.
Returns:
the startlevel value.
Throws:
InvalidDeploymentException - if both the element and attribute are set.

isStartTransient

public static Boolean isStartTransient(Deployment deployment)
                                throws InvalidDeploymentException
Accesses the starttransient flag of the deployment.

Parameters:
deployment - the deployment.
Returns:
the starttransient value.
Throws:
InvalidDeploymentException - if both the element and attribute are set.


Copyright © 2007-2012 OW2 Consortium. All Rights Reserved.