|
|||||||||||
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.ExpImpForBusinessEntity
Supported API: true
Extendable: false
Nested Class Summary |
Nested classes inherited from class wt.ixb.publicforhandlers.ClassExporterImporterTemplate |
ClassExporterImporterTemplate.ContentHolderCommitListener |
Field Summary | |
private static String |
CLASSNAME
|
private static String |
EXPORTED_BUSINESS_ENTITY
|
private static String |
RESOURCE
|
Fields inherited from class wt.ixb.publicforhandlers.ClassExporterImporterTemplate |
|
Fields inherited from class wt.ixb.publicforhandlers.ClassExporterImporterTemplateGeneral |
CONFLICT_RESOURCE |
Constructor Summary | |
ExpImpForBusinessEntity()
|
Method Summary | |
private void |
checkConflictForAttributes(BusinessEntityDefaultView existingView,
IxbElement fileXML,
Importer importer)
Check the conflicts for the BusinessEntity found from database against the XML file. |
void |
checkConflicts(IxbElement fileXML,
Importer importer)
Supported API: true |
private BusinessEntityDefaultView |
createBusinessEntity(IxbElement fileXML,
Importer importer)
To create a brand new BusinessEntity instance and persisted into database absed on the information provided by the XML file |
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)
Supported API: true |
private Object |
findAmongExistingObjectsForImport(IxbElement fileXML,
Importer importer)
Implements typical way of finding whether object from given XML file exists already in Windchill database for import application. |
private BusinessEntityDefaultView |
getBusinessEntityDefaultViewByName(String name)
Find the ClassificationNodeDefaultView by full path. |
int |
getImportPriority()
Return the import priority of the object type represented by this import handler. |
String |
getObjectDisplayID(IxbElement fileXML,
Importer importer)
Return the localized identity of the element that will be used in import operation. |
protected String |
getRootTag()
Returns "BusinessEntity" as the root tag of the XML file. |
Object |
importElement(IxbElement fileXML,
Importer importer)
Imports XML element in context given by importer parameter. |
Object |
importObjectAttributesAfterStore(Object object,
IxbElement fileXML,
Importer importer)
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. |
void |
outputLog(Object ob,
Importer importer)
Output log for imported object. |
private static void |
PP(String s)
|
Methods inherited from class wt.ixb.publicforhandlers.ClassExporterImporterTemplate |
createFileXMLOnExport, exportObject, finalizeImportObject, importObjectAttributes, isObjectIgnored, isObjectNew, rememberNewObInfo, setObjectIgnored, setObjectIsNew, storeAdditionalInfo, storeElement, storeObject |
Methods inherited from class wt.ixb.publicforhandlers.ClassExporterImporterTemplateGeneral |
finalizeCheckConflicts, finalizeExport, finalizeImport, getAdditionalImportPriority, prepareForCheckConflicts, prepareForImport, previewElement |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private static final String EXPORTED_BUSINESS_ENTITY
Constructor Detail |
public ExpImpForBusinessEntity()
Method Detail |
protected String getRootTag()
getRootTag
in class ClassExporterImporterTemplate
protected void exportAttributes(Object object, IxbDocument fileXML, Exporter exporter) throws WTException
createFileXMLOnExport(Exporter
exporter)
.
exportAttributes
in class ClassExporterImporterTemplate
object
- fileXML
- exporter
-
WTException
public Object findAmongExistingObjects(IxbElement fileXML, Importer importer) throws WTException
findAmongExistingObjects
in class ClassExporterImporterTemplate
fileXML
- importer
-
WTException
public void checkConflicts(IxbElement fileXML, Importer importer) throws WTException
checkConflicts
in interface ElementImporter
checkConflicts
in class ClassExporterImporterTemplateGeneral
fileXML
- importer
-
WTException
public Object importElement(IxbElement fileXML, Importer importer) throws WTException
BusinessEntityDefaultView
, which might be newly created
or already existed in the datastore.
importElement
in interface ElementImporter
importElement
in class ClassExporterImporterTemplate
fileXML
- importer
-
WTException
public Object createObject(IxbElement fileXML, Importer importer) throws WTException
createObject
in class ClassExporterImporterTemplate
fileXML
- importer
-
WTException
public int getImportPriority() throws WTException
ClassExporterImporterTemplateGeneral
getImportPriority
in interface ElementImporter
getImportPriority
in class ClassExporterImporterTemplateGeneral
WTException
private BusinessEntityDefaultView getBusinessEntityDefaultViewByName(String name) throws WTException
WTException
public String getObjectDisplayID(IxbElement fileXML, Importer importer) throws WTException
ClassExporterImporterTemplateGeneral
getObjectDisplayID
in interface ElementImporter
getObjectDisplayID
in class ClassExporterImporterTemplateGeneral
fileXML
- the XML element to be imported.importer
- The Importer
instance that represents the context of the import operation.
WTException
private void checkConflictForAttributes(BusinessEntityDefaultView existingView, IxbElement fileXML, Importer importer) throws WTException
existingView
- fileXML
- importer
-
WTException
private BusinessEntityDefaultView createBusinessEntity(IxbElement fileXML, Importer importer) throws WTException
fileXML
- importer
-
WTException
public Object importObjectAttributesAfterStore(Object object, IxbElement fileXML, Importer importer) throws WTException
ClassExporterImporterTemplate
importObjectAttributes
method
because it is called before store object.
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
importObjectAttributesAfterStore
in class ClassExporterImporterTemplate
object
- fileXML
- importer
-
WTException
public void outputLog(Object ob, Importer importer) throws WTException
ClassExporterImporterTemplateGeneral
outputLog
in interface ElementImporter
outputLog
in class ClassExporterImporterTemplate
WTException
private Object findAmongExistingObjectsForImport(IxbElement fileXML, Importer importer) throws WTException
ClassExporterImporterTemplate
WTException
private static void PP(String s)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |