wt.replication.ixbutil
Class ExpImpForUnitSeedLink
java.lang.Object
wt.ixb.publicforhandlers.ClassExporterImporterTemplateGeneral
wt.ixb.publicforhandlers.ClassExporterImporterTemplate
wt.replication.ixbutil.ExpImpForUnitSeedLink
- All Implemented Interfaces:
- ClassExporter, ClassExporterImporter, ElementImporter
- public class ExpImpForUnitSeedLink
- extends ClassExporterImporterTemplate
Methods inherited from class wt.ixb.publicforhandlers.ClassExporterImporterTemplate |
createFileXMLOnExport, exportAttributes, finalizeImportObject, getRootTag, importElement, importObjectAttributes, importObjectAttributesAfterStore, isObjectIgnored, isObjectNew, outputLog, rememberNewObInfo, setObjectIgnored, setObjectIsNew, storeAdditionalInfo, storeElement, storeObject |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExpImpForUnitSeedLink
public ExpImpForUnitSeedLink()
exportObject
public void exportObject(Object object,
Exporter exporter)
throws WTException
- Description copied from class:
ClassExporterImporterTemplate
- Exports the specified object in context given by parameter exporter.
The implementation of this method is partitioned into several protected
methods. Individual class handlers can override the following protected
methods:
createFileXMLOnExport(Exporter exporter)
, which
create an IxbDocument
with the root tag. See getRootTag()
;
-
exportAttributes (Object object, IxbElement fileXML,
Exporter exporter)
which will export the attributes according
to the DTD. The parameter fileXML is the returned vlue from createFileXMLOnExport(Exporter
exporter)
.
-
storeElement(Object object, IxbElement fileXML, Exporter
exporter)
which will store the fileXML into an xml-file.
Also, export actions from either client or system registry will be
performed. Specifically, the two methods
wt.ixb.tuner.ExportActionHelper.performPreExportAction ()
and
wt.ixb.tuner.ExportActionHelper.performPostExportAction ()
will be called before and after th above three protected methods,
respectively.
Supported API: true
- Specified by:
exportObject
in interface ClassExporter
- Overrides:
exportObject
in class ClassExporterImporterTemplate
- Parameters:
object
- exporter
- The Exporter
instance that represents the context of the export operation.
- Throws:
WTException
checkConflicts
public void checkConflicts(IxbElement fileXML,
Importer importer)
throws WTException
- Description copied from class:
ClassExporterImporterTemplateGeneral
- Checks conflicts that can arise while import process.
Supported API: true
- Specified by:
checkConflicts
in interface ElementImporter
- Overrides:
checkConflicts
in class ClassExporterImporterTemplateGeneral
- Parameters:
fileXML
- the XML element to be imported.importer
- The Importer
instance that represents the context of the import operation.
- Throws:
WTException
findAmongExistingObjects
public Object findAmongExistingObjects(IxbElement fileXML,
Importer importer)
throws WTException
- Description copied from class:
ClassExporterImporterTemplate
- Implements typical way of finding whether object from given XML file
exists already in Windchill database.
Supported API: true
- Overrides:
findAmongExistingObjects
in class ClassExporterImporterTemplate
- Parameters:
fileXML
- importer
-
- Returns:
- Object
- Throws:
WTException
createObject
public Object createObject(IxbElement fileXML,
Importer importer)
throws WTException
- Description copied from class:
ClassExporterImporterTemplate
- Creates new instance of Windchill object. Every class requires its
own method to create object of this class.
So, this method must be overriden by any class specific import handler
Supported API: true
- Specified by:
createObject
in class ClassExporterImporterTemplate
- Parameters:
fileXML
- importer
-
- Returns:
- Object
- Throws:
WTException
getImportPriority
public int getImportPriority()
throws WTException
- Description copied from class:
ClassExporterImporterTemplateGeneral
- Return the import priority of the object type represented by this
import handler.
Import priority defines the order in which objects will be imported.
This method does not carry parameters in the signature. The return
value can not be negative. Those XML files will have a higher import
priority for smaller returned values.
Supported API: true
- Specified by:
getImportPriority
in interface ElementImporter
- Specified by:
getImportPriority
in class ClassExporterImporterTemplateGeneral
- Returns:
- int
- Throws:
WTException
PP
private static void PP(String s)