org.alfresco.repo.module
Class ModuleDetailsImpl.ModuleDependencyImpl

java.lang.Object
  extended by org.alfresco.repo.module.ModuleDetailsImpl.ModuleDependencyImpl
All Implemented Interfaces:
java.io.Serializable, ModuleDependency
Enclosing class:
ModuleDetailsImpl

public static final class ModuleDetailsImpl.ModuleDependencyImpl
extends java.lang.Object
implements ModuleDependency

See Also:
Serialized Form

Method Summary
 java.lang.String getDependencyId()
          Get the ID of the module that this dependency describes.
 java.lang.String getVersionString()
           
 boolean isValidDependency(ModuleDetails moduleDetails)
          Check if a module satisfies the dependency requirements.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getDependencyId

public java.lang.String getDependencyId()
Description copied from interface: ModuleDependency
Get the ID of the module that this dependency describes. The dependency may be upon specific versions or a range of versions. Nevertheless, the module given by the returned ID will be required in one version or another.

Specified by:
getDependencyId in interface ModuleDependency
Returns:
Returns the ID of the module that this depends on

getVersionString

public java.lang.String getVersionString()
Specified by:
getVersionString in interface ModuleDependency
Returns:
Returns a string representation of the versions supported

isValidDependency

public boolean isValidDependency(ModuleDetails moduleDetails)
Description copied from interface: ModuleDependency
Check if a module satisfies the dependency requirements.

Specified by:
isValidDependency in interface ModuleDependency
Parameters:
moduleDetails - the module details of the dependency. This must be the details of the module with the correct ID. This may be null in which case false will always be returned.
Returns:
Returns true if the module satisfies the dependency requirements.


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.