|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectwt.ixb.publicforhandlers.ClassExporterImporterTemplateGeneral
wt.ixb.publicforhandlers.ClassExporterImporterTemplate
public abstract class ClassExporterImporterTemplate
Abstract class, most of standard export/import handlers extend.
This class implements some typical model of export/import process.
Supported API: true
Extendable: true
| Nested Class Summary | |
|---|---|
protected class |
wt.ixb.publicforhandlers.ClassExporterImporterTemplate.ContentHolderCommitListener
|
| Method Summary | |
|---|---|
protected IxbDocument |
createFileXMLOnExport(Exporter exporter)
Creates an IxbDocument with the root tag. |
abstract Object |
createObject(IxbElement fileXML,
Importer importer)
Creates new instance of Windchill object. |
protected void |
exportAttributes(Object object,
IxbDocument fileXML,
Exporter exporter)
Export the attributes according to the DTD. |
protected void |
exportAttributes(Object object,
IxbElement fileXML,
Exporter exporter)
Export the attributes according to the DTD. |
void |
exportObject(Object object,
Exporter exporter)
Exports the specified object in context given by parameter exporter. |
Object |
finalizeImportObject(boolean objectNew,
Object object,
IxbElement fileXML,
Importer importer)
Some actions in the end of the import process. |
Object |
findAmongExistingObjects(IxbElement fileXML,
Importer importer)
Implements typical way of finding whether object from given XML file exists already in Windchill database. |
protected String |
getRootTag()
Returns the desired root tag for the object type to be exported, e.g. |
Object |
importElement(IxbElement fileXML,
Importer importer)
Imports XML element in context given by importer parameter. |
Object |
importObjectAttributes(Object object,
IxbElement fileXML,
Importer importer)
Imports class specific atributes from the XML file. |
Object |
importObjectAttributesAfterStore(Object object,
IxbElement fileXML,
Importer importer)
Imports class specific atributes from the XML element after object gets stored This method should be implemented for most of the classes This method is required because some of attributes (IBA, Content) can not be added to the object before it gets stored. |
protected void |
rememberNewObInfo(Object ob,
IxbElement fileXML,
boolean objectNew,
Importer importer)
Implements typical way of storing information about imported object That information can be used if in import package there are other objects, referenced this one Supported API: true |
protected void |
storeAdditionalInfo(Object object,
IxbDocument fileXML,
String fileId,
Exporter exporter)
By default will do whatever processing is specified in Application handler. |
protected void |
storeElement(Object object,
IxbDocument fileXML,
Exporter exporter)
Stores the exported result fileXML IxbDocument
into an XML file
or other format accrding to the export handler ApplicationExportHandler. |
Object |
storeObject(Object object,
IxbElement fileXML,
Importer importer)
That is the general template how to store object. |
| Methods inherited from class wt.ixb.publicforhandlers.ClassExporterImporterTemplateGeneral |
|---|
checkConflicts, finalizeCheckConflicts, finalizeExport, finalizeImport, getAdditionalImportPriority, getImportPriority, getObjectDisplayID, prepareForCheckConflicts, prepareForImport, previewElement |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public void exportObject(Object object,
Exporter exporter)
throws WTException
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.
wt.ixb.tuner.ExportActionHelper.performPreExportAction ()
and
wt.ixb.tuner.ExportActionHelper.performPostExportAction ()
will be called before and after th above three protected methods,
respectively.
exportObject in interface ClassExporterexportObject in class ClassExporterImporterTemplateGeneralobject - exporter - The Exporter instance that represents the context of the export operation.
WTException
protected IxbDocument createFileXMLOnExport(Exporter exporter)
throws WTException
IxbDocument with the root tag. See getRootTag()
exporter -
WTException
protected void exportAttributes(Object object,
IxbDocument fileXML,
Exporter exporter)
throws WTException
createFileXMLOnExport(Exporter
exporter).
object - fileXML - exporter -
WTException
protected void exportAttributes(Object object,
IxbElement fileXML,
Exporter exporter)
throws WTException
createFileXMLOnExport(Exporter
exporter).
object - fileXML - exporter -
WTException
protected void storeElement(Object object,
IxbDocument fileXML,
Exporter exporter)
throws WTException
IxbDocument
into an XML file
or other format accrding to the export handler ApplicationExportHandler.
object - fileXML - exporter -
WTExceptionprotected String getRootTag()
public Object importElement(IxbElement fileXML,
Importer importer)
throws WTException
importElement in interface ElementImporterimportElement in class ClassExporterImporterTemplateGeneralfileXML - importer - The Importer instance that represents the context of the import operation.
WTException
public Object findAmongExistingObjects(IxbElement fileXML,
Importer importer)
throws WTException
fileXML - importer -
WTException
public abstract Object createObject(IxbElement fileXML,
Importer importer)
throws WTException
fileXML - importer -
WTException
public Object importObjectAttributes(Object object,
IxbElement fileXML,
Importer importer)
throws WTException
object - fileXML - importer -
WTException
public Object storeObject(Object object,
IxbElement fileXML,
Importer importer)
throws WTException
object - fileXML - importer -
WTException
public Object importObjectAttributesAfterStore(Object object,
IxbElement fileXML,
Importer importer)
throws WTException
importObjectAttributes method
because it is called before store object.
WTPart)
then for this class generally a new implementation of this method
should be given;
in this implementation it should at first call importObjectAttributesAfterStore()
of its ansector
object - fileXML - importer -
WTException
protected void storeAdditionalInfo(Object object,
IxbDocument fileXML,
String fileId,
Exporter exporter)
throws WTException
WTException
protected void rememberNewObInfo(Object ob,
IxbElement fileXML,
boolean objectNew,
Importer importer)
throws WTException
WTException
public Object finalizeImportObject(boolean objectNew,
Object object,
IxbElement fileXML,
Importer importer)
throws WTException
WTException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||