wt.ixb.objectset
Class ObjectSetGeneratorTemplate

java.lang.Object
  extended by wt.ixb.objectset.ObjectSetHandlerTemplate
      extended by wt.ixb.objectset.ObjectSetGeneratorTemplate
All Implemented Interfaces:
ObjectSetGenerator, ObjectSetHandler
Direct Known Subclasses:
wt.ixb.objectset.handlers.navigator.GeneralNavigator

public abstract class ObjectSetGeneratorTemplate
extends ObjectSetHandlerTemplate
implements ObjectSetGenerator

Class extends ObjectSetGenerator interface with trivial implementations for most methods.- It can be used by application to make application less dependent of future extension of ObjectSetGenerator interface.

Supported API: true

Extendable: false


Method Summary
 WTContainerRef getContainerRef()
          A convenient method to get the WTContainerRef context where the export is launched.
abstract  Enumeration iterate()
          Iterate the product structure for export.
abstract  void iterate(ObjectVisitor visitor)
          Iterate the product structure for export.
 boolean iteratePerPage(ObjectVisitor visitor, int pageSize)
          Iterate the product structure for export.
 void setConfigSpec(ConfigSpec configSpec)
          Set ConfigSpec for this object set generator.
 void setContainerRef(WTContainerRef containerRef)
          A convenient method to set the WTContainerRef context where the export is launched.
 
Methods inherited from class wt.ixb.objectset.ObjectSetHandlerTemplate
getAppletClassName, getId, getLocalizedDescription, getLocalizedName, getLocalizedName, getParametersAsString, initialize, setParametersAsString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface wt.ixb.objectset.ObjectSetHandler
getAppletClassName, getId, getLocalizedDescription, getLocalizedName, getLocalizedName, getParametersAsString, initialize, setParametersAsString
 

Method Detail

iterate

public abstract void iterate(ObjectVisitor visitor)
                      throws WTException
Iterate the product structure for export.

Supported API: true

Specified by:
iterate in interface ObjectSetGenerator
Parameters:
visitor -
Throws:
WTException

iterate

public abstract Enumeration iterate()
                             throws WTException
Iterate the product structure for export.

Supported API: true

Specified by:
iterate in interface ObjectSetGenerator
Returns:
Enumeration
Throws:
WTException

iteratePerPage

public boolean iteratePerPage(ObjectVisitor visitor,
                              int pageSize)
                       throws WTException
Iterate the product structure for export. If the number of objects iterated reaches the limit pageSize, do nothing and return.
This method returns true if the number of objects iterated is less than or equal to pageSize and does not need to iterate furthmore.

Supported API: true

Specified by:
iteratePerPage in interface ObjectSetGenerator
Parameters:
visitor -
pageSize -
Returns:
boolean
Throws:
WTException

setContainerRef

public void setContainerRef(WTContainerRef containerRef)
A convenient method to set the WTContainerRef context where the export is launched.

Supported API: true

Specified by:
setContainerRef in interface ObjectSetGenerator
Parameters:
containerRef -

getContainerRef

public WTContainerRef getContainerRef()
A convenient method to get the WTContainerRef context where the export is launched.

Supported API: true

Specified by:
getContainerRef in interface ObjectSetGenerator
Returns:
WTContainerRef

setConfigSpec

public void setConfigSpec(ConfigSpec configSpec)
Set ConfigSpec for this object set generator. This is useful for some cases, especially when the ConfigSpec is not persisted and passed from client directly. Individual implementations of this interface are recommended to implement this method to satisfy their needs.

Supported API: true

Specified by:
setConfigSpec in interface ObjectSetGenerator
Parameters:
configSpec -