public interface WorkingVersion extends AssetVersion
A working version has an identifier which is only unique within the enclosing Asset. A workspace can only have one checked-out working version for each asset.
The parent version is the original version that was checked-out to create the working version.
A working version is modified if any of the asset's values have been changed. This includes setting a property value, setting or getting a new live resource reference, and deleting or un-deleting the resource.
A working version can be marked as deleted. When checked in, the new head version of the asset will be marked deleted.
A working version is released when it is checked-in or unchecked-out. It is an error to try to use a released working version.
| Modifier and Type | Field and Description | 
|---|---|
| static java.lang.String | CLASS_VERSION | 
| static java.lang.String | STATUS_ADDED | 
| static int | STATUS_ADDED_CODE | 
| static java.lang.String | STATUS_CONFLICT | 
| static int | STATUS_CONFLICT_CODE | 
| static java.lang.String | STATUS_NON_CONFLICT | 
| static int | STATUS_NON_CONFLICT_CODE | 
STATUS_ALL_CODE, STATUS_DELETED, STATUS_DELETED_CODE, STATUS_MODIFIED, STATUS_MODIFIED_CODE| Modifier and Type | Method and Description | 
|---|---|
| Workspace | getWorkspace()Working versions exist within a workspace,
  which is a development line supporting check-outs. | 
| boolean | isAdded()An added working version is one whose
  underlying asset does not exist in the parent development line. | 
| boolean | isRevertedOrCheckedIn()Test if the working version has been released. | 
| boolean | isUpToDate()Check to see if a resolve() is needed before this version
 can be checked in. | 
| void | move(Workspace pWorkspace)Move this WorkingVersion to a new Workspace. | 
| void | resetParentVersion()Reset a working version's parent version to the current
 head-of-branch version. | 
| boolean | resolveNonConflicting()Resolve this version if there are no real conflicts after 
 merging relevant changes from the head version. | 
| void | revert()Discard a checked-out working version and revert the content of the
 workspace to the original unmodified value. | 
| void | setDeleted(boolean delete)Mark this resource as deleted. | 
getAllParentVersions, getAsset, getCreatedInWorkspace, getDevelopmentLine, getLaterVersions, getParentVersion, getRepositoryItem, getResourceType, getStatus, getStatusCode, getVersion, getVirtualFile, getVirtualFileSystem, getWorkingVersion, getWorkingVersions, hasLaterVersion, hasParentVersion, isCheckedOut, isDeleted, isHeadOfLinegetDisplayName, getName, getURI, getVersionManagerstatic final java.lang.String CLASS_VERSION
static final int STATUS_ADDED_CODE
static final int STATUS_CONFLICT_CODE
static final int STATUS_NON_CONFLICT_CODE
static final java.lang.String STATUS_ADDED
static final java.lang.String STATUS_CONFLICT
static final java.lang.String STATUS_NON_CONFLICT
Workspace getWorkspace()
void revert()
            throws VersionException
VersionExceptionvoid resetParentVersion()
                        throws VersionException
VersionExceptionboolean resolveNonConflicting()
                              throws VersionException
VersionExceptionvoid setDeleted(boolean delete)
                throws VersionException
VersionExceptionboolean isUpToDate()
boolean isAdded()
                throws VersionException
VersionExceptionboolean isRevertedOrCheckedIn()
void move(Workspace pWorkspace) throws VersionException
pWorkspace - The new Workspace to move toVersionException