wt.ixb.handlers.forclasses
Class ExpImpForClassificationNode

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

public class ExpImpForClassificationNode
extends ClassExporterImporterTemplate



Supported API: true

Extendable: true


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)
          Check conflicts for the XML file against the ClassificationNode object in datase.
 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)
          Find the ClassificationNode instance in database based on the name and path.
 int getAdditionalImportPriority(IxbElement fileXML)
          Return the "additional" import priority based on the XML file, supplemented to getImportPriority() The returned number defines the order in which XML file will be imported if getImportPriority() returns the same value.
protected  String getRootTag()
          Returns "ClassificationNode" 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, 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 "ClassificationNode" 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
Find the ClassificationNode instance in database based on the name and path.

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
Check conflicts for the XML file against the ClassificationNode object in datase.

Supported API: true

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

getAdditionalImportPriority

public int getAdditionalImportPriority(IxbElement fileXML)
                                throws WTException
Return the "additional" import priority based on the XML file, supplemented to getImportPriority() The returned number defines the order in which XML file will be imported if getImportPriority() returns the same value. In general, if getImportPriority() returns a smaller value, it will have a higher import priority; for the XML files with the same value of getImportPriority(), the one with a smaller value of getAdditionalImportPriority() will have a higher import priority.
The returned value is the depth specified in the "path" tag in the XML file of the corresponding ClassificationNode instance

Supported API: true

Specified by:
getAdditionalImportPriority in interface ElementImporter
Overrides:
getAdditionalImportPriority in class ClassExporterImporterTemplateGeneral
Parameters:
fileXML -
Returns:
int
Throws:
WTException

importElement

public Object importElement(IxbElement fileXML,
                            Importer importer)
                     throws WTException
Imports XML element in context given by importer parameter. Returns the ClassificationNodeDefaultView, 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