Interface InternalVersion
-
- All Superinterfaces:
InternalVersionItem
- All Known Subinterfaces:
InternalBaseline
public interface InternalVersion extends InternalVersionItem
This interface defines the internal version.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CalendargetCreated()Equivalent toVersion.getCreated()InternalFrozenNodegetFrozenNode()Returns the frozen node of this version.NodeIdgetFrozenNodeId()Returns the node id of the frozen node.Name[]getLabels()returns the labels that are assigned to this versionInternalVersiongetLinearPredecessor()Equivalent toVersion.getLinearPredecessor()InternalVersiongetLinearSuccessor(InternalVersion baseVersion)Equivalent toVersion.getLinearSuccessor().NamegetName()Returns the name of this version.InternalVersion[]getPredecessors()Equivalent toVersion.getPredecessors()}List<InternalVersion>getSuccessors()Equivalent toVersion.getSuccessors()}InternalVersionHistorygetVersionHistory()returns the internal version history in which this version lives in.booleanhasLabel(Name label)Checks, if this version has the given label associatedbooleanisMoreRecent(InternalVersion v)Checks if this version is more recent than the given versionv.booleanisRootVersion()checks if this is the root version.-
Methods inherited from interface org.apache.jackrabbit.core.version.InternalVersionItem
getId, getParent
-
-
-
-
Method Detail
-
getName
Name getName()
Returns the name of this version.- Returns:
- the name of this version.
-
getFrozenNode
InternalFrozenNode getFrozenNode()
Returns the frozen node of this version.- Returns:
- the frozen node.
-
getFrozenNodeId
NodeId getFrozenNodeId()
Returns the node id of the frozen node.- Returns:
- the node id of the frozen node;
-
getCreated
Calendar getCreated()
Equivalent toVersion.getCreated()- Returns:
- the created date
- See Also:
Version.getCreated()
-
getSuccessors
List<InternalVersion> getSuccessors()
Equivalent toVersion.getSuccessors()}- Returns:
- the successors as internal versions
- See Also:
Version.getSuccessors()
-
getLinearSuccessor
InternalVersion getLinearSuccessor(InternalVersion baseVersion)
Equivalent toVersion.getLinearSuccessor().- Parameters:
baseVersion- base version to determine single line of descent- Returns:
- the successor as internal version
- See Also:
Version.getLinearSuccessor()
-
getPredecessors
InternalVersion[] getPredecessors()
Equivalent toVersion.getPredecessors()}- Returns:
- the predecessors as internal versions
- See Also:
Version.getPredecessors()
-
getLinearPredecessor
InternalVersion getLinearPredecessor()
Equivalent toVersion.getLinearPredecessor()- Returns:
- the predecessor as internal version
- See Also:
Version.getLinearPredecessor()
-
isMoreRecent
boolean isMoreRecent(InternalVersion v)
Checks if this version is more recent than the given versionv. A version is more recent if and only if it is a successor (or a successor of a successor, etc., to any degree of separation) of the compared one.- Parameters:
v- the version to check- Returns:
trueif the version is more recent;falseotherwise.
-
getVersionHistory
InternalVersionHistory getVersionHistory()
returns the internal version history in which this version lives in.- Returns:
- the version history for this version.
-
isRootVersion
boolean isRootVersion()
checks if this is the root version.- Returns:
trueif this version is the root version;falseotherwise.
-
hasLabel
boolean hasLabel(Name label)
Checks, if this version has the given label associated- Parameters:
label- the label to check.- Returns:
trueif the label is assigned to this version;falseotherwise.
-
getLabels
Name[] getLabels()
returns the labels that are assigned to this version- Returns:
- a string array of labels.
-
-