xml element.
This handler will also invoke the importer for the
milestone and deliverableobject.
Export is not supported in this release.
Method Summary |
private static void |
addNodes(Vector to_nodes,
Vector from_nodes)
|
private void |
addNodeToSummary(SummaryActivity summ,
ProjectNode node)
|
private void |
addPredecessor(ProjectNode node,
ProjectNode pred,
ProjectLinkType type)
|
private void |
checkModeCompatibility(ExecutionObject exec_obj)
|
Object |
createObject(IxbElement elem,
Importer imp)
|
private static boolean |
doAll(Exporter exporter)
|
private static boolean |
doMilestones(Exporter exporter)
|
private static boolean |
doProjectActivities(Exporter exporter)
|
static void |
exportContainments(ProjectPlan plan,
IxbElement plan_elem,
Exporter exporter)
|
static void |
exportDeliverables(ProjectPlan plan,
IxbElement plan_elem,
Exporter exporter)
|
static void |
exportDependencies(ProjectPlan plan,
IxbElement plan_elem,
Exporter exporter)
|
void |
exportObject(Object obj,
Exporter exporter)
Exports the specified object in context given by parameter exporter. |
void |
exportPlan(ProjectPlan plan,
IxbElement plan_elem,
Exporter exporter)
duration?,
projectVariable*)>
|
private static void |
exportProjectMode(ProjectPlan plan,
IxbElement elem)
|
static void |
exportProjectNodes(ProjectPlan plan,
IxbElement plan_elem,
Exporter exporter)
|
static void |
exportResourceLinks(ProjectPlan plan,
IxbElement plan_elem,
Exporter exporter)
|
static void |
exportResources(ProjectPlan plan,
IxbElement plan_elem,
Exporter exporter)
|
static void |
exportSpecificPlan(ProjectPlan plan,
IxbElement plan_elem,
Exporter exporter,
boolean doNodes,
boolean doDeliverables,
boolean doResources)
|
private static void |
exportSuccessor(ProjectNode node,
ProjectNode succNode,
IxbElement plan_elem,
ProjectLinkType type,
Exporter exporter)
|
Object |
finalizeImportObject(boolean isNew,
Object obj,
IxbElement elem,
Importer imp)
|
private static Vector |
getIncludedNodes(SummaryActivity summary,
Exporter exporter,
Hashtable incl_table,
ProjectLinkType type)
|
private static Vector |
getSuccessors(ProjectNode node,
Exporter exporter,
Hashtable succ_table,
Hashtable incl_table,
ProjectLinkType type)
|
void |
importContainment(ProjectPlan plan,
IxbElement elem,
Importer imp)
|
void |
importDependency(ProjectPlan plan,
IxbElement elem,
Importer imp)
Imports dependency associations between project nodes. |
private static void |
importProjectMode(ProjectPlan plan,
IxbElement planMode,
Importer imp)
|
void |
importResourceAssignment(ProjectPlan plan,
IxbElement elem,
Importer imp)
|
private static boolean |
isIncluded(ProjectNode node,
Exporter exporter)
|
private boolean |
listGood(List nodeList)
|
private static String |
showVector(Vector nodes)
|
Object |
storeObject(Object obj,
IxbElement elem,
Importer imp)
|
private void |
validateNodes(ProjectPlan plan,
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
activityClasses
private static final List activityClasses
VERBOSE
private static final boolean VERBOSE
ProjectPlanIxHandler
public ProjectPlanIxHandler()
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
exportPlan
public void exportPlan(ProjectPlan plan,
IxbElement plan_elem,
Exporter exporter)
throws WTException
duration?,
projectVariable*)>
- Throws:
WTException
exportSpecificPlan
public static void exportSpecificPlan(ProjectPlan plan,
IxbElement plan_elem,
Exporter exporter,
boolean doNodes,
boolean doDeliverables,
boolean doResources)
throws WTException
- Throws:
WTException
exportProjectNodes
public static void exportProjectNodes(ProjectPlan plan,
IxbElement plan_elem,
Exporter exporter)
throws WTException
- Throws:
WTException
exportDependencies
public static void exportDependencies(ProjectPlan plan,
IxbElement plan_elem,
Exporter exporter)
throws WTException
- Throws:
WTException
getSuccessors
private static Vector getSuccessors(ProjectNode node,
Exporter exporter,
Hashtable succ_table,
Hashtable incl_table,
ProjectLinkType type)
throws WTException
- Throws:
WTException
isIncluded
private static boolean isIncluded(ProjectNode node,
Exporter exporter)
throws WTException
- Throws:
WTException
showVector
private static String showVector(Vector nodes)
throws WTException
- Throws:
WTException
addNodes
private static void addNodes(Vector to_nodes,
Vector from_nodes)
throws WTException
- Throws:
WTException
getIncludedNodes
private static Vector getIncludedNodes(SummaryActivity summary,
Exporter exporter,
Hashtable incl_table,
ProjectLinkType type)
throws WTException
- Throws:
WTException
exportSuccessor
private static void exportSuccessor(ProjectNode node,
ProjectNode succNode,
IxbElement plan_elem,
ProjectLinkType type,
Exporter exporter)
throws WTException
- Throws:
WTException
exportContainments
public static void exportContainments(ProjectPlan plan,
IxbElement plan_elem,
Exporter exporter)
throws WTException
- Throws:
WTException
exportDeliverables
public static void exportDeliverables(ProjectPlan plan,
IxbElement plan_elem,
Exporter exporter)
throws WTException
- Throws:
WTException
exportResources
public static void exportResources(ProjectPlan plan,
IxbElement plan_elem,
Exporter exporter)
throws WTException
- Throws:
WTException
exportResourceLinks
public static void exportResourceLinks(ProjectPlan plan,
IxbElement plan_elem,
Exporter exporter)
throws WTException
- Throws:
WTException
createObject
public Object createObject(IxbElement elem,
Importer imp)
throws WTException
The tags 'manager', 'managerInfo' and 'creator' are ignored in import.
- Specified by:
createObject
in class ClassExporterImporterTemplate
- Parameters:
elem
- imp
-
- Returns:
- Object
- Throws:
WTException
checkModeCompatibility
private void checkModeCompatibility(ExecutionObject exec_obj)
throws WTException
- 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
finalizeImportObject
public Object finalizeImportObject(boolean isNew,
Object obj,
IxbElement elem,
Importer imp)
throws WTException
- Overrides:
finalizeImportObject
in class ClassExporterImporterTemplate
- Throws:
WTException
validateNodes
private void validateNodes(ProjectPlan plan,
Importer imp)
throws WTException
- Throws:
WTException
listGood
private boolean listGood(List nodeList)
throws WTException
- Throws:
WTException
importDependency
public void importDependency(ProjectPlan plan,
IxbElement elem,
Importer imp)
throws WTException
- Imports dependency associations between project nodes. The dtd is as follows.
- Throws:
WTException
addPredecessor
private void addPredecessor(ProjectNode node,
ProjectNode pred,
ProjectLinkType type)
throws WTException
- Throws:
WTException
importContainment
public void importContainment(ProjectPlan plan,
IxbElement elem,
Importer imp)
throws WTException
- Throws:
WTException
addNodeToSummary
private void addNodeToSummary(SummaryActivity summ,
ProjectNode node)
throws WTException
- Throws:
WTException
importResourceAssignment
public void importResourceAssignment(ProjectPlan plan,
IxbElement elem,
Importer imp)
throws WTException
- Throws:
WTException
exportProjectMode
private static void exportProjectMode(ProjectPlan plan,
IxbElement elem)
throws WTException
- Throws:
WTException
importProjectMode
private static void importProjectMode(ProjectPlan plan,
IxbElement planMode,
Importer imp)
throws WTException
- Throws:
WTException
doAll
private static boolean doAll(Exporter exporter)
throws WTException
- Throws:
WTException
doMilestones
private static boolean doMilestones(Exporter exporter)
throws WTException
- Throws:
WTException
doProjectActivities
private static boolean doProjectActivities(Exporter exporter)
throws WTException
- Throws:
WTException