|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Version
| Method Summary | |
|---|---|
void |
addDependency(DependencyLink dependency)
|
void |
addNextVersion(Version ver)
Adds a version as being a previous version of this version. |
void |
addPreviousVersion(Version effectiveVer)
Adds a version as being a next version of this version. |
void |
checkIsNotFixed()
|
void |
collectTargetVersions(VersionMap members,
Snapshot onSnapshot,
java.lang.String dependencyTypeName)
Gets all the versions on which this version is dependent for a given dependency class. |
boolean |
dependsOn(Resource resource)
Returns true if the version has one or more dependency relationships of any type to the specified resource. |
boolean |
dependsOn(Resource resource,
java.lang.String dependencyTypeName)
Returns true if the version has one or more dependency relationships to the specified resource. |
DependencyMap |
getDependencies()
Returns the set of dependency |
DependencyMap |
getDependenciesByType(java.lang.String typeName)
Returns a collection of dependencies of the specififed type, if any. |
VersionMap |
getNext()
Gets the previous versions for this version. |
VersionMap |
getPrevious()
Gets the previous versions for this version. |
Resource |
getResource()
|
void |
initialize(java.lang.String versionId,
java.lang.String versionName,
Resource res)
Initialize the core properties of the version. |
void |
initialize(java.lang.String versionId,
java.lang.String versionName,
java.util.Set previousVersions,
Resource res)
|
boolean |
isFixed()
|
void |
setAsFixed()
Sets the version as "fixed", meaning that it cannot be mutated further. |
void |
setPrevious(VersionMap previousVersions)
Sets the previous versions for this version. |
| Methods inherited from interface org.xiruss.snapcm.api.RepositoryObject |
|---|
accept, compareTo, getId, getName, getProperties, getProperty, getPropertyNames, getRepository, getType, hasProperty, initialize, isNull, setId, setName, setProperty, toString |
| Method Detail |
|---|
void initialize(java.lang.String versionId,
java.lang.String versionName,
Resource res)
throws VersionMutationException
versionName - res -
VersionMutationException
void initialize(java.lang.String versionId,
java.lang.String versionName,
java.util.Set previousVersions,
Resource res)
throws VersionMutationException
versionName - previousVersions - res -
VersionMutationExceptionvoid setAsFixed()
boolean isFixed()
void checkIsNotFixed()
throws VersionMutationException
VersionMutationException
void addDependency(DependencyLink dependency)
throws VersionMutationException
VersionMutationExceptionDependencyMap getDependencies()
DependencyMap getDependenciesByType(java.lang.String typeName)
typeName - The fully-qualified type name for the dependency (the
Java class name for the dependency type.
Resource getResource()
boolean dependsOn(Resource resource)
resource -
boolean dependsOn(Resource resource,
java.lang.String dependencyTypeName)
resource - dependencyTypeName - The name of the dependency type to check. If null,
checks all dependency types.
VersionMap getPrevious()
VersionMap getNext()
void setPrevious(VersionMap previousVersions)
throws VersionMutationException
previousVersions - Versionmap of previous versions.
VersionMutationExceptionvoid addPreviousVersion(Version effectiveVer)
nextVer - void addNextVersion(Version ver)
prevVer - previous version
void collectTargetVersions(VersionMap members,
Snapshot onSnapshot,
java.lang.String dependencyTypeName)
members - The version map to which the target versions are addedonSnapshot - The snapshot on which to resolve the dependenciesdependencyTypeName - The class name of the dependency type
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||