org.systinet.wasp.dd
Interface Dependency

All Superinterfaces:
DeploymentPart, DocumentablePart

public interface Dependency
extends DocumentablePart

This class represents dependency between deployment descriptors, the dd containing a dependency imports from a dd which this dependency points to.

Since:
4.0
Component:
Core

Method Summary
 Endpoint getLocation()
          Returns the location of the depends-on document.
 DeploymentDescriptor getReferredDeploymentDescriptor()
          Returns the depends-on deployment descriptor.
 QName getReferredName()
          Returns the referred name (ref attribute).
 Version getRequiredVersion()
          Returns required version of the deployment descriptor.
 void setLocation(Endpoint location)
          Sets the locaton of the depends-on deployment descriptor.
 Version setRequiredVersion(java.lang.String requiredVersion)
          Sets the required version of the deployment descriptor.
 
Methods inherited from interface org.systinet.wasp.dd.DocumentablePart
getDocumentation, setDocumentation
 
Methods inherited from interface org.systinet.wasp.dd.DeploymentPart
getDeploymentDescriptor
 

Method Detail

getReferredDeploymentDescriptor

public DeploymentDescriptor getReferredDeploymentDescriptor()
Returns the depends-on deployment descriptor. This function returns null if the deployment descriptor can not be found.

Returns:
the depends-on deployment descriptor

getReferredName

public QName getReferredName()
Returns the referred name (ref attribute).

Returns:
the referred name

getRequiredVersion

public Version getRequiredVersion()
Returns required version of the deployment descriptor.

Returns:
the required version of the deployment descriptor

setRequiredVersion

public Version setRequiredVersion(java.lang.String requiredVersion)
Sets the required version of the deployment descriptor.

Parameters:
requiredVersion - the required version of the deployment descriptor.
Returns:
newly created Version object

getLocation

public Endpoint getLocation()
Returns the location of the depends-on document.

Returns:
the location of the dependent deployment descriptor

setLocation

public void setLocation(Endpoint location)
Sets the locaton of the depends-on deployment descriptor.

Parameters:
location - the location of the dd