|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectwt.ixb.publicforhandlers.ClassExporterImporterTemplateGeneral
public abstract class ClassExporterImporterTemplateGeneral
General template for class handlers which defines trivial implementation.
It defines some abstract methods that individual class handlers must
implement.
Supported API: true
Extendable: false
| Method Summary | |
|---|---|
void |
checkConflicts(IxbElement elem,
Importer importer)
Checks conflicts that can arise while import process. |
abstract void |
exportObject(Object ob,
Exporter exporter)
Exports the specified object in context given by parameter exporter. |
void |
finalizeCheckConflicts(Importer importer)
Called in the end of conflict check process. |
void |
finalizeExport(Exporter exporter)
This method is called in the end of the whole export process to execute any additional export process finalization. |
void |
finalizeImport(Importer importer)
Called in the end of the whole ipport process to execute any import process finalization. |
int |
getAdditionalImportPriority(IxbElement fileXML)
Return the additional import priority based on the XML file, supplemented to getImportPriority(). |
abstract int |
getImportPriority()
Return the import priority of the object type represented by this import handler. |
String |
getObjectDisplayID(IxbElement elem,
Importer importer)
Return the localized identity of the element that will be used in import operation. |
abstract Object |
importElement(IxbElement elem,
Importer importer)
Imports XML element in context given by importer parameter. |
void |
outputLog(Object ob,
Importer importer)
Output log for imported object. |
void |
prepareForCheckConflicts(Importer importer)
Called in the beginning of conflict check process prior to the real import or preview. |
void |
prepareForImport(Importer importer)
Called in the end of conflict check process and prior to the realimport process. |
void |
previewElement(IxbElement elem,
Importer importer)
Preview XML element in context given by importer parameter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public abstract void exportObject(Object ob,
Exporter exporter)
throws WTException
exportObject in interface ClassExporterob - The object to be exported.exporter - The Exporter instance that represents the context of the export operation.
WTException
public abstract Object importElement(IxbElement elem,
Importer importer)
throws WTException
importElement in interface ElementImporterelem - the XML element to be imported.importer - The Importer instance that represents the context of the import operation.
WTException
public abstract int getImportPriority()
throws WTException
getImportPriority in interface ElementImporterWTException
public void finalizeExport(Exporter exporter)
throws WTException
finalizeExport in interface ClassExporterexporter - Exports the specified object in context given by parameter exporter.
WTException
public void prepareForCheckConflicts(Importer importer)
throws WTException
prepareForCheckConflicts in interface ElementImporterimporter - The Importer instance that represents the context of the import operation.
WTException
public void checkConflicts(IxbElement elem,
Importer importer)
throws WTException
checkConflicts in interface ElementImporterelem - the XML element to be imported.importer - The Importer instance that represents the context of the import operation.
WTException
public void finalizeCheckConflicts(Importer importer)
throws WTException
finalizeCheckConflicts in interface ElementImporterimporter - The Importer instance that represents the context of the import operation.
WTException
public void prepareForImport(Importer importer)
throws WTException
prepareForImport in interface ElementImporterimporter - The Importer instance that represents the context of the import operation.
WTException
public int getAdditionalImportPriority(IxbElement fileXML)
throws WTException
getImportPriority().
getImportPriority() returns the same value. In general,
if getImportPriority() returns a smaller value, it will have a higher
import priority; for the XML files with the same value of
getImportPriority(), the one with a smaller value from
this method will have a higher import priority.The returned value
must be at least 0.
getAdditionalImportPriority in interface ElementImporterfileXML -
WTException
public void finalizeImport(Importer importer)
throws WTException
finalizeImport in interface ElementImporterimporter - The Importer instance that represents the context of the import operation.
WTException
public void previewElement(IxbElement elem,
Importer importer)
throws WTException
previewElement in interface ElementImporterelem - the XML element to be imported.importer - The Importer instance that represents the context of the import operation.
WTException
public String getObjectDisplayID(IxbElement elem,
Importer importer)
throws WTException
getObjectDisplayID in interface ElementImporterelem - the XML element to be imported.importer - The Importer instance that represents the context of the import operation.
WTException
public void outputLog(Object ob,
Importer importer)
throws WTException
outputLog in interface ElementImporterob - he object for the log. It can be a new imported object or an existing one in the datastore.importer - The Importer instance that represents the context of the import operation.
WTException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||