public final class ProjectVersion extends HashStructureAdapter
| Modifier and Type | Field and Description | 
|---|---|
static java.lang.String | 
COMPONENT_VERSIONS_KEY  | 
static java.lang.String | 
PROJECT_KEY  | 
_hash| Constructor and Description | 
|---|
ProjectVersion(HashStructure projectHash)  | 
ProjectVersion(PropertyStorage project)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
addVersion(java.lang.String componentName,
          VersionNumber version)
Adds the specified version to the version history for the specified
  component. 
 | 
VersionNumber | 
getCurrentVersion()
Returns the current version of the  
Project format itself. | 
VersionNumber | 
getCurrentVersion(java.lang.String componentName)
Returns the current version of the specified component, as stored
  in the project file. 
 | 
VersionNumber[] | 
getVersionHistory()
Returns the version history of the current project file format. 
 | 
VersionNumber[] | 
getVersionHistory(java.lang.String componentName)
Returns the version history of the specified component. 
 | 
static void | 
initializeVersions(PropertyStorage project,
                  java.lang.String nodeMigratorKey)  | 
void | 
removeVersion(java.lang.String componentName,
             VersionNumber version)
Removes the specified version from the version history for the
  specified component. 
 | 
void | 
setVersionHistory(java.lang.String componentName,
                 VersionNumber[] versionHistory)
Associates the specified array of  
VersionNumbers as
  representing the total version history for the specified component. | 
addStructureChangeListener, containsKey, copyTo, copyToImpl, equals, equalsImpl, findOrCreate, forcedCopyTo, getHashStructure, removeStructureChangeListener, useObjectEqualspublic static final java.lang.String PROJECT_KEY
public static final java.lang.String COMPONENT_VERSIONS_KEY
public ProjectVersion(PropertyStorage project)
public ProjectVersion(HashStructure projectHash)
public static void initializeVersions(PropertyStorage project, java.lang.String nodeMigratorKey)
public VersionNumber getCurrentVersion()
Project format itself.public VersionNumber[] getVersionHistory()
public VersionNumber getCurrentVersion(java.lang.String componentName)
public VersionNumber[] getVersionHistory(java.lang.String componentName)
getVersionHistory()public void setVersionHistory(java.lang.String componentName,
                              VersionNumber[] versionHistory)
VersionNumbers as
  representing the total version history for the specified component.public void addVersion(java.lang.String componentName,
                       VersionNumber version)
public void removeVersion(java.lang.String componentName,
                          VersionNumber version)