Package wt.ixb.objectset
Class ObjectSetGeneratorTemplate
java.lang.Object
wt.ixb.objectset.ObjectSetHandlerTemplate
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
Supported API: true
Extendable: false
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
Modifier and TypeMethodDescriptionA convenient method to get theWTContainerRefcontext where the export is launched.abstract Enumerationiterate()Iterate the product structure for export.abstract voiditerate(ObjectVisitor visitor) Iterate the product structure for export.booleaniteratePerPage(ObjectVisitor visitor, int pageSize) Iterate the product structure for export.voidsetConfigSpec(ConfigSpec configSpec) SetConfigSpecfor this object set generator.voidsetContainerRef(WTContainerRef containerRef) A convenient method to set theWTContainerRefcontext where the export is launched.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface wt.ixb.objectset.ObjectSetHandler
getAppletClassName, getId, getLocalizedDescription, getLocalizedName, getLocalizedName, getParametersAsString, initialize, setParametersAsString
-
Method Details
-
iterate
Iterate the product structure for export.
Supported API: true- Specified by:
iteratein interfaceObjectSetGenerator- Parameters:
visitor-- Throws:
WTException
-
iterate
Iterate the product structure for export.
Supported API: true- Specified by:
iteratein interfaceObjectSetGenerator- Returns:
- Enumeration
- Throws:
WTException
-
iteratePerPage
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:
iteratePerPagein interfaceObjectSetGenerator- Parameters:
visitor-pageSize-- Returns:
- boolean
- Throws:
WTException
-
setContainerRef
A convenient method to set theWTContainerRefcontext where the export is launched.
Supported API: true- Specified by:
setContainerRefin interfaceObjectSetGenerator- Parameters:
containerRef-
-
getContainerRef
A convenient method to get theWTContainerRefcontext where the export is launched.
Supported API: true- Specified by:
getContainerRefin interfaceObjectSetGenerator- Returns:
- WTContainerRef
-
setConfigSpec
SetConfigSpecfor this object set generator. This is useful for some cases, especially when theConfigSpecis 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:
setConfigSpecin interfaceObjectSetGenerator- Parameters:
configSpec-
-