Package wt.ixb.publicforhandlers
Interface AttributeExporterImporter
- All Known Implementing Classes:
wt.ixb.handlers.forattributes._ExpImpForContentAttr,wt.access.ixb.handlers.forattributes._ExpImpForSecurityLabelsAttr,wt.ixb.handlers.forclasses.attr._ExpImpForWTDocumentDependencyLinkAttr,wt.ixb.handlers.forclasses.attr._ExpImpForWTDocumentUsageLinkAttr,AttributeExporterImporterTemplate,ExpImpForContentAttr,ExpImpForSecurityLabelsAttr,ExpImpForWTDocumentDependencyLinkAttr,ExpImpForWTDocumentUsageLinkAttr
public interface AttributeExporterImporter
Interface for all attribute handrlers for export and import.Some attributes
are common for some object classes, in this case the implementation of
export/import this attribute should implements this interface so that
it can be re-useable.
Supported API: true
Extendable: false
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) Exports the attributes of the given object.voidfinalizeCheckConflicts(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) Imports all available attributes from fileXML into the object in context given by importer parameter.voidprepareForCheckConflicts(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
Exports the attributes of the given object. The results are written into fileXML.
Supported API: true- Parameters:
ob- The object to be exported.fileXML- TheIxbElementinstance to hold the export information.exporter- TheExporterinstance that represents the context of the export operation.- Throws:
WTException
-
finalizeExport
This method will be called by the application handler after all objects have been exported.
Supported API: true- Parameters:
exporter- TheExporterinstance that represents the context of the export operation.- Throws:
WTException
-
prepareForCheckConflicts
Called in the beginning of conflict check process prior to the real import or preview.
Supported API: true- Parameters:
ixbElementLst- List of IxbElementsimporter- TheImporterinstance that represents the context of the import operation- Throws:
WTException
-
checkConflictForAttribute
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- 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- 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- Parameters:
ixbElementLst- The list of ixb documents which will be imported.importer- TheImporterinstance that represents the context of the import operation.- Throws:
WTException
-
importAttribute
Imports all available attributes from fileXML into the object in context given by importer parameter. Returns the imported object.
Supported API: true- Parameters:
ob- The object to be imported.fileXML- theIxbElementof the XML file to be imported.importer- TheImporterinstance that represents the context of the import operation.- Returns:
- Object
- Throws:
WTException
-
finalizeImport
Called in the end of the whole ipport process to execute any import process finalization.
Supported API: true- Parameters:
importer- TheImporterinstance that represents the context of the import operation.- Throws:
WTException
-