|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.ixb.publicforhandlers.ClassExporterImporterTemplateGeneral
wt.ixb.publicforhandlers.ClassExporterImporterTemplate
wt.ixb.handlers.forclasses.ExpImpForWTPartUsageLink
Nested Class Summary |
Nested classes inherited from class wt.ixb.publicforhandlers.ClassExporterImporterTemplate |
ClassExporterImporterTemplate.ContentHolderCommitListener |
Field Summary | |
private boolean |
ignored
These member variables are not required, so don't use them private Persistable end_1 = null; private Persistable end_2 = null; |
Fields inherited from class wt.ixb.publicforhandlers.ClassExporterImporterTemplate |
|
Fields inherited from class wt.ixb.publicforhandlers.ClassExporterImporterTemplateGeneral |
CONFLICT_RESOURCE |
Constructor Summary | |
ExpImpForWTPartUsageLink()
|
Method Summary | |
void |
checkConflicts(IxbElement fileXML,
Importer importer)
Checks conflicts that can arise while import process. |
Object |
createObject(IxbElement fileXML,
Importer importer)
Create a WTPartUsageLink based on ufids of its ends (Uses and UsedBy). Those ufids are retrieved from the WTPartUsageLink's XML file. |
protected void |
exportAttributes(Object object,
IxbDocument fileXML,
Exporter exporter)
Export the attributes according to the DTD. |
Object |
findAmongExistingObjects(IxbElement fileXML,
Importer importer)
Implements typical way of finding whether object from given XML file exists already in Windchill database. |
private Object |
findAmongExistingObjectsForImport(IxbElement fileXML,
Importer importer)
We don't have to find the link anymore, because links are created or not will be decided by actor. |
int |
getImportPriority()
Return the import priority of the object type represented by this import handler. |
protected String |
getRootTag()
Returns the desired root tag for the object type to be exported, e.g. |
Object |
importObjectAttributes(Object ob,
IxbElement fileXML,
Importer importer)
Import attributes for a WTPartUsageLink from its XML file. Supported API: true |
Object |
importObjectAttributesAfterStore(Object ob,
IxbElement fileXML,
Importer importer)
Import attributes for a WTPartUsageLink from its XML file after it is stored. The import for PartUsesOccurence must take place here, because PartUsesOccurences are imported only after the link is stored. |
private static void |
PP(String s)
|
Object |
storeObject(Object object,
IxbElement fileXML,
Importer importer)
Store a WTPartUsageLink . Supported API: true |
Methods inherited from class wt.ixb.publicforhandlers.ClassExporterImporterTemplate |
createFileXMLOnExport, exportObject, finalizeImportObject, importElement, isObjectIgnored, isObjectNew, outputLog, rememberNewObInfo, setObjectIgnored, setObjectIsNew, storeAdditionalInfo, storeElement |
Methods inherited from class wt.ixb.publicforhandlers.ClassExporterImporterTemplateGeneral |
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 |
private boolean ignored
Constructor Detail |
public ExpImpForWTPartUsageLink()
Method Detail |
protected String getRootTag()
ClassExporterImporterTemplate
getRootTag
in class ClassExporterImporterTemplate
protected void exportAttributes(Object object, IxbDocument fileXML, Exporter exporter) throws WTException
ClassExporterImporterTemplate
createFileXMLOnExport(Exporter
exporter)
.
exportAttributes
in class ClassExporterImporterTemplate
object
- fileXML
- exporter
-
WTException
public void checkConflicts(IxbElement fileXML, Importer importer) throws WTException
ClassExporterImporterTemplateGeneral
checkConflicts
in interface ElementImporter
checkConflicts
in class ClassExporterImporterTemplateGeneral
fileXML
- the XML element to be imported.importer
- The Importer
instance that represents the context of the import operation.
WTException
public Object findAmongExistingObjects(IxbElement fileXML, Importer importer) throws WTException
ClassExporterImporterTemplate
findAmongExistingObjects
in class ClassExporterImporterTemplate
fileXML
- importer
-
WTException
private Object findAmongExistingObjectsForImport(IxbElement fileXML, Importer importer) throws WTException
fileXML
- XML file that contains information about the WTPartUsageLink
WTException
public Object createObject(IxbElement fileXML, Importer importer) throws WTException
createObject
in class ClassExporterImporterTemplate
fileXML
- XML file that contains information about the WTPartUsageLinkimporter
-
WTException
public Object storeObject(Object object, IxbElement fileXML, Importer importer) throws WTException
storeObject
in class ClassExporterImporterTemplate
fileXML
- XML file that contains information about the WTPartUsageLinkobject
- importer
-
WTException
public int getImportPriority() throws WTException
ClassExporterImporterTemplateGeneral
getImportPriority
in interface ElementImporter
getImportPriority
in class ClassExporterImporterTemplateGeneral
WTException
public Object importObjectAttributes(Object ob, IxbElement fileXML, Importer importer) throws WTException
importObjectAttributes
in class ClassExporterImporterTemplate
ob
- The WTPartUsageLinkfileXML
- XML file that contains information about the WTPartUsageLinkimporter
-
WTException
public Object importObjectAttributesAfterStore(Object ob, IxbElement fileXML, Importer importer) throws WTException
importObjectAttributesAfterStore
in class ClassExporterImporterTemplate
ob
- The WTPartUsageLinkfileXML
- XML file that contains information about the WTPartUsageLinkimporter
-
WTException
private static void PP(String s)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |