Hilbert II - Version 0.03.01

org.qedeq.kernel.bo.control
Class QedeqBoFactory

java.lang.Object
  extended byorg.qedeq.kernel.bo.control.QedeqBoFactory

public class QedeqBoFactory
extends Object

A factory for creating QedeqBos. LATER mime 20050707: use director pattern or transfer creation methods into BOs or use visitor pattern

Version:
$Revision: 1.25 $

Constructor Summary
protected QedeqBoFactory(String globalContext)
          Constructor.
 
Method Summary
protected  QedeqBo create(Qedeq original)
          Create QedeqBo out of an Qedeq instance.
static QedeqBo createQedeq(String globalContext, Qedeq original)
          Create QedeqBo out of an Qedeq instance.
protected  ModuleContext getCurrentContext()
          Get current context within original.
protected  QedeqBo getQedeqCreated()
          Get currently created qedeq module.
protected  Qedeq getQedeqOriginal()
          Get original qedeq module.
protected  void setLocationWithinModule(String locationWithinModule)
          Set location information where are we within the orginal module.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QedeqBoFactory

protected QedeqBoFactory(String globalContext)
Constructor.

Parameters:
globalContext - Module location information.
Method Detail

createQedeq

public static QedeqBo createQedeq(String globalContext,
                                  Qedeq original)
                           throws ModuleDataException
Create QedeqBo out of an Qedeq instance. During that procedure some basic checking is done. E.g. the uniqueness of entries is tested. The resulting business object has no references to the original Qedeq instance.

During the creation process the caller must assert that no modifications are made to the Qedeq instance including its referenced objects.

Parameters:
globalContext - Module location information.
original - Basic qedeq module object.
Returns:
Filled qedeq business object. Is equal to the parameter qedeq.
Throws:
ModuleDataException - Invalid data found.

create

protected final QedeqBo create(Qedeq original)
                        throws IllegalModuleDataException
Create QedeqBo out of an Qedeq instance. During that procedure some basic checking is done. E.g. the uniqueness of entries is tested. The resulting business object has no references to the original Qedeq instance.

During the creation process the caller must assert that no modifications are made to the Qedeq instance including its referenced objects.

Parameters:
original - Basic qedeq module object.
Returns:
Filled header business object. Is equal to the parameter header.
Throws:
IllegalModuleDataException - Basic semantic error occurred.

setLocationWithinModule

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

Parameters:
locationWithinModule - Location within module.

getCurrentContext

protected final ModuleContext getCurrentContext()
Get current context within original.

Returns:
Current context.

getQedeqOriginal

protected final Qedeq getQedeqOriginal()
Get original qedeq module.

Returns:
Original qedeq module.

getQedeqCreated

protected final QedeqBo getQedeqCreated()
Get currently created qedeq module.

Returns:
Currently created qedeq module.

Hilbert II - Version 0.03.01

©left GNU General Public Licence
All Rights Reserved.