|
|||||||||||
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.netmarkets.NotebookIXHandler
This class is the import handler for NotebookSpec. The DTD for the object is as follows:
Nested Class Summary |
Nested classes inherited from class wt.ixb.publicforhandlers.ClassExporterImporterTemplate |
ClassExporterImporterTemplate.ContentHolderCommitListener |
Field Summary | |
private static String |
_rb
|
(package private) ResourceBundle |
resources
|
private static NMProjectConstants.ForumAndNotebookSpecInfo |
specTags
|
Fields inherited from class wt.ixb.publicforhandlers.ClassExporterImporterTemplate |
|
Fields inherited from class wt.ixb.publicforhandlers.ClassExporterImporterTemplateGeneral |
CONFLICT_RESOURCE |
Constructor Summary | |
NotebookIXHandler()
|
Method Summary | |
Object |
createBookmark(IxbElement elem,
Importer imp,
CollaborationContainer container)
|
Object |
createNotebook(IxbElement elem,
Importer imp)
|
Object |
createNotebookFolder(IxbElement elem,
Importer imp,
CollaborationContainer parent)
|
Object |
createObject(IxbElement elem,
Importer imp)
Creates new instance of Windchill object. |
void |
exportBookmark(Bookmark bookmark,
IxbElement bookmarkElement,
Exporter exporter)
|
void |
exportNotebook(Notebook notebook,
IxbElement notebook_elem,
Exporter exporter)
|
void |
exportNotebookFolder(NotebookFolder folder,
IxbElement folder_elem,
Exporter exporter,
String folder_path)
|
void |
exportObject(Object obj,
Exporter exporter)
Exports the specified object in context given by parameter exporter. |
void |
exportSubjectOfNotebook(Object subject,
IxbElement notebook_elem,
Exporter exporter)
|
Object |
findAmongExistingObjects(IxbElement elem,
Importer imp)
Implements typical way of finding whether object from given XML file exists already in Windchill database. |
private String |
getDefaultName()
|
private ObjectIdentifier |
getId(Object obj)
|
int |
getImportPriority()
Return the import priority of the object type represented by this import handler. |
private Notebook |
getNotebook()
|
private CollaborationContainer |
getParent(String folder_path)
|
private NotebookFolder |
getSubFolder(CollaborationContainer container,
String folder_name)
|
Object |
storeObject(Object ob,
IxbElement elem,
Importer imp)
That is the general template how to store object. |
Methods inherited from class wt.ixb.publicforhandlers.ClassExporterImporterTemplate |
createFileXMLOnExport, exportAttributes, finalizeImportObject, getRootTag, importElement, importObjectAttributes, importObjectAttributesAfterStore, isObjectIgnored, isObjectNew, outputLog, rememberNewObInfo, setObjectIgnored, setObjectIsNew, storeAdditionalInfo, storeElement |
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 |
private static final String _rb
private static final NMProjectConstants.ForumAndNotebookSpecInfo specTags
ResourceBundle resources
Constructor Detail |
public NotebookIXHandler()
Method Detail |
public void exportObject(Object obj, Exporter exporter) throws WTException
ClassExporterImporterTemplate
createFileXMLOnExport(Exporter exporter)
, which
create an IxbDocument
with the root tag. See getRootTag()
;
exportAttributes (Object object, IxbElement fileXML,
Exporter exporter)
which will export the attributes according
to the DTD. The parameter fileXML is the returned vlue from createFileXMLOnExport(Exporter
exporter)
.
storeElement(Object object, IxbElement fileXML, Exporter
exporter)
which will store the fileXML into an xml-file.
wt.ixb.tuner.ExportActionHelper.performPreExportAction ()
and
wt.ixb.tuner.ExportActionHelper.performPostExportAction ()
will be called before and after th above three protected methods,
respectively.
exportObject
in interface ClassExporter
exportObject
in class ClassExporterImporterTemplate
obj
- exporter
- The Exporter
instance that represents the context of the export operation.
WTException
public void exportNotebook(Notebook notebook, IxbElement notebook_elem, Exporter exporter) throws WTException
WTException
public void exportSubjectOfNotebook(Object subject, IxbElement notebook_elem, Exporter exporter) throws WTException
WTException
public void exportNotebookFolder(NotebookFolder folder, IxbElement folder_elem, Exporter exporter, String folder_path) throws WTException
WTException
public void exportBookmark(Bookmark bookmark, IxbElement bookmarkElement, Exporter exporter) throws WTException
WTException
public Object createObject(IxbElement elem, Importer imp) throws WTException
ClassExporterImporterTemplate
createObject
in class ClassExporterImporterTemplate
elem
- imp
-
WTException
public Object createNotebook(IxbElement elem, Importer imp) throws WTException
WTException
public Object createNotebookFolder(IxbElement elem, Importer imp, CollaborationContainer parent) throws WTException
WTException
public Object createBookmark(IxbElement elem, Importer imp, CollaborationContainer container) throws WTException
WTException
private String getDefaultName()
public int getImportPriority() throws WTException
ClassExporterImporterTemplateGeneral
getImportPriority
in interface ElementImporter
getImportPriority
in class ClassExporterImporterTemplateGeneral
WTException
public Object findAmongExistingObjects(IxbElement elem, Importer imp) throws WTException
ClassExporterImporterTemplate
findAmongExistingObjects
in class ClassExporterImporterTemplate
elem
- imp
-
WTException
public Object storeObject(Object ob, IxbElement elem, Importer imp) throws WTException
ClassExporterImporterTemplate
storeObject
in class ClassExporterImporterTemplate
ob
- elem
- imp
-
WTException
private CollaborationContainer getParent(String folder_path) throws WTException
WTException
private NotebookFolder getSubFolder(CollaborationContainer container, String folder_name) throws WTException
WTException
private Notebook getNotebook() throws WTException
WTException
private ObjectIdentifier getId(Object obj)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |