|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xiruss.snapcm.api.NullRepositoryObject org.xiruss.snapcm.api.NullVersion
public class NullVersion
Constructor Summary | |
---|---|
NullVersion()
|
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 class org.xiruss.snapcm.api.NullRepositoryObject |
---|
accept, compareTo, getId, getName, getProperties, getProperty, getPropertyNames, getRepository, getType, hasProperty, initialize, isNull, setId, setName, setProperty |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 |
Constructor Detail |
---|
public NullVersion()
Method Detail |
---|
public void initialize(java.lang.String versionId, java.lang.String versionName, Resource res) throws VersionMutationException
Version
initialize
in interface Version
VersionMutationException
public void initialize(java.lang.String versionId, java.lang.String versionName, java.util.Set previousVersions, Resource res) throws VersionMutationException
initialize
in interface Version
VersionMutationException
public void setAsFixed()
Version
setAsFixed
in interface Version
public boolean isFixed()
isFixed
in interface Version
public void checkIsNotFixed() throws VersionMutationException
checkIsNotFixed
in interface Version
VersionMutationException
public void addDependency(DependencyLink dependency) throws VersionMutationException
addDependency
in interface Version
VersionMutationException
public DependencyMap getDependencies()
Version
getDependencies
in interface Version
public DependencyMap getDependenciesByType(java.lang.String typeName)
Version
getDependenciesByType
in interface Version
typeName
- The fully-qualified type name for the dependency (the
Java class name for the dependency type.
public Resource getResource()
getResource
in interface Version
public boolean dependsOn(Resource resource)
Version
dependsOn
in interface Version
public boolean dependsOn(Resource resource, java.lang.String dependencyTypeName)
Version
dependsOn
in interface Version
dependencyTypeName
- The name of the dependency type to check. If null,
checks all dependency types.
public VersionMap getPrevious()
Version
getPrevious
in interface Version
public VersionMap getNext()
Version
getNext
in interface Version
public void setPrevious(VersionMap previousVersions) throws VersionMutationException
Version
setPrevious
in interface Version
previousVersions
- Versionmap of previous versions.
VersionMutationException
public void addPreviousVersion(Version effectiveVer)
Version
addPreviousVersion
in interface Version
public void addNextVersion(Version ver)
Version
addNextVersion
in interface Version
public void collectTargetVersions(VersionMap members, Snapshot onSnapshot, java.lang.String dependencyTypeName)
Version
collectTargetVersions
in interface Version
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 |