Package wt.ixb.publicforhandlers
Class AttributeExporterImporterTemplate
java.lang.Object
wt.ixb.publicforhandlers.AttributeExporterImporterTemplate
- All Implemented Interfaces:
AttributeExporterImporter
- Direct Known Subclasses:
wt.ixb.handlers.forattributes._ExpImpForContentAttr,wt.access.ixb.handlers.forattributes._ExpImpForSecurityLabelsAttr,wt.ixb.handlers.forclasses.attr._ExpImpForWTDocumentDependencyLinkAttr,wt.ixb.handlers.forclasses.attr._ExpImpForWTDocumentUsageLinkAttr
public abstract class AttributeExporterImporterTemplate
extends Object
implements AttributeExporterImporter
General template for attribute handlers which defines trivial implementation.
It defines some abstract methods that individual attribute handlers must implement.
Supported API: true
Extendable: false
It defines some abstract methods that individual attribute handlers must implement.
Supported API: true
Extendable: false
-
Method Summary
Modifier and TypeMethodDescriptionvoidcheckConflictForAttribute(Object existingOb, IxbElement fileXML, Importer importer) Checks conflicts that can arise while import process for the given attribute and object.voidexportAttribute(Object ob, IxbElement fileXML, Exporter exporter)
Supported API: truevoidfinalizeCheckConflicts(Importer importer) Called in the end of conflict check process.voidfinalizeExport(Exporter exporter) This method will be called by the application handler after all objects have been exported.voidfinalizeImport(Importer importer) Called in the end of the whole ipport process to execute any import process finalization.importAttribute(Object ob, IxbElement fileXML, Importer importer)
Supported API: truevoidprepareForCheckConflicts(List<IxbElement> ixbElementLst, Importer importer) Called in the beginning of conflict check process prior to the real import or preview.voidprepareForImport(List<IxbElement> ixbElementLst, Importer importer) Called in the end of conflict check process and prior to the real import process.
-
Method Details
-
exportAttribute
Supported API: true- Specified by:
exportAttributein interfaceAttributeExporterImporter- Parameters:
ob-fileXML-exporter-- Throws:
WTException
-
importAttribute
Supported API: true- Specified by:
importAttributein interfaceAttributeExporterImporter- Parameters:
ob-fileXML-importer-- Returns:
- Object
- Throws:
WTException
-
finalizeExport
This method will be called by the application handler after all objects have been exported.
Supported API: true- Specified by:
finalizeExportin interfaceAttributeExporterImporter- Parameters:
exporter- TheExporterinstance that represents the context of the export operation.- Throws:
WTException
-
prepareForCheckConflicts
public void prepareForCheckConflicts(List<IxbElement> ixbElementLst, Importer importer) throws WTException Called in the beginning of conflict check process prior to the real import or preview.
Supported API: true- Specified by:
prepareForCheckConflictsin interfaceAttributeExporterImporter- Parameters:
ixbElementLst- List of IxbElementsimporter- TheImporterinstance that represents the context of the import operation- Throws:
WTException
-
checkConflictForAttribute
public void checkConflictForAttribute(Object existingOb, IxbElement fileXML, Importer importer) throws WTException Checks conflicts that can arise while import process for the given attribute and object.
Supported API: true- Specified by:
checkConflictForAttributein interfaceAttributeExporterImporter- Parameters:
existingOb-fileXML- theIxbElementof the XML file to be imported.importer- TheImporterinstance that represents the context of the import operation.- Throws:
WTException
-
finalizeCheckConflicts
Called in the end of conflict check process.
Supported API: true- Specified by:
finalizeCheckConflictsin interfaceAttributeExporterImporter- Parameters:
importer- TheImporterinstance that represents the context of the import operation.- Throws:
WTException
-
prepareForImport
Called in the end of conflict check process and prior to the real import process.
Supported API: true- Specified by:
prepareForImportin interfaceAttributeExporterImporter- Parameters:
ixbElementLst- The list of ixb documents which will be imported.importer- TheImporterinstance that represents the context of the import operation.- Throws:
WTException
-
finalizeImport
Called in the end of the whole ipport process to execute any import process finalization.
Supported API: true- Specified by:
finalizeImportin interfaceAttributeExporterImporter- Parameters:
importer- TheImporterinstance that represents the context of the import operation.- Throws:
WTException
-