wt.projmgmt.ix
Class DeliverableIxHandler
java.lang.Object
wt.ixb.publicforhandlers.ClassExporterImporterTemplateGeneral
wt.ixb.publicforhandlers.ClassExporterImporterTemplate
wt.projmgmt.ix.ExecObjIxHandler
wt.projmgmt.ix.DeliverableIxHandler
- All Implemented Interfaces:
- ClassExporter, ClassExporterImporter, ElementImporter
- public class DeliverableIxHandler
- extends ExecObjIxHandler
Method Summary |
static ExecutionObject |
addDeliverable(ExecutionObject exec_obj,
Deliverable deliverable)
|
Object |
createObject(IxbElement elem,
Importer imp)
|
static void |
exportDeliverable(Deliverable deli,
IxbElement deli_elem,
Exporter exporter)
|
static void |
exportDeliverableAsOrphan(Deliverable deli,
IxbElement elem,
Exporter exporter)
|
void |
exportObject(Object obj,
Exporter exporter)
Exports the specified object in context given by parameter exporter. |
Object |
finalizeImportObject(boolean isNew,
Object obj,
IxbElement elem,
Importer imp)
Some actions in the end of the import process. |
private Enumeration |
getMilestones(IxbElement elem,
Importer imp)
|
private WTObject |
getTargetObject(IxbElement elem,
Importer imp)
|
Object |
storeObject(Object obj,
IxbElement elem,
Importer imp)
|
Methods inherited from class wt.ixb.publicforhandlers.ClassExporterImporterTemplate |
createFileXMLOnExport, exportAttributes, getRootTag, importElement, importObjectAttributes, isObjectIgnored, isObjectNew, outputLog, rememberNewObInfo, setObjectIgnored, setObjectIsNew, storeAdditionalInfo, storeElement |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RESOURCE
private static final String RESOURCE
- See Also:
- Constant Field Values
VERBOSE
private static final boolean VERBOSE
DeliverableIxHandler
public DeliverableIxHandler()
exportObject
public void exportObject(Object obj,
Exporter exporter)
throws WTException
- Description copied from class:
ClassExporterImporterTemplate
- Exports the specified object in context given by parameter exporter.
The implementation of this method is partitioned into several protected
methods. Individual class handlers can override the following protected
methods:
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.
Also, export actions from either client or system registry will be
performed. Specifically, the two methods
wt.ixb.tuner.ExportActionHelper.performPreExportAction ()
and
wt.ixb.tuner.ExportActionHelper.performPostExportAction ()
will be called before and after th above three protected methods,
respectively.
Supported API: true
- Specified by:
exportObject
in interface ClassExporter
- Overrides:
exportObject
in class ClassExporterImporterTemplate
- Parameters:
obj
- exporter
- The Exporter
instance that represents the context of the export operation.
- Throws:
WTException
exportDeliverable
public static void exportDeliverable(Deliverable deli,
IxbElement deli_elem,
Exporter exporter)
throws WTException
- Throws:
WTException
exportDeliverableAsOrphan
public static void exportDeliverableAsOrphan(Deliverable deli,
IxbElement elem,
Exporter exporter)
throws WTException
- Throws:
WTException
createObject
public Object createObject(IxbElement elem,
Importer imp)
throws WTException
- Specified by:
createObject
in class ClassExporterImporterTemplate
- Parameters:
elem
- imp
-
- Returns:
- Object
- Throws:
WTException
storeObject
public Object storeObject(Object obj,
IxbElement elem,
Importer imp)
throws WTException
- Overrides:
storeObject
in class ClassExporterImporterTemplate
- Parameters:
obj
- elem
- imp
-
- Returns:
- Object
- Throws:
WTException
getTargetObject
private WTObject getTargetObject(IxbElement elem,
Importer imp)
throws WTException
- Throws:
WTException
getMilestones
private Enumeration getMilestones(IxbElement elem,
Importer imp)
throws WTException
- Throws:
WTException
addDeliverable
public static ExecutionObject addDeliverable(ExecutionObject exec_obj,
Deliverable deliverable)
throws WTException
- Throws:
WTException
finalizeImportObject
public Object finalizeImportObject(boolean isNew,
Object obj,
IxbElement elem,
Importer imp)
throws WTException
- Description copied from class:
ClassExporterImporterTemplate
- Some actions in the end of the import process.
This method is called even if there were no real import -
i.e. if existing object was found, that represents object to be imported
Supported API: true
- Overrides:
finalizeImportObject
in class ClassExporterImporterTemplate
- Throws:
WTException