Main Page | Packages | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

com.arcle.rmt.j2se.bridge.swimport.SwImportFacade Class Reference

This singleton facade class encapsulates importing of documents from the SuperWaba-based handheld application into the desktop application. More...

List of all members.

Public Member Functions

boolean importFirstClass (Document srcDoc, RQMLDocument dstDoc, PrintWriter log)
 Imports first-class RQML elements from the handheld document into the desktop document.


Static Public Member Functions

synchronized SwImportFacade getInstance ()
 Returns the singleton instance.


Protected Member Functions

synchronized Collection getImporters ()
 Returns the collection of FirstClassImporter objects.

Collection createImporters ()
 Factory method that creates the collection of FirstClassImporter objects.


Private Member Functions

 SwImportFacade ()
 This is a singleton class, call getInstance() instead.


Private Attributes

SoftReference _importers = new SoftReference(null)
 Refers to a Collection object which in turn contains FirstClassImporter objects.


Static Private Attributes

SwImportFacade _instance = null
 The singleton instance.


Detailed Description

This singleton facade class encapsulates importing of documents from the SuperWaba-based handheld application into the desktop application.

Author:
Sasmito Adibowo
Version:
Id
SwImportFacade.java,v 1.4 2003/05/15 19:43:36 adib Exp

Definition at line 80 of file SwImportFacade.java.


Constructor & Destructor Documentation

com.arcle.rmt.j2se.bridge.swimport.SwImportFacade.SwImportFacade  )  [private]
 

This is a singleton class, call getInstance() instead.

Definition at line 84 of file SwImportFacade.java.

Referenced by com.arcle.rmt.j2se.bridge.swimport.SwImportFacade.getInstance().


Member Function Documentation

Collection com.arcle.rmt.j2se.bridge.swimport.SwImportFacade.createImporters  )  [protected]
 

Factory method that creates the collection of FirstClassImporter objects.

As this Collection is maintained as a SoftReference, this method may be called more than once to reconstruct the Collection should it be reclaimed by the garbage collector.

Returns:
a Collection which contains:
  • RequirementImport
  • StakeholderImport
  • AssumptionImport
  • IssueImport
  • LexiconImport
  • ContextImpot
  • TaxonomyImport
  • ProjectImpot
  • UsecaseImport
See also:
Collection

SoftReference

Definition at line 166 of file SwImportFacade.java.

Referenced by com.arcle.rmt.j2se.bridge.swimport.SwImportFacade.getImporters().

synchronized Collection com.arcle.rmt.j2se.bridge.swimport.SwImportFacade.getImporters  )  [protected]
 

Returns the collection of FirstClassImporter objects.

Each of these objects support a certain type of RQML first-class element. Therefore, they are used to import first-class elements of their respective types.

Definition at line 133 of file SwImportFacade.java.

References com.arcle.rmt.j2se.bridge.swimport.SwImportFacade._importers, and com.arcle.rmt.j2se.bridge.swimport.SwImportFacade.createImporters().

Referenced by com.arcle.rmt.j2se.bridge.swimport.SwImportFacade.importFirstClass().

synchronized SwImportFacade com.arcle.rmt.j2se.bridge.swimport.SwImportFacade.getInstance  )  [static]
 

Returns the singleton instance.

Definition at line 121 of file SwImportFacade.java.

References com.arcle.rmt.j2se.bridge.swimport.SwImportFacade._instance, and com.arcle.rmt.j2se.bridge.swimport.SwImportFacade.SwImportFacade().

boolean com.arcle.rmt.j2se.bridge.swimport.SwImportFacade.importFirstClass Document  srcDoc,
RQMLDocument  dstDoc,
PrintWriter  log
 

Imports first-class RQML elements from the handheld document into the desktop document.

This method iterates through an internally-maintained Collection of FirstClassImporter objects, calling each one to give them opportunity to import their supported first-class elements.

Parameters:
srcDoc the source handheld document.
dstDoc the destination desktop document.
log output for import error messages.
Returns:
true when all elements are successfully impoted.

Definition at line 99 of file SwImportFacade.java.

References com.arcle.rmt.j2se.bridge.swimport.SwImportFacade.getImporters(), com.arcle.rmt.xplat.util.Iterator.hasNext(), com.arcle.rmt.j2se.bridge.swimport.FirstClassImporter.importFirstClass(), and com.arcle.rmt.xplat.util.Iterator.next().


Member Data Documentation

SoftReference com.arcle.rmt.j2se.bridge.swimport.SwImportFacade._importers = new SoftReference(null) [private]
 

Refers to a Collection object which in turn contains FirstClassImporter objects.

Definition at line 187 of file SwImportFacade.java.

Referenced by com.arcle.rmt.j2se.bridge.swimport.SwImportFacade.getImporters().

SwImportFacade com.arcle.rmt.j2se.bridge.swimport.SwImportFacade._instance = null [static, private]
 

The singleton instance.

Definition at line 192 of file SwImportFacade.java.

Referenced by com.arcle.rmt.j2se.bridge.swimport.SwImportFacade.getInstance().


The documentation for this class was generated from the following file:
Generated on Fri Jun 18 19:52:41 2004 for Arcle Rambutan by doxygen 1.3.5