wt.ixb.actor
Class RestoreActor

java.lang.Object
  extended by wt.ixb.actor.ActorTemplate
      extended by wt.ixb.actor.RestoreActor
All Implemented Interfaces:
Actor

public class RestoreActor
extends ActorTemplate



Supported API: true

Extendable: false


Method Summary
 Object createObject(ClassExporterImporter handler, IxbElement fileXml, Importer importer)
          Create an object instance.
 Object importObjectAttributes(ClassExporterImporter handler, Object object, IxbElement fileXml, Importer importer)
          Import attributes specific for Restore (before the object is stored)

Supported API: true
 Object importObjectAttributesAfterStore(ClassExporterImporter handler, Object object, IxbElement fileXml, Importer importer)
          Import attributes specific for Restore (after the object is stored)

Supported API: true
 Object storeObject(ClassExporterImporter handler, Object o, IxbElement fileXml, Importer importer)
          Persists the specified object as created by createObject(ClassExporterImporter handler, IxbElement fileXml, Importer importer).
 
Methods inherited from class wt.ixb.actor.ActorTemplate
checkApplicabilityOfAction, performPostExportAction, performPreExportAction, previewObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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:
createObject in interface Actor
Overrides:
createObject in class ActorTemplate
Parameters:
handler - The import class handler for the corresponding XML file.
fileXml - the XML element to be imported.
importer - The Importer instance that represents the context of the import operation.
Returns:
Object
Throws:
WTException
See Also:
method storeObject(ClassExporterImporter handler, Object object, IxbElement fileXml, Importer importer)

importObjectAttributes

public Object importObjectAttributes(ClassExporterImporter handler,
                                     Object object,
                                     IxbElement fileXml,
                                     Importer importer)
                              throws WTException
Import attributes specific for Restore (before the object is stored)

Supported API: true

Parameters:
handler -
object -
fileXml -
importer -
Returns:
Object
Throws:
WTException

importObjectAttributesAfterStore

public Object importObjectAttributesAfterStore(ClassExporterImporter handler,
                                               Object object,
                                               IxbElement fileXml,
                                               Importer importer)
                                        throws WTException
Import attributes specific for Restore (after the object is stored)

Supported API: true

Parameters:
handler -
object -
fileXml -
importer -
Returns:
Object
Throws:
WTException

storeObject

public Object storeObject(ClassExporterImporter handler,
                          Object o,
                          IxbElement fileXml,
                          Importer importer)
                   throws WTException
Persists the specified object as created by createObject(ClassExporterImporter handler, IxbElement fileXml, Importer importer).

Supported API: true

Specified by:
storeObject in interface Actor
Overrides:
storeObject in class ActorTemplate
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 - The Importer instance that represents the context of the import operation.
Returns:
Object
Throws:
WTException