wt.step
Class AssemblyExportSelection

java.lang.Object
  extended bywt.step.ExportSelection
      extended bywt.step.AssemblyExportSelection
All Implemented Interfaces:
Serializable

public class AssemblyExportSelection
extends ExportSelection

An export selection based on a number of root parts were the export contains all items in the assembly under those root parts. A ConfigSpec may also be specified to select the assembly.

See Also:
Serialized Form

Field Summary
private  WTPartConfigSpec _iterationsSelector
           
private  Vector _rootParts
           
 
Fields inherited from class wt.step.ExportSelection
 
Constructor Summary
AssemblyExportSelection(WTDocument exportToDocument, String exportSchema, String contentName, String stepFileName, boolean areFilesExported, WTPartConfigSpec iterationsSelector)
          Constructs an assembly export selection
 
Method Summary
 void addRootPart(WTPart part)
           
private  void collectAssemblyPartsAndDocuments(WTPart part, Vector objectCollector)
           
private  void collectAssociatedDocuments(WTPart part, Vector objectCollector)
           
 String getDescription()
           
 WTObject[] getSelectedContent()
          Calculates and returns the collection of objects defined by this selection
 String toString()
           
 
Methods inherited from class wt.step.ExportSelection
areFilesExported, getContentName, getExportHolder, getSchema, getStepFileName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_iterationsSelector

private WTPartConfigSpec _iterationsSelector

_rootParts

private Vector _rootParts
Constructor Detail

AssemblyExportSelection

public AssemblyExportSelection(WTDocument exportToDocument,
                               String exportSchema,
                               String contentName,
                               String stepFileName,
                               boolean areFilesExported,
                               WTPartConfigSpec iterationsSelector)
Constructs an assembly export selection

Parameters:
exportToDocument - the document which will hold the exported Step package.
exportSchema - the name of the Step export Schema to use
contentName - the name of the Step export package content file
stepFileName - the name of the Step file within the export package
areFilesExported - wether the content of files should be included
iterationsSelector - a config spec for selection of iterations whilst traversing the assembly
Method Detail

addRootPart

public void addRootPart(WTPart part)

getDescription

public String getDescription()
Specified by:
getDescription in class ExportSelection
Returns:
A description of the content and constraints on this export selection.

toString

public String toString()

getSelectedContent

public WTObject[] getSelectedContent()
                              throws TransferException
Description copied from class: ExportSelection
Calculates and returns the collection of objects defined by this selection

Specified by:
getSelectedContent in class ExportSelection
Throws:
TransferException

collectAssemblyPartsAndDocuments

private void collectAssemblyPartsAndDocuments(WTPart part,
                                              Vector objectCollector)
                                       throws TransferException
Throws:
TransferException

collectAssociatedDocuments

private void collectAssociatedDocuments(WTPart part,
                                        Vector objectCollector)
                                 throws TransferException
Throws:
TransferException