wt.ixb.handlers.forclasses
Class ExpImpForWTPart60
java.lang.Object
wt.ixb.publicforhandlers.ClassExporterImporterTemplateGeneral
wt.ixb.publicforhandlers.ClassExporterImporterTemplate
wt.ixb.publicforhandlers.ExpImpForVersionedObject
wt.ixb.handlers.forclasses.ExpImpForWTPart60
- All Implemented Interfaces:
- ClassExporter, ClassExporterImporter, ElementImporter
- public class ExpImpForWTPart60
- extends ExpImpForVersionedObject
Method Summary |
void |
checkConflicts(IxbElement fileXML,
Importer importer)
Checks conflicts that can arise while import process. |
Versioned |
createNewObject(IxbElement fileXML,
Importer importer)
|
protected void |
exportAttributes(Object object,
IxbDocument fileXML,
Exporter exporter)
Export the attributes according to the DTD. |
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. |
private static void |
PP(String s)
|
private static void |
printout(String s)
|
void |
removeAllLinks(Object ob)
|
private void |
removeDescribeLinks(WTPart part)
|
private void |
removeReferenceLinks(WTPart part)
|
private void |
removeUsageLinks(WTPart part)
|
Methods inherited from class wt.ixb.publicforhandlers.ExpImpForVersionedObject |
createEmptyObject, createObject, finalizeImport, findAmongExistingObjects, getActionName, getCheckoutFolder, getMaster, getMaster, importElement, outputLog, previewElement, storeObject, storeObjectsBirthUfid, storeVersionedObject |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExpImpForWTPart60
public ExpImpForWTPart60()
getRootTag
protected String getRootTag()
- Description copied from class:
ClassExporterImporterTemplate
- Returns the desired root tag for the object type to be exported, e.g.
"WTDocument".
Individual class handlers are expected to implement this method, otherwise
the importer might be confused to choosed the exact class handler
during import.
Supported API: true
- Overrides:
getRootTag
in class ClassExporterImporterTemplate
- Returns:
- String
exportAttributes
protected void exportAttributes(Object object,
IxbDocument fileXML,
Exporter exporter)
throws WTException
- Description copied from class:
ClassExporterImporterTemplate
- Export the attributes according to the DTD. The parameter fileXML
is the returned vlue from the method
createFileXMLOnExport(Exporter
exporter)
.
Supported API: true
- Overrides:
exportAttributes
in class ClassExporterImporterTemplate
- Parameters:
object
- fileXML
- exporter
-
- Throws:
WTException
checkConflicts
public void checkConflicts(IxbElement fileXML,
Importer importer)
throws WTException
- Description copied from class:
ClassExporterImporterTemplateGeneral
- Checks conflicts that can arise while import process.
Supported API: true
- Specified by:
checkConflicts
in interface ElementImporter
- Overrides:
checkConflicts
in class ClassExporterImporterTemplateGeneral
- Parameters:
fileXML
- the XML element to be imported.importer
- The Importer
instance that represents the context of the import operation.
- Throws:
WTException
getObjectClassName
public String getObjectClassName()
- Overrides:
getObjectClassName
in class ExpImpForVersionedObject
getObjectMasterClassName
public String getObjectMasterClassName()
- Overrides:
getObjectMasterClassName
in class ExpImpForVersionedObject
createNewObject
public Versioned createNewObject(IxbElement fileXML,
Importer importer)
throws WTException
- Specified by:
createNewObject
in class ExpImpForVersionedObject
- Throws:
WTException
importObjectAttributes
public Object importObjectAttributes(Object ob,
IxbElement fileXML,
Importer importer)
throws WTException
- Description copied from class:
ClassExporterImporterTemplate
- Imports class specific atributes from the XML file.
This method should be implemented for most of the class handlers.
If the object class inherits from another replicated class (for example,
inherits from WTPart)
then it generally should give a new implementation for this method;
in this implementation it should at first call importObjectAttributes
of its ansector
Supported API: true
- Overrides:
importObjectAttributes
in class ClassExporterImporterTemplate
- Parameters:
ob
- fileXML
- importer
-
- Returns:
- Object
- Throws:
WTException
importObjectAttributesAfterStore
public Object importObjectAttributesAfterStore(Object object,
IxbElement fileXML,
Importer importer)
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:
object
- fileXML
- importer
-
- Returns:
- Object
- Throws:
WTException
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
getObjectDisplayID
public String getObjectDisplayID(IxbElement fileXML,
Importer importer)
throws WTException
- Description copied from class:
ClassExporterImporterTemplateGeneral
- Return the localized identity of the element that will be used in import operation. This is mostly for localized log purpose.
Supported API: true
- Specified by:
getObjectDisplayID
in interface ElementImporter
- Overrides:
getObjectDisplayID
in class ClassExporterImporterTemplateGeneral
- Parameters:
fileXML
- the XML element to be imported.importer
- The Importer
instance that represents the context of the import operation.
- Returns:
- String
- Throws:
WTException
PP
private static void PP(String s)
removeUsageLinks
private void removeUsageLinks(WTPart part)
throws WTException
- Throws:
WTException
removeDescribeLinks
private void removeDescribeLinks(WTPart part)
throws WTException
- Throws:
WTException
removeReferenceLinks
private void removeReferenceLinks(WTPart part)
throws WTException
- Throws:
WTException
removeAllLinks
public void removeAllLinks(Object ob)
throws WTException
- Overrides:
removeAllLinks
in class ExpImpForVersionedObject
- Throws:
WTException
printout
private static void printout(String s)