wt.ixb.publicforhandlers
Class AttributeExporterImporterTemplate

java.lang.Object
  extended bywt.ixb.publicforhandlers.AttributeExporterImporterTemplate
All Implemented Interfaces:
AttributeExporterImporter
Direct Known Subclasses:
ExpImpForArchiveAttr, ExpImpForCabinetBasedAttr, ExpImpForContainerPathAttr, ExpImpForContentAttr, ExpImpForCriterionAttr, ExpImpForDomainAdministeredIfcAttr, ExpImpForDomainFolderAttr, ExpImpForEPMCADReferenceControlAttr, ExpImpForEPMDependencyLinkAttr, ExpImpForEPMDocAttr, ExpImpForEPMDocumentMasterAttr, ExpImpForEPMExtentsAttr, ExpImpForEPMFamilyTableCellAttr, ExpImpForEPMFamilyTableColumnAttr, ExpImpForEPMFeatureDefinitionAttr, ExpImpForEPMFeatureValueAttr, ExpImpForEPMObjectAttr, ExpImpForEPMParameterDefinitionAttr, ExpImpForEPMParameterMapAttr, ExpImpForEPMParameterValueAttr, ExpImpForEPMSepFamilyTableAttr, ExpImpForEPMSepFamilyTableMasterAttr, ExpImpForEPMTransformAttr, ExpImpForEPMUsesOccurrenceAttr, ExpImpForFlexibleVersioningAttr, ExpImpForIBAAttr, ExpImpForIconAttr, ExpImpForInputValueAttr, ExpImpForLifecycleAttr, ExpImpForLifecycleHistoryAttr, ExpImpForLocalIdAttr, ExpImpForLogicalIdAttr, ExpImpForMarkUpAttr, ExpImpForOrgIdAttr, ExpImpForPartUsesOccurenceAttr, ExpImpForProjectAttr, ExpImpForTeamAttr, ExpImpForTypeDefinitionAttr, ExpImpForUfidAttr, ExpImpForVersionAttr, ExpImpForViewAttr, ExpImpForWTDocAttr, ExpImpForWTDocMasterAttr, ExpImpForWTPartAttr, ExpImpForWTPartMasterAttr, ExpImpForWTPartUsageLinkAttr

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


Field Summary
private static String CLASSNAME
           
protected static String CONFLICT_RESOURCE
           
private static String RESOURCE
           
 
Constructor Summary
AttributeExporterImporterTemplate()
           
 
Method Summary
 void checkConflictForAttribute(Object existingOb, IxbElement fileXML, Importer importer)
          Checks conflicts that can arise while import process for the given attribute and object.
abstract  void exportAttribute(Object ob, IxbElement fileXML, Exporter exporter)
          

Supported API: true
 void finalizeCheckConflicts(Importer importer)
          Called in the end of conflict check process.
 void finalizeExport(Exporter exporter)
          This method will be called by the application handler after all objects have been exported.
 void finalizeImport(Importer importer)
          Called in the end of the whole ipport process to execute any import process finalization.
abstract  Object importAttribute(Object ob, IxbElement fileXML, Importer importer)
          

Supported API: true
 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 real import process.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

CONFLICT_RESOURCE

protected static final String CONFLICT_RESOURCE
See Also:
Constant Field Values
Constructor Detail

AttributeExporterImporterTemplate

public AttributeExporterImporterTemplate()
Method Detail

exportAttribute

public abstract void exportAttribute(Object ob,
                                     IxbElement fileXML,
                                     Exporter exporter)
                              throws WTException


Supported API: true

Specified by:
exportAttribute in interface AttributeExporterImporter
Parameters:
ob -
fileXML -
exporter -
Throws:
WTException

importAttribute

public abstract Object importAttribute(Object ob,
                                       IxbElement fileXML,
                                       Importer importer)
                                throws WTException


Supported API: true

Specified by:
importAttribute in interface AttributeExporterImporter
Parameters:
ob -
fileXML -
importer -
Returns:
Object
Throws:
WTException

finalizeExport

public void finalizeExport(Exporter exporter)
                    throws WTException
This method will be called by the application handler after all objects have been exported.

Supported API: true

Specified by:
finalizeExport in interface AttributeExporterImporter
Parameters:
exporter - The Exporter instance that represents the context of the export operation.
Throws:
WTException

prepareForCheckConflicts

public void prepareForCheckConflicts(Importer importer)
                              throws WTException
Called in the beginning of conflict check process prior to the real import or preview.

Supported API: true

Specified by:
prepareForCheckConflicts in interface AttributeExporterImporter
Parameters:
importer - The Importer instance 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:
checkConflictForAttribute in interface AttributeExporterImporter
Parameters:
existingOb -
fileXML - the IxbElement of the XML file to be imported.
importer - The Importer instance that represents the context of the import operation.
Throws:
WTException

finalizeCheckConflicts

public void finalizeCheckConflicts(Importer importer)
                            throws WTException
Called in the end of conflict check process.

Supported API: true

Specified by:
finalizeCheckConflicts in interface AttributeExporterImporter
Parameters:
importer - The Importer instance that represents the context of the import operation.
Throws:
WTException

prepareForImport

public void prepareForImport(Importer importer)
                      throws WTException
Called in the end of conflict check process and prior to the real import process.

Supported API: true

Specified by:
prepareForImport in interface AttributeExporterImporter
Parameters:
importer - The Importer instance that represents the context of the import operation.
Throws:
WTException

finalizeImport

public void finalizeImport(Importer importer)
                    throws WTException
Called in the end of the whole ipport process to execute any import process finalization.

Supported API: true

Specified by:
finalizeImport in interface AttributeExporterImporter
Parameters:
importer - The Importer instance that represents the context of the import operation.
Throws:
WTException