wt.ixb.handlers.netmarkets
Class LoadXMLFileIXHandler

java.lang.Object
  extended bywt.ixb.publicforhandlers.ClassExporterImporterTemplateGeneral
      extended bywt.ixb.publicforhandlers.ClassExporterImporterTemplate
          extended bywt.ixb.handlers.netmarkets.LoadXMLFileIXHandler
All Implemented Interfaces:
ClassExporter, ClassExporterImporter, ElementImporter

public class LoadXMLFileIXHandler
extends ClassExporterImporterTemplate

This class handles importing the <import> element.


Nested Class Summary
 
Nested classes inherited from class wt.ixb.publicforhandlers.ClassExporterImporterTemplate
ClassExporterImporterTemplate.ContentHolderCommitListener
 
Field Summary
private static NMProjectConstants.LoadXMLFileInfo loadTags
           
private static String RESOURCE
           
 
Fields inherited from class wt.ixb.publicforhandlers.ClassExporterImporterTemplate
 
Fields inherited from class wt.ixb.publicforhandlers.ClassExporterImporterTemplateGeneral
CONFLICT_RESOURCE
 
Constructor Summary
LoadXMLFileIXHandler()
           
 
Method Summary
 Object createObject(IxbElement topElement, Importer imp)
          Import the XML file referenced by this elements path attribute.
 void exportObject(Object seed, Exporter exporter)
          This handler does not support exporting.
 Object findAmongExistingObjects(IxbElement elem, Importer imp)
          Implements typical way of finding whether object from given XML file exists already in Windchill database.
 int getImportPriority()
          Needs to be implemented, but the meaning of the return value has never been documented.
 
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 wt.ixb.publicforhandlers.ClassExporterImporterTemplateGeneral
checkConflicts, finalizeCheckConflicts, finalizeExport, finalizeImport, getAdditionalImportPriority, getObjectDisplayID, prepareForCheckConflicts, prepareForImport, previewElement
 
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

loadTags

private static final NMProjectConstants.LoadXMLFileInfo loadTags
Constructor Detail

LoadXMLFileIXHandler

public LoadXMLFileIXHandler()
Method Detail

exportObject

public void exportObject(Object seed,
                         Exporter exporter)
                  throws WTException
This handler does not support exporting.

Specified by:
exportObject in interface ClassExporter
Overrides:
exportObject in class ClassExporterImporterTemplate
Parameters:
seed -
exporter - The Exporter instance that represents the context of the export operation.
Throws:
WTException

createObject

public Object createObject(IxbElement topElement,
                           Importer imp)
                    throws WTException
Import the XML file referenced by this elements path attribute. When that file has been imported resume importing the current XML stream with the elements after this import element.

Specified by:
createObject in class ClassExporterImporterTemplate
Parameters:
topElement - node in the XML tree which correpsonds to the tag.
imp - the application that is controlling the import process.
Returns:
the last object created by importing the file
Throws:
WTException

getImportPriority

public int getImportPriority()
                      throws WTException
Needs to be implemented, but the meaning of the return value has never been documented.

Specified by:
getImportPriority in interface ElementImporter
Specified by:
getImportPriority in class ClassExporterImporterTemplateGeneral
Returns:
int
Throws:
WTException

findAmongExistingObjects

public Object findAmongExistingObjects(IxbElement elem,
                                       Importer imp)
                                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:
elem -
imp -
Returns:
Object
Throws:
WTException