public interface InternalVersionHistory extends InternalVersionItem
| Modifier and Type | Method and Description |
|---|---|
int |
getNumVersions()
Returns the number of versions in this version history.
|
InternalVersion |
getRootVersion()
Equivalent to
VersionHistory.getRootVersion(). |
InternalVersion |
getVersion(Name versionName)
Equivalent to
VersionHistory.getVersion(java.lang.String). |
InternalVersion |
getVersion(NodeId id)
Returns the version with the given uuid or
null if the
respective version does not exist. |
NodeId |
getVersionableId()
Returns the id of the versionable node that this history belongs to.
|
InternalVersion |
getVersionByLabel(Name label)
Equivalent to
VersionHistory.getVersionByLabel(java.lang.String)
but returns null if the version does not exists. |
Name[] |
getVersionLabels()
Returns a name array of all version labels that exist in this
version history
|
NodeId |
getVersionLabelsId()
Returns the Id of the version labels node.
|
Name[] |
getVersionNames()
Returns a name array of all version names that exist in this version history.
|
boolean |
hasVersion(Name versionName)
Checks if the version with the given name exists in this version history.
|
getId, getParentInternalVersion getRootVersion()
VersionHistory.getRootVersion().VersionHistory.getRootVersion()InternalVersion getVersion(Name versionName) throws VersionException
VersionHistory.getVersion(java.lang.String).versionName - the name of the versionVersionException - if the version does not existVersionHistory.getVersion(java.lang.String)boolean hasVersion(Name versionName)
versionName - the name of the versiontrue if the version exists;
false otherwise.InternalVersion getVersion(NodeId id)
null if the
respective version does not exist.id - the id of the versionnullInternalVersion getVersionByLabel(Name label)
VersionHistory.getVersionByLabel(java.lang.String)
but returns null if the version does not exists.label - the lablenull if not existsVersionHistory.getVersionByLabel(java.lang.String)int getNumVersions()
NodeId getVersionableId()
Name[] getVersionLabels()
Name[] getVersionNames()
NodeId getVersionLabelsId()
Copyright © 2004–2020 The Apache Software Foundation. All rights reserved.