Package wt.ixb.actor
Class ActorTemplate
java.lang.Object
wt.ixb.actor.ActorTemplate
- All Implemented Interfaces:
Actor
- Direct Known Subclasses:
wt.ixb.actor.ActorTemplateForPersistable
General template for
Supported API: true
Extendable: false
wt.ixb.actor.Actor which defines trivial implementation. Supported API: true
Extendable: false
-
Method Summary
Modifier and TypeMethodDescriptionvoidCheck if this action is applicable to the specified object.voidcheckConflicts(ClassExporterImporter handler, List<IxbElement> elems, Importer importer) Checks conflicts that can arise while import process.voidcheckConflicts(ClassExporterImporter handler, IxbElement elem, Importer importer) Checks conflicts that can arise while import process.createObject(ClassExporterImporter handler, IxbElement fileXML, Importer importer) Create an object instance.voidperformPostExportAction(ClassExporterImporter handler, Exporter exporter, Object object, IxbElement fileXML) Perform any action for the object after the real export ends.voidperformPreExportAction(ClassExporterImporter handler, Exporter exporter, Object object) Perform any actions for the object before the real export begins.voidpreviewObject(ClassExporterImporter handler, IxbElement fileXML, Importer importer) Preview the import, including conflicts checking, without performing the real import.storeObject(ClassExporterImporter handler, Object object, IxbElement fileXML, Importer importer) Deprecated.
-
Method Details
-
performPreExportAction
public void performPreExportAction(ClassExporterImporter handler, Exporter exporter, Object object) throws WTException Perform any actions for the object before the real export begins. Usually this method does nothing.
Supported API: true- Specified by:
performPreExportActionin interfaceActor- Parameters:
handler- The export class handler.exporter- TheExporterinstance that represents the context of the export operation.object- The object to be exported.- Throws:
WTException
-
performPostExportAction
public void performPostExportAction(ClassExporterImporter handler, Exporter exporter, Object object, IxbElement fileXML) throws WTException Perform any action for the object after the real export ends. Usually all common export actions are executed here.
Supported API: true- Specified by:
performPostExportActionin interfaceActor- Parameters:
handler- The export class handler.exporter- TheExporterinstance that represents the context of the export operation.object- The object to be exported.fileXML- The exported information of the object.- Throws:
WTException
-
previewObject
public void previewObject(ClassExporterImporter handler, IxbElement fileXML, Importer importer) throws WTException Preview the import, including conflicts checking, without performing the real import.
Supported API: true- Specified by:
previewObjectin interfaceActor- Parameters:
handler- The import class handler for the corresponding XML file.fileXML- the XML element to be imported.importer- TheImporterinstance that represents the context of the import operation.- Throws:
WTException
-
createObject
public Object createObject(ClassExporterImporter handler, IxbElement fileXML, Importer importer) throws WTException Create an object instance. Usually the instance will not be persisted within this method context.
Supported API: true- Specified by:
createObjectin interfaceActor- Parameters:
handler- The import class handler for the corresponding XML file.fileXML- the XML element to be imported.importer- TheImporterinstance that represents the context of the import operation.- Returns:
- Object
- Throws:
WTException- See Also:
-
storeObject
@Deprecated public Object storeObject(ClassExporterImporter handler, Object object, IxbElement fileXML, Importer importer) throws WTException Deprecated.Persists the specified object as created bycreateObject(ClassExporterImporter handler, IxbElement fileXML, Importer importer)
Supported API: true- Specified by:
storeObjectin interfaceActor- Parameters:
handler- The import class handler for the corresponding XML file.object- The object to be persisted.fileXML- the XML element to be imported.importer- TheImporterinstance that represents the context of the import operation.- Returns:
- Object
- Throws:
WTException
-
checkApplicabilityOfAction
Check if this action is applicable to the specified object. If not, throwwt.util.WTException
Supported API: true- Specified by:
checkApplicabilityOfActionin interfaceActor- Parameters:
obj-- Throws:
WTException
-
checkConflicts
public void checkConflicts(ClassExporterImporter handler, IxbElement elem, Importer importer) throws WTException Checks conflicts that can arise while import process.
Supported API: true- Specified by:
checkConflictsin interfaceActor- Parameters:
elem- the XML element to be imported.importer- TheImporterinstance that represents the context of the import operation.- Throws:
WTException
-
checkConflicts
public void checkConflicts(ClassExporterImporter handler, List<IxbElement> elems, Importer importer) throws WTException Checks conflicts that can arise while import process.
Supported API: true- Parameters:
handler- to use to check.elems- the XML elements to be imported.importer- theImporterinstance that represents the context of the import operation.- Throws:
WTException
-
storeObjects(ClassExporterImporter, WTList, List, Importer)instead.