|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for all class handrlers for import.
Supported API: true
Extendable: true
Method Summary | |
void |
checkConflicts(IxbElement elem,
Importer importer)
Checks conflicts that can arise while import process. |
void |
finalizeCheckConflicts(Importer importer)
Called in the end of conflict check process. |
void |
finalizeImport(Importer importer)
Called in the end of the whole ipport process to execute any import process finalization. |
int |
getAdditionalImportPriority(IxbElement fileXML)
Return the additional import priority based on the XML file, supplemented to getImportPriority() . |
int |
getImportPriority()
Return the import priority of the object type represented by this import handler. |
String |
getObjectDisplayID(IxbElement elem,
Importer importer)
Return the localized identity of the element that will be used in import operation. |
Object |
importElement(IxbElement elem,
Importer importer)
Imports XML element in context given by importer parameter. |
void |
outputLog(Object ob,
Importer importer)
Output log for imported object. |
void |
prepareForCheckConflicts(Importer importer)
Called in the beginning of conflict check process prior to the real import or preview. |
void |
prepareForImport(Importer importer)
Called in the end of conflict check process and prior to the real import process. |
void |
previewElement(IxbElement elem,
Importer importer)
Preview XML element in context given by importer parameter. |
Method Detail |
public void prepareForCheckConflicts(Importer importer) throws WTException
importer
- The Importer
instance that represents the context of the import operation.
WTException
public void checkConflicts(IxbElement elem, Importer importer) throws WTException
elem
- the XML element to be imported.importer
- The Importer
instance that represents the context of the import operation.
WTException
public void finalizeCheckConflicts(Importer importer) throws WTException
importer
- The Importer
instance that represents the context of the import operation.
WTException
public void prepareForImport(Importer importer) throws WTException
importer
- The Importer
instance that represents the context of the import operation.
WTException
public int getImportPriority() throws WTException
WTException
public int getAdditionalImportPriority(IxbElement fileXML) throws WTException
getImportPriority()
.
getImportPriority()
returns the same value. In general,
if getImportPriority() returns a smaller value, it will have a higher
import priority; for the XML files with the same value of
getImportPriority()
, the one with a smaller value from
this method will have a higher import priority.The returned value
must be at least 0.
fileXML
-
WTException
public Object importElement(IxbElement elem, Importer importer) throws WTException
elem
- the XML element to be imported.importer
- The Importer
instance that represents the context of the import operation.
WTException
public void finalizeImport(Importer importer) throws WTException
importer
- The Importer
instance that represents the context of the import operation.
WTException
public void previewElement(IxbElement elem, Importer importer) throws WTException
elem
- the XML element to be imported.importer
- The Importer
instance that represents the context of the import operation.
WTException
public String getObjectDisplayID(IxbElement elem, Importer importer) throws WTException
elem
- the XML element to be imported.importer
- The Importer
instance that represents the context of the import operation.
WTException
public void outputLog(Object ob, Importer importer) throws WTException
ob
- he object for the log. It can be a new imported object or an existing one in the datastore.importer
- The Importer
instance that represents the context of the import operation.
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |