Hilbert II - Version 0.03.04

org.qedeq.kernel.bo.load
Class DefaultModuleProperties

java.lang.Object
  extended byorg.qedeq.kernel.bo.load.DefaultModuleProperties
All Implemented Interfaces:
ModuleProperties

public class DefaultModuleProperties
extends Object
implements ModuleProperties

Represents a module and its states.

Version:
$Revision: 1.1 $

Constructor Summary
DefaultModuleProperties(ModuleAddress address)
          Creates new module properties.
 
Method Summary
 String getAddress()
          Get address of module.
 Exception getException()
          Get exception.
 LoadingState getLoadingState()
          Get module loading state.
 QedeqBo getModule()
          Get module.
 ModuleAddress getModuleAddress()
          Get ModuleAddress of module.
 String getName()
          Get name of module.
 String getRuleVersion()
          Get rule version information.
 String getStateDescription()
          Get module state description.
 URL getUrl()
          Get original URL of module.
 boolean hasFailures()
          Is this a failure state the module is in?
 boolean isLoaded()
          Is this module already loaded?
 void setLoaded(QedeqBo module)
          Set checked and loaded state and module.
 void setLoadingCompleteness(int completeness)
          Set completeness percentage.
 void setLoadingFailureState(LoadingState state, Exception e)
          Set failure module state.
 void setLoadingProgressState(LoadingState state)
          Set loading progress module state.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultModuleProperties

public DefaultModuleProperties(ModuleAddress address)
Creates new module properties.

Parameters:
address - module address
Method Detail

hasFailures

public final boolean hasFailures()
Description copied from interface: ModuleProperties
Is this a failure state the module is in?

Specified by:
hasFailures in interface ModuleProperties
Returns:
were there any errors?

getAddress

public final String getAddress()
Description copied from interface: ModuleProperties
Get address of module.

Specified by:
getAddress in interface ModuleProperties
Returns:
address of module.

getModuleAddress

public final ModuleAddress getModuleAddress()
Description copied from interface: ModuleProperties
Get ModuleAddress of module. Maybe null.

Specified by:
getModuleAddress in interface ModuleProperties
Returns:
address of module.

setLoadingCompleteness

public final void setLoadingCompleteness(int completeness)
Description copied from interface: ModuleProperties
Set completeness percentage.

Specified by:
setLoadingCompleteness in interface ModuleProperties
Parameters:
completeness - Completeness of loading into memory.

setLoadingProgressState

public final void setLoadingProgressState(LoadingState state)
Description copied from interface: ModuleProperties
Set loading progress module state.

Specified by:
setLoadingProgressState in interface ModuleProperties
Parameters:
state - module state

setLoadingFailureState

public final void setLoadingFailureState(LoadingState state,
                                         Exception e)
Description copied from interface: ModuleProperties
Set failure module state.

Specified by:
setLoadingFailureState in interface ModuleProperties
Parameters:
state - module state
e - Exception that occurred during loading.

getLoadingState

public final LoadingState getLoadingState()
Description copied from interface: ModuleProperties
Get module loading state.

Specified by:
getLoadingState in interface ModuleProperties
Returns:
module state.

getException

public final Exception getException()
Description copied from interface: ModuleProperties
Get exception.

Specified by:
getException in interface ModuleProperties
Returns:
exception.

getStateDescription

public final String getStateDescription()
Description copied from interface: ModuleProperties
Get module state description.

Specified by:
getStateDescription in interface ModuleProperties
Returns:
module state description.

getName

public final String getName()
Description copied from interface: ModuleProperties
Get name of module.

Specified by:
getName in interface ModuleProperties
Returns:
module name.

getRuleVersion

public final String getRuleVersion()
Description copied from interface: ModuleProperties
Get rule version information.

Specified by:
getRuleVersion in interface ModuleProperties
Returns:
rule version.

getUrl

public final URL getUrl()
Description copied from interface: ModuleProperties
Get original URL of module.

Specified by:
getUrl in interface ModuleProperties
Returns:
URL of module.

isLoaded

public final boolean isLoaded()
Description copied from interface: ModuleProperties
Is this module already loaded?

Specified by:
isLoaded in interface ModuleProperties
Returns:
Is this module already loaded?

setLoaded

public final void setLoaded(QedeqBo module)
Description copied from interface: ModuleProperties
Set checked and loaded state and module.

Specified by:
setLoaded in interface ModuleProperties
Parameters:
module - checked and loaded module.

getModule

public final QedeqBo getModule()
Description copied from interface: ModuleProperties
Get module. Works only if module is already completely loaded.

Specified by:
getModule in interface ModuleProperties
Returns:
QEDEQ module if it is already loaded.

toString

public final String toString()

Hilbert II - Version 0.03.04

©left GNU General Public Licence
All Rights Reserved.