|
Extension SDK 10.1.2 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.ide.migration.MigrationInfo
Version of information about a node requiring migration. Information contained includes the node itself, the current and actual document versions, and the vesion and migration status.
When addins request the node encapsulated by this class, they should
request the node copy using the method MigrationInfo@getNodeCopy
.
Data from the copy can be accessed without notification events being
sent. Addins should never request the original node. The original node
access is only provided for NodeMigrator
writers.
NodeMigrator
providers need to extend this class and implement
the abstract method copyNode(oracle.ide.model.Node)
.
Nested Class Summary | |
static class |
MigrationInfo.MigrationStatus
Status class used to define the outer class migration status enums. |
static class |
MigrationInfo.Status
Base status class. |
static class |
MigrationInfo.VersionStatus
Status class used to define the outer class version status enums. |
Field Summary | |
static MigrationInfo.MigrationStatus |
MIGRATION_CANCELED
Migration status indicating the migration of the node was canceled by the user. |
static MigrationInfo.MigrationStatus |
MIGRATION_DONE
Migration status indicating the node associated with this migration information was carried out successfully. |
static MigrationInfo.MigrationStatus |
MIGRATION_ERROR
Migration status indicating the migration of the node was not carried out properly. |
static MigrationInfo.MigrationStatus |
MIGRATION_NOT_NEEDED
Migration status indicating the migration of the node was not needed. |
static MigrationInfo.MigrationStatus |
MIGRATION_NOT_POSSIBLE
Migration status indicating the migration of the node was not carried out. |
static MigrationInfo.MigrationStatus |
MIGRATION_PENDING
Migration status indicating the node is ready for migration. |
static MigrationInfo.VersionStatus |
VERSION_CURRENT
Vesion status indicating the node version is the same as the current node version. |
static MigrationInfo.VersionStatus |
VERSION_NEWER
Vesion status indicating the node version is newer that the current node version. |
static MigrationInfo.VersionStatus |
VERSION_OLDER
Vesion status indicating the node version is older that the current node version. |
static MigrationInfo.VersionStatus |
VERSION_UNKNOWN
Vesion status indicating the node version could not be determined. |
Constructor Summary | |
protected |
MigrationInfo(Node node)
Constructor. |
Method Summary | |
protected abstract Node |
copyNode(Node node)
Created a copy of the specified Node . |
protected void |
ensureVersionInfo()
Figure out the version information. |
java.lang.String |
getCurrentVersion()
Get the current file format version used if the node were to be saved now. |
MigrationInfo.MigrationStatus |
getMigrationStatus()
Get the migration status. |
Node |
getNodeCopy()
Get the Node whose version information is recorded here. |
Node |
getOriginalNode()
Get the original node. |
java.lang.String |
getVersion()
Get the node's file format version stored in the document pointed to by the node's url. |
MigrationInfo.Status |
getVersionStatus()
Get the version status. |
void |
setMigrationStatus(MigrationInfo.MigrationStatus status)
Set the migration status. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final MigrationInfo.MigrationStatus MIGRATION_DONE
public static final MigrationInfo.MigrationStatus MIGRATION_ERROR
public static final MigrationInfo.MigrationStatus MIGRATION_PENDING
public static final MigrationInfo.MigrationStatus MIGRATION_CANCELED
public static final MigrationInfo.MigrationStatus MIGRATION_NOT_NEEDED
public static final MigrationInfo.MigrationStatus MIGRATION_NOT_POSSIBLE
VERSION_NEWER
.
public static final MigrationInfo.VersionStatus VERSION_UNKNOWN
public static final MigrationInfo.VersionStatus VERSION_OLDER
public static final MigrationInfo.VersionStatus VERSION_NEWER
public static final MigrationInfo.VersionStatus VERSION_CURRENT
Constructor Detail |
protected MigrationInfo(Node node)
node
- the node whose version information is being specified.Method Detail |
public Node getNodeCopy()
Node
whose version information is recorded here. The
returned node is a copy of the original node. Migration helpers must
only use the copy of the node to access node data.
Node
.public Node getOriginalNode()
getNodeCopy()
and
operate on the copy.
public MigrationInfo.Status getVersionStatus()
#OLDER
, #NEWER
, #CURRENT
, or #UNKNOWN
.
public MigrationInfo.MigrationStatus getMigrationStatus()
MigrationInfo.MigrationStatus
declared by this class.
public void setMigrationStatus(MigrationInfo.MigrationStatus status)
MigrationInfo.MigrationStatus
declared by this class.
status
- the migration status of the node.public java.lang.String getCurrentVersion()
public java.lang.String getVersion()
protected abstract Node copyNode(Node node)
Node
. In general,
NodeMigrator
s extend this class and implement this method.
node
- the node to copy.
protected void ensureVersionInfo()
url
.
|
Extension SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2004, Oracle. All rights reserved.