wt.ixb.handlers.netmarkets
Class LoadXMLFileIXHandler
java.lang.Object
wt.ixb.publicforhandlers.ClassExporterImporterTemplateGeneral
wt.ixb.publicforhandlers.ClassExporterImporterTemplate
wt.ixb.handlers.netmarkets.LoadXMLFileIXHandler
- All Implemented Interfaces:
- ClassExporter, ClassExporterImporter, ElementImporter
- public class LoadXMLFileIXHandler
- extends ClassExporterImporterTemplate
This class handles importing the <import>
element.
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 |
RESOURCE
private static final String RESOURCE
- See Also:
- Constant Field Values
loadTags
private static final NMProjectConstants.LoadXMLFileInfo loadTags
LoadXMLFileIXHandler
public LoadXMLFileIXHandler()
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