wt.ixb.handlers.forclasses
Class ExpImpForBusinessEntity

java.lang.Object
  extended by wt.ixb.publicforhandlers.ClassExporterImporterTemplateGeneral
      extended by wt.ixb.publicforhandlers.ClassExporterImporterTemplate
          extended by wt.ixb.handlers.forclasses.ExpImpForBusinessEntity
All Implemented Interfaces:
ClassExporter, ClassExporterImporter, ElementImporter

public class ExpImpForBusinessEntity
extends ClassExporterImporterTemplate



Supported API: true

Extendable: false


Nested Class Summary
 
Nested classes/interfaces inherited from class wt.ixb.publicforhandlers.ClassExporterImporterTemplate
wt.ixb.publicforhandlers.ClassExporterImporterTemplate.ContentHolderCommitListener
 
Method Summary
 void checkConflicts(IxbElement fileXML, Importer importer)
          

Supported API: true
 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.
 Object findAmongExistingObjects(IxbElement fileXML, Importer importer)
          

Supported API: true
protected  String getRootTag()
          Returns "BusinessEntity" as the root tag of the XML file.
 Object importElement(IxbElement fileXML, Importer importer)
          Imports XML element in context given by importer parameter.
 
Methods inherited from class wt.ixb.publicforhandlers.ClassExporterImporterTemplate
createFileXMLOnExport, exportAttributes, exportObject, finalizeImportObject, importObjectAttributes, rememberNewObInfo, storeAdditionalInfo, storeElement, storeObject
 
Methods inherited from class wt.ixb.publicforhandlers.ClassExporterImporterTemplateGeneral
finalizeCheckConflicts, finalizeExport, finalizeImport, getAdditionalImportPriority, prepareForCheckConflicts, prepareForImport, previewElement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getRootTag

protected String getRootTag()
Returns "BusinessEntity" as the root tag of the XML file.

Supported API: true

Overrides:
getRootTag in class ClassExporterImporterTemplate
Returns:
String

exportAttributes

protected void exportAttributes(Object object,
                                IxbDocument fileXML,
                                Exporter exporter)
                         throws WTException
Export the attributes according to the DTD. The parameter fileXML is the returned vlue from the method createFileXMLOnExport(Exporter exporter).

Supported API: true

Overrides:
exportAttributes in class ClassExporterImporterTemplate
Parameters:
object -
fileXML -
exporter -
Throws:
WTException

findAmongExistingObjects

public Object findAmongExistingObjects(IxbElement fileXML,
                                       Importer importer)
                                throws WTException


Supported API: true

Overrides:
findAmongExistingObjects in class ClassExporterImporterTemplate
Parameters:
fileXML -
importer -
Returns:
Object
Throws:
WTException

checkConflicts

public void checkConflicts(IxbElement fileXML,
                           Importer importer)
                    throws WTException


Supported API: true

Specified by:
checkConflicts in interface ElementImporter
Overrides:
checkConflicts in class ClassExporterImporterTemplateGeneral
Parameters:
fileXML -
importer -
Throws:
WTException

importElement

public Object importElement(IxbElement fileXML,
                            Importer importer)
                     throws WTException
Imports XML element in context given by importer parameter. Returns the BusinessEntityDefaultView, which might be newly created or already existed in the datastore.

Supported API: true

Specified by:
importElement in interface ElementImporter
Overrides:
importElement in class ClassExporterImporterTemplate
Parameters:
fileXML -
importer -
Returns:
Object
Throws:
WTException

createObject

public Object createObject(IxbElement fileXML,
                           Importer importer)
                    throws WTException
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