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

com.arcle.rmt.j2se.bridge.swexport.rqml.FirstClassExport Class Reference

Base class for RQML first-class element exporters. More...

Inheritance diagram for com.arcle.rmt.j2se.bridge.swexport.rqml.FirstClassExport:

com.arcle.rmt.j2se.bridge.swexport.FirstClassExporter com.arcle.rmt.j2se.bridge.swexport.rqml.AssumptionExport com.arcle.rmt.j2se.bridge.swexport.rqml.ContextExport com.arcle.rmt.j2se.bridge.swexport.rqml.IssueExport com.arcle.rmt.j2se.bridge.swexport.rqml.LexiconExport com.arcle.rmt.j2se.bridge.swexport.rqml.ProjectExport com.arcle.rmt.j2se.bridge.swexport.rqml.RequirementExport com.arcle.rmt.j2se.bridge.swexport.rqml.StakeholderExport com.arcle.rmt.j2se.bridge.swexport.rqml.TaxonomyExport com.arcle.rmt.j2se.bridge.swexport.rqml.UsecaseExport List of all members.

Public Member Functions

boolean export (RQMLFirstClass srcElem, Document dest)
 Exports the first-class RQML element into the handheld document.


Protected Member Functions

boolean acceptsInstance (RQMLFirstClass elem)
 Returns whether this class supports export of the specified RQML first-class element.

boolean doCopyElement (RQMLFirstClass src, RQMLFirstClass dst)
 Copies two RQML first-class elements.

abstract Class getSupportedClass ()
 Abstract strategy method that shall return the interface type of the first-class element supported by this class.

abstract RQMLFirstClass doCreateElement (Document dest)
 Abstract strategy method that shall create a new and empty instance of the supported first-class element type.


Detailed Description

Base class for RQML first-class element exporters.

Author:
Sasmito Adibowo
Version:
Id
FirstClassExport.java,v 1.5 2003/05/15 19:43:35 adib Exp

Definition at line 70 of file FirstClassExport.java.


Member Function Documentation

boolean com.arcle.rmt.j2se.bridge.swexport.rqml.FirstClassExport.acceptsInstance RQMLFirstClass  elem  )  [protected]
 

Returns whether this class supports export of the specified RQML first-class element.

This template method calls getSupportedClass() to determine the actual type that is supported.

Parameters:
elem the first-class element to be imported.
Returns:
true iff this class supports importing of elem.

Definition at line 102 of file FirstClassExport.java.

References com.arcle.rmt.j2se.bridge.swexport.rqml.FirstClassExport.getSupportedClass().

Referenced by com.arcle.rmt.j2se.bridge.swexport.rqml.FirstClassExport.export().

boolean com.arcle.rmt.j2se.bridge.swexport.rqml.FirstClassExport.doCopyElement RQMLFirstClass  src,
RQMLFirstClass  dst
[protected]
 

Copies two RQML first-class elements.

This template method relies on derived class' implementation of getSupportedClass() to select the appropriate first-class copier.

Parameters:
src the source RQML first-class element.
dst the destination first-class element.

Definition at line 114 of file FirstClassExport.java.

References com.arcle.rmt.j2se.bridge.swexport.rqml.FirstClassExport.getSupportedClass().

Referenced by com.arcle.rmt.j2se.bridge.swexport.rqml.FirstClassExport.export().

abstract RQMLFirstClass com.arcle.rmt.j2se.bridge.swexport.rqml.FirstClassExport.doCreateElement Document  dest  )  [protected, pure virtual]
 

Abstract strategy method that shall create a new and empty instance of the supported first-class element type.

The element created must belong to the handheld document.

Parameters:
dest the handheld document where the first-class element belongs.
Returns:
the new first-class instance.
Invariant:
The returned object is an instance of the interface returned by getSupportedClass().

Implemented in com.arcle.rmt.j2se.bridge.swexport.rqml.AssumptionExport, com.arcle.rmt.j2se.bridge.swexport.rqml.ContextExport, com.arcle.rmt.j2se.bridge.swexport.rqml.IssueExport, com.arcle.rmt.j2se.bridge.swexport.rqml.LexiconExport, com.arcle.rmt.j2se.bridge.swexport.rqml.ProjectExport, com.arcle.rmt.j2se.bridge.swexport.rqml.RequirementExport, com.arcle.rmt.j2se.bridge.swexport.rqml.StakeholderExport, com.arcle.rmt.j2se.bridge.swexport.rqml.TaxonomyExport, and com.arcle.rmt.j2se.bridge.swexport.rqml.UsecaseExport.

Referenced by com.arcle.rmt.j2se.bridge.swexport.rqml.FirstClassExport.export().

boolean com.arcle.rmt.j2se.bridge.swexport.rqml.FirstClassExport.export RQMLFirstClass  srcElem,
Document  dest
 

Exports the first-class RQML element into the handheld document.

This template method relies on derived class' implementation of:

Parameters:
srcElem the first-class element to export.
dest the destination handheld document.
Returns:
true if this class accepts the type of srcElem and the export was successful.

Implements com.arcle.rmt.j2se.bridge.swexport.FirstClassExporter.

Definition at line 85 of file FirstClassExport.java.

References com.arcle.rmt.j2se.bridge.swexport.rqml.FirstClassExport.acceptsInstance(), com.arcle.rmt.j2se.bridge.swexport.rqml.FirstClassExport.doCopyElement(), and com.arcle.rmt.j2se.bridge.swexport.rqml.FirstClassExport.doCreateElement().

abstract Class com.arcle.rmt.j2se.bridge.swexport.rqml.FirstClassExport.getSupportedClass  )  [protected, pure virtual]
 

Abstract strategy method that shall return the interface type of the first-class element supported by this class.

Invariant:
The returned Class must be an interface and directly derived from the RQMLFirstClass interface.
Returns:
an interface derived directly from RQMLFirstClass.

Implemented in com.arcle.rmt.j2se.bridge.swexport.rqml.AssumptionExport, com.arcle.rmt.j2se.bridge.swexport.rqml.ContextExport, com.arcle.rmt.j2se.bridge.swexport.rqml.IssueExport, com.arcle.rmt.j2se.bridge.swexport.rqml.LexiconExport, com.arcle.rmt.j2se.bridge.swexport.rqml.ProjectExport, com.arcle.rmt.j2se.bridge.swexport.rqml.RequirementExport, com.arcle.rmt.j2se.bridge.swexport.rqml.StakeholderExport, com.arcle.rmt.j2se.bridge.swexport.rqml.TaxonomyExport, and com.arcle.rmt.j2se.bridge.swexport.rqml.UsecaseExport.

Referenced by com.arcle.rmt.j2se.bridge.swexport.rqml.FirstClassExport.acceptsInstance(), and com.arcle.rmt.j2se.bridge.swexport.rqml.FirstClassExport.doCopyElement().


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