|
|||||||||||
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.publicforhandlers.ExpImpForVersionedObject
wt.ixb.handlers.forclasses.ExpImpForWTDocument
Nested Class Summary |
Nested classes inherited from class wt.ixb.publicforhandlers.ClassExporterImporterTemplate |
ClassExporterImporterTemplate.ContentHolderCommitListener |
Field Summary |
Fields inherited from class wt.ixb.publicforhandlers.ExpImpForVersionedObject |
actionName, DEBUG, masterIsNew, NUMBER, targetObjs |
Fields inherited from class wt.ixb.publicforhandlers.ClassExporterImporterTemplate |
|
Fields inherited from class wt.ixb.publicforhandlers.ClassExporterImporterTemplateGeneral |
CONFLICT_RESOURCE |
Constructor Summary | |
ExpImpForWTDocument()
|
Method Summary | |
void |
checkConflicts(IxbElement fileXML,
Importer importer)
Checks conflicts that can arise while import process. |
Versioned |
createEmptyObject(IxbElement fileXML,
Importer importer,
Mastered master)
Creates an empty object with the specified master and sets related attributes based upon values in the xml archive. |
Versioned |
createNewObject(IxbElement fileXML,
Importer importer)
|
protected void |
exportAttributes(Object object,
IxbDocument fileXML,
Exporter exporter)
Export the attributes according to the DTD. |
protected void |
exportCommonAttributes(Object ob,
IxbElement fileXML,
Exporter exporter,
boolean exportOnlyReference)
|
void |
exportObjectRef(Object object,
IxbElement element,
Exporter exporter)
|
Object |
findObjectFromXML(IxbElement element,
Importer importer)
|
int |
getImportPriority()
Return the import priority of the object type represented by this import handler. |
String |
getObjectClassName()
|
String |
getObjectDisplayID(IxbElement fileXML,
Importer importer)
Return the localized identity of the element that will be used in import operation. |
String |
getObjectMasterClassName()
|
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)
Imports class specific atributes from the XML file. |
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. |
boolean |
objectExistPriorImport(IxbElement element,
Importer importer)
|
private static void |
PP(String s)
|
private static void |
printout(String s)
|
Methods inherited from class wt.ixb.publicforhandlers.ExpImpForVersionedObject |
createObject, finalizeImport, findAmongExistingObjects, getActionName, getCheckoutFolder, getMaster, getMaster, importElement, outputLog, previewElement, removeAllLinks, storeObject, storeObjectsBirthUfid, storeVersionedObject |
Methods inherited from class wt.ixb.publicforhandlers.ClassExporterImporterTemplate |
createFileXMLOnExport, exportObject, finalizeImportObject, isObjectIgnored, isObjectNew, rememberNewObInfo, setObjectIgnored, setObjectIsNew, storeAdditionalInfo, storeElement |
Methods inherited from class wt.ixb.publicforhandlers.ClassExporterImporterTemplateGeneral |
finalizeCheckConflicts, finalizeExport, getAdditionalImportPriority, prepareForCheckConflicts, prepareForImport |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ExpImpForWTDocument()
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 String getObjectClassName()
getObjectClassName
in class ExpImpForVersionedObject
public String getObjectMasterClassName()
getObjectMasterClassName
in class ExpImpForVersionedObject
public Versioned createNewObject(IxbElement fileXML, Importer importer) throws WTException
createNewObject
in class ExpImpForVersionedObject
WTException
public Object importObjectAttributes(Object ob, IxbElement fileXML, Importer importer) throws WTException
ClassExporterImporterTemplate
importObjectAttributes
in class ClassExporterImporterTemplate
ob
- 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 int getImportPriority() throws WTException
ClassExporterImporterTemplateGeneral
getImportPriority
in interface ElementImporter
getImportPriority
in class ClassExporterImporterTemplateGeneral
WTException
private static void PP(String s)
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
public Object findObjectFromXML(IxbElement element, Importer importer) throws WTException
findObjectFromXML
in interface ImpOfObjectRefIfc
WTException
public boolean objectExistPriorImport(IxbElement element, Importer importer) throws WTException
objectExistPriorImport
in interface ImpOfObjectRefIfc
WTException
public void exportObjectRef(Object object, IxbElement element, Exporter exporter) throws WTException
exportObjectRef
in interface ExpOfObjectRefIfc
WTException
public Versioned createEmptyObject(IxbElement fileXML, Importer importer, Mastered master) throws WTException
createEmptyObject
in class ExpImpForVersionedObject
fileXML
- the xmlimporter
- the importermaster
- the existing master
WTException
- when the operation failsprotected void exportCommonAttributes(Object ob, IxbElement fileXML, Exporter exporter, boolean exportOnlyReference) throws WTException
WTException
private static void printout(String s)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |