wt.projmgmt.ix
Class ExecObjIxHandler
java.lang.Object
wt.ixb.publicforhandlers.ClassExporterImporterTemplateGeneral
wt.ixb.publicforhandlers.ClassExporterImporterTemplate
wt.projmgmt.ix.ExecObjIxHandler
- All Implemented Interfaces:
- ClassExporter, ClassExporterImporter, ElementImporter
- Direct Known Subclasses:
- DeliverableIxHandler, MilestoneIxHandler, ProjectActivityIxHandler, ProjectPlanIxHandler, ProjectProxyIxHandler, SummaryActivityIxHandler
- public abstract class ExecObjIxHandler
- extends ClassExporterImporterTemplate
Methods inherited from class wt.ixb.publicforhandlers.ClassExporterImporterTemplate |
createFileXMLOnExport, createObject, exportAttributes, exportObject, finalizeImportObject, getRootTag, importElement, importObjectAttributes, 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 |
ExecObjIxHandler
public ExecObjIxHandler()
getImportPriority
public int getImportPriority()
throws WTException
- Description copied from class:
ClassExporterImporterTemplateGeneral
- Return the import priority of the object type represented by this
import handler.
Import priority defines the order in which objects will be imported.
This method does not carry parameters in the signature. The return
value can not be negative. Those XML files will have a higher import
priority for smaller returned values.
Supported API: true
- Specified by:
getImportPriority
in interface ElementImporter
- Specified by:
getImportPriority
in class ClassExporterImporterTemplateGeneral
- Returns:
- int
- Throws:
WTException
findAmongExistingObjects
public Object findAmongExistingObjects(IxbElement parm1,
Importer parm2)
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:
parm1
- parm2
-
- Returns:
- Object
- Throws:
WTException
getOid
protected static ObjectIdentifier getOid(Object obj)
importObjectAttributesAfterStore
public Object importObjectAttributesAfterStore(Object obj,
IxbElement elem,
Importer imp)
throws WTException
- Description copied from class:
ClassExporterImporterTemplate
- 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. So, we can not set this attribute
in importObjectAttributes
method
because it is called before store object.
If class inherits from another replicated class (for example, inherits
from 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
Supported API: true
- Overrides:
importObjectAttributesAfterStore
in class ClassExporterImporterTemplate
- Parameters:
obj
- elem
- imp
-
- Returns:
- Object
- Throws:
WTException