Extension SDK 9.0.5

oracle.jdeveloper.model
Class JProjectMigrator

java.lang.Object
  extended byoracle.ide.migration.NodeMigrator
      extended byoracle.jdeveloper.model.JProjectMigrator

public class JProjectMigrator
extends NodeMigrator

JProject migrator. To lookup this migrator use the method NodeMigrator.getNodeMigrator(java.lang.String) specifying the name identifier: JProjectMigrator@MIGRATOR_NAME.


Field Summary
static java.lang.String MIGRATOR_NAME
          String identifier used to lookup a specific node migrator.
 
Fields inherited from class oracle.ide.migration.NodeMigrator
MIGRATOR_MAP_DATA
 
Constructor Summary
JProjectMigrator()
           
 
Method Summary
 MigrationInfo getMigrationInfo(Node node)
          Get the current MigrationInfo for the specified node.
protected  java.lang.String getMsg(MigrationInfo[] infos)
          Get the wizard welcome page message.
protected  java.lang.String getSummaryMsg(MigrationInfo[] infos)
          Get the message for the wizard summary page.
protected  java.lang.String getTitle()
          Get the wizard title.
 MigrationInfo[] migrate(MigrationInfo[] infos)
          Method called to migrate the nodes recorded in the specified MigrationInfo.
 
Methods inherited from class oracle.ide.migration.NodeMigrator
addHelper, checkVersions, doMigration, doMigration, finishMigration, forceSave, getHelpers, getInfoToMigratorMap, getLookupKey, getLookupKey, getLookupKey, getMigrationInfos, getNodeMigrator, getPages, invokeWizard, mapInfoToMigrator, migrate, recache, removeHelper
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MIGRATOR_NAME

public static final java.lang.String MIGRATOR_NAME
String identifier used to lookup a specific node migrator. This particular constant identifies the project migrator. Migrator name identifiers must be the class name of the node the migrator migrates.

Constructor Detail

JProjectMigrator

public JProjectMigrator()
Method Detail

migrate

public MigrationInfo[] migrate(MigrationInfo[] infos)
Description copied from class: NodeMigrator
Method called to migrate the nodes recorded in the specified MigrationInfo. This method should do the migration without popping-up an end user graphical user interface.

Specified by:
migrate in class NodeMigrator
Parameters:
infos - information about the nodes that may require migration. All nodes held in the MigrationInfo must be of the same type.
Returns:
migration information indicating if requested migration happened.

getMigrationInfo

public MigrationInfo getMigrationInfo(Node node)
Description copied from class: NodeMigrator
Get the current MigrationInfo for the specified node.

Specified by:
getMigrationInfo in class NodeMigrator
Parameters:
node - the target node for which migration information is being requested.

getMsg

protected java.lang.String getMsg(MigrationInfo[] infos)
Description copied from class: NodeMigrator
Get the wizard welcome page message. Subclasses must implement this method to define the welcome page message.

Specified by:
getMsg in class NodeMigrator
Returns:
the welcome page message.

getTitle

protected java.lang.String getTitle()
Description copied from class: NodeMigrator
Get the wizard title. Subclasses must implement this method to define the wizard title.

Specified by:
getTitle in class NodeMigrator
Returns:
the wizard title.

getSummaryMsg

protected java.lang.String getSummaryMsg(MigrationInfo[] infos)
Description copied from class: NodeMigrator
Get the message for the wizard summary page. Subclasses must implement this method to define the summary page message.

Specified by:
getSummaryMsg in class NodeMigrator
Returns:
the summary page message.

Extension SDK

 

Copyright © 1997, 2004, Oracle. All rights reserved.