Hilbert II - Version 0.03.04

org.qedeq.kernel.bo.module
Class ModuleContext

java.lang.Object
  extended byorg.qedeq.kernel.bo.module.ModuleContext

public class ModuleContext
extends Object

Define context for an instance of Qedeq. It consists of a location information: where is this module located. Also the location within the Qedeq object should be described in an XPath like manner.

The idea behind this context is a caller perspective. The caller sets the context (at least the module location information) and if the called method throws an exception a try/catch block can retrieve the context information.

Version:
$Revision: 1.2 $

Constructor Summary
ModuleContext(ModuleContext original)
          Copy constructor.
ModuleContext(ModuleContext main, String moduleLocation)
          Constructor.
ModuleContext(String moduleLocation)
          Constructor.
ModuleContext(String moduleLocation, String locationWithinModule)
          Constructor.
 
Method Summary
 String getLocationWithinModule()
          Get location information where are we within the module.
 String getModuleLocation()
          Get location information about module.
 void setLocationWithinModule(String locationWithinModule)
          Set location information where are we within the module.
 void setModuleLocation(String moduleLocation)
          Set location information about module.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ModuleContext

public ModuleContext(String moduleLocation,
                     String locationWithinModule)
Constructor.

Parameters:
moduleLocation - Module location information.
locationWithinModule - Location within module.

ModuleContext

public ModuleContext(String moduleLocation)
Constructor.

Parameters:
moduleLocation - Module location information.

ModuleContext

public ModuleContext(ModuleContext original)
Copy constructor.

Parameters:
original - Original context.

ModuleContext

public ModuleContext(ModuleContext main,
                     String moduleLocation)
Constructor.

Parameters:
main - Main context.
moduleLocation - Module location information.
Method Detail

getModuleLocation

public final String getModuleLocation()
Get location information about module.

Returns:
Module location information.

setModuleLocation

public final void setModuleLocation(String moduleLocation)
Set location information about module.

Parameters:
moduleLocation - Module location information.

getLocationWithinModule

public final String getLocationWithinModule()
Get location information where are we within the module.

Returns:
Location within module.

setLocationWithinModule

public final void setLocationWithinModule(String locationWithinModule)
Set location information where are we within the module.

Parameters:
locationWithinModule - Location within module.

toString

public final String toString()

Hilbert II - Version 0.03.04

©left GNU General Public Licence
All Rights Reserved.