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

com.arcle.rmt.j2se.bridge.swimport.rqml.FirstClassImport Class Reference

Base class for first-class element exporter objects. More...

Inheritance diagram for com.arcle.rmt.j2se.bridge.swimport.rqml.FirstClassImport:

com.arcle.rmt.j2se.bridge.swimport.FirstClassImporter com.arcle.rmt.j2se.bridge.swimport.rqml.AssumptionImport com.arcle.rmt.j2se.bridge.swimport.rqml.ContextImport com.arcle.rmt.j2se.bridge.swimport.rqml.IssueImport com.arcle.rmt.j2se.bridge.swimport.rqml.LexiconImport com.arcle.rmt.j2se.bridge.swimport.rqml.ProjectImport com.arcle.rmt.j2se.bridge.swimport.rqml.RequirementImport com.arcle.rmt.j2se.bridge.swimport.rqml.StakeholderImport com.arcle.rmt.j2se.bridge.swimport.rqml.TaxonomyImport com.arcle.rmt.j2se.bridge.swimport.rqml.UsecaseImport List of all members.

Public Member Functions

boolean importFirstClass (Document srcDoc, RQMLDocument dstDoc)
 Imports first-class elements of the supported type.

String toString ()
 Returns this class' name and the supported RQML first-class element interface name.


Protected Member Functions

boolean copyElement (RQMLFirstClass src, RQMLFirstClass dst)
 Strategy method which copies the attributes of two first-class elements.

abstract Class getSupportedClass ()
 Abstract strategy method that shall return the RQML first-class interface that is supported by this class for exporting.

abstract int getTotalElements (Document doc)
 Abstract strategy method that shall return the total number of supported elements present in the specified handheld document.

abstract RQMLFirstClass getElementAt (int index, Document srcDoc)
 Abstract strategy method that shall return the first-class element at the specified index in the specified handheld document.

abstract RQMLFirstClass createDestinationElement (RQMLDocument doc)
 Abstract strategy method that shall create a first-class RQML element of the supported type.


Detailed Description

Base class for first-class element exporter objects.

Each subclass imports only a specific type of RQML first-class element.

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

Definition at line 73 of file FirstClassImport.java.


Member Function Documentation

boolean com.arcle.rmt.j2se.bridge.swimport.rqml.FirstClassImport.copyElement RQMLFirstClass  src,
RQMLFirstClass  dst
[protected]
 

Strategy method which copies the attributes of two first-class elements.

Parameters:
src the source element.
dst the destination element.
Returns:
true if the copy was performed successfully.

Definition at line 116 of file FirstClassImport.java.

References com.arcle.rmt.j2se.bridge.swimport.rqml.FirstClassImport.getSupportedClass().

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

abstract RQMLFirstClass com.arcle.rmt.j2se.bridge.swimport.rqml.FirstClassImport.createDestinationElement RQMLDocument  doc  )  [protected, pure virtual]
 

Abstract strategy method that shall create a first-class RQML element of the supported type.

Parameters:
doc The desktop document.
Returns:
the newly-created element.

Implemented in com.arcle.rmt.j2se.bridge.swimport.rqml.AssumptionImport, com.arcle.rmt.j2se.bridge.swimport.rqml.ContextImport, com.arcle.rmt.j2se.bridge.swimport.rqml.IssueImport, com.arcle.rmt.j2se.bridge.swimport.rqml.LexiconImport, com.arcle.rmt.j2se.bridge.swimport.rqml.ProjectImport, com.arcle.rmt.j2se.bridge.swimport.rqml.RequirementImport, com.arcle.rmt.j2se.bridge.swimport.rqml.StakeholderImport, com.arcle.rmt.j2se.bridge.swimport.rqml.TaxonomyImport, and com.arcle.rmt.j2se.bridge.swimport.rqml.UsecaseImport.

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

abstract RQMLFirstClass com.arcle.rmt.j2se.bridge.swimport.rqml.FirstClassImport.getElementAt int  index,
Document  srcDoc
[protected, pure virtual]
 

Abstract strategy method that shall return the first-class element at the specified index in the specified handheld document.

Parameters:
index The index of the first-class element.
srcDoc The handheld document.
Returns:
the first-class element at index in srcDoc.

Implemented in com.arcle.rmt.j2se.bridge.swimport.rqml.AssumptionImport, com.arcle.rmt.j2se.bridge.swimport.rqml.ContextImport, com.arcle.rmt.j2se.bridge.swimport.rqml.IssueImport, com.arcle.rmt.j2se.bridge.swimport.rqml.LexiconImport, com.arcle.rmt.j2se.bridge.swimport.rqml.ProjectImport, com.arcle.rmt.j2se.bridge.swimport.rqml.RequirementImport, com.arcle.rmt.j2se.bridge.swimport.rqml.StakeholderImport, com.arcle.rmt.j2se.bridge.swimport.rqml.TaxonomyImport, and com.arcle.rmt.j2se.bridge.swimport.rqml.UsecaseImport.

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

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

Abstract strategy method that shall return the RQML first-class interface that is supported by this class for exporting.

Invariant:
cls.isInterface() == true and cls is a direct sub-interface of RQMLFirstClass, where cls is the returned value.
Returns:
an RQMLFirstClass-directly derived interface.

Implemented in com.arcle.rmt.j2se.bridge.swimport.rqml.AssumptionImport, com.arcle.rmt.j2se.bridge.swimport.rqml.ContextImport, com.arcle.rmt.j2se.bridge.swimport.rqml.IssueImport, com.arcle.rmt.j2se.bridge.swimport.rqml.LexiconImport, com.arcle.rmt.j2se.bridge.swimport.rqml.ProjectImport, com.arcle.rmt.j2se.bridge.swimport.rqml.RequirementImport, com.arcle.rmt.j2se.bridge.swimport.rqml.StakeholderImport, com.arcle.rmt.j2se.bridge.swimport.rqml.TaxonomyImport, and com.arcle.rmt.j2se.bridge.swimport.rqml.UsecaseImport.

Referenced by com.arcle.rmt.j2se.bridge.swimport.rqml.FirstClassImport.copyElement(), and com.arcle.rmt.j2se.bridge.swimport.rqml.FirstClassImport.toString().

abstract int com.arcle.rmt.j2se.bridge.swimport.rqml.FirstClassImport.getTotalElements Document  doc  )  [protected, pure virtual]
 

Abstract strategy method that shall return the total number of supported elements present in the specified handheld document.

Parameters:
doc the handheld document.
Returns:
the number of supported first-class elements present in doc.

Implemented in com.arcle.rmt.j2se.bridge.swimport.rqml.AssumptionImport, com.arcle.rmt.j2se.bridge.swimport.rqml.ContextImport, com.arcle.rmt.j2se.bridge.swimport.rqml.IssueImport, com.arcle.rmt.j2se.bridge.swimport.rqml.LexiconImport, com.arcle.rmt.j2se.bridge.swimport.rqml.ProjectImport, com.arcle.rmt.j2se.bridge.swimport.rqml.RequirementImport, com.arcle.rmt.j2se.bridge.swimport.rqml.StakeholderImport, com.arcle.rmt.j2se.bridge.swimport.rqml.TaxonomyImport, and com.arcle.rmt.j2se.bridge.swimport.rqml.UsecaseImport.

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

boolean com.arcle.rmt.j2se.bridge.swimport.rqml.FirstClassImport.importFirstClass Document  srcDoc,
RQMLDocument  dstDoc
 

Imports first-class elements of the supported type.

This template method relies on derived class' implementation of:

Parameters:
srcDoc The source handheld document.
dstDoc The destination desktop document.
Returns:
when true, all supported elements were sucessfully imported.

Implements com.arcle.rmt.j2se.bridge.swimport.FirstClassImporter.

Definition at line 89 of file FirstClassImport.java.

References com.arcle.rmt.j2se.bridge.swimport.rqml.FirstClassImport.copyElement(), com.arcle.rmt.j2se.bridge.swimport.rqml.FirstClassImport.createDestinationElement(), com.arcle.rmt.j2se.bridge.swimport.rqml.FirstClassImport.getElementAt(), and com.arcle.rmt.j2se.bridge.swimport.rqml.FirstClassImport.getTotalElements().

String com.arcle.rmt.j2se.bridge.swimport.rqml.FirstClassImport.toString  ) 
 

Returns this class' name and the supported RQML first-class element interface name.

Definition at line 104 of file FirstClassImport.java.

References com.arcle.rmt.j2se.bridge.swimport.rqml.FirstClassImport.getSupportedClass().


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