| java.lang.Object org.ontoware.semversion.VersionedItem org.ontoware.semversion.VersionedModel
VersionedModel | public class VersionedModel extends VersionedItem (Code) | | A VersionedModel holds a version tree for an RDF model.
author: voelkel |
addVersion | protected void addVersion(Version value)(Code) | | internal: keep a reference to the Version
|
commitRoot | public Version commitRoot(Model root, String label, String comment, URI versionURI, URI provenance)(Code) | | Commit the root version to the version tree.
Parameters: root - Parameters: comment - may be null Parameters: versionURI - may not be null Parameters: provenance - a new Version with the content given in 'root'. The new versionhas the versionURI and a comment. throws: IllegalStateException - if this VersionedModel has already a root version |
delete | public void delete()(Code) | | Removes this VersionedModel and all versions in the version tree.
|
dump | public void dump()(Code) | | Debugging help. Dumps all content on System.out.
|
getAllBranches | public Set<String> getAllBranches()(Code) | | a set of all branch labels used in the version tree. |
getChangeLog | public List<Change> getChangeLog()(Code) | | a list of all changes that happened in this version tree |
getFirstVersion | public Version getFirstVersion()(Code) | | the root version, if any, or null |
getLastMainbranchVersion | public Version getLastMainbranchVersion()(Code) | | the most recent version of the branch "main" or null, if no mainbranch version exists. Root is automatically considered to be inthe "main" branch. |
getLastModifiedBy | public String getLastModifiedBy()(Code) | | User who made the last modifications to this versioned model ornull if no versions are in the versioned model |
getLastVersionOfBranch | public Version getLastVersionOfBranch(String branchLabel)(Code) | | the most recent version of the branch 'branchLabel' or null |
getLastVersions | public List<Version> getLastVersions()(Code) | | all versions that have no children = all leaves of the versiontree |
getListLastModifiedBy | public List<User> getListLastModifiedBy()(Code) | | a List of all users that are authors of a leaf version |
getTimestampLastModified | public Calendar getTimestampLastModified()(Code) | | a Calendar set to the time when has the latest version of thisversionedmodel been modified |
getVersion | public Version getVersion(URI versionURI)(Code) | | Get a particular version from versionedmodel without having to iterate
through all of the versions
the version with the given URI if it exists, otherwise null |
getVersionCount | public int getVersionCount()(Code) | | the number of different versions in the version tree |
|
|