org.apache.jackrabbit.core.version
Interface InternalVersion

All Superinterfaces:
InternalVersionItem

public interface InternalVersion
extends InternalVersionItem

This interface defines the internal version.


Method Summary
 Calendar getCreated()
          Equivalent to Version.getCreated()
 InternalFrozenNode getFrozenNode()
          Returns the frozen node of this version or null if this is the root version.
 QName[] getLabels()
          returns the labels that are assigned to this version
 QName getName()
          Returns the name of this version.
 InternalVersion[] getPredecessors()
          Equivalent to Version.getPredecessors()}
 InternalVersion[] getSuccessors()
          Equivalent to Version.getSuccessors()}
 InternalVersionHistory getVersionHistory()
          returns the internal version history in wich this version lifes in.
 boolean hasLabel(QName label)
          Checks, if this version has the given label assosiated
 boolean isMoreRecent(InternalVersion v)
          Checks if this version is more recent than the given version v.
 boolean isRootVersion()
          checks if this is the root version.
 
Methods inherited from interface org.apache.jackrabbit.core.version.InternalVersionItem
getId, getParent
 

Method Detail

getName

public QName getName()
Returns the name of this version.

Returns:
the name of this version.

getFrozenNode

public InternalFrozenNode getFrozenNode()
Returns the frozen node of this version or null if this is the root version.

Returns:
the frozen node.

getCreated

public Calendar getCreated()
Equivalent to Version.getCreated()

See Also:
Version.getCreated()

getSuccessors

public InternalVersion[] getSuccessors()
Equivalent to Version.getSuccessors()}

See Also:
Version.getSuccessors()

getPredecessors

public InternalVersion[] getPredecessors()
Equivalent to Version.getPredecessors()}

See Also:
Version.getPredecessors()

isMoreRecent

public boolean isMoreRecent(InternalVersion v)
Checks if this version is more recent than the given version v. 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:
true if the version is more recent; false otherwise.

getVersionHistory

public InternalVersionHistory getVersionHistory()
returns the internal version history in wich this version lifes in.

Returns:
the version history for this version.

isRootVersion

public boolean isRootVersion()
checks if this is the root version.

Returns:
true if this version is the root version; false otherwise.

hasLabel

public boolean hasLabel(QName label)
Checks, if this version has the given label assosiated

Parameters:
label - the label to check.
Returns:
true if the label is assigned to this version; false otherwise.

getLabels

public QName[] getLabels()
returns the labels that are assigned to this version

Returns:
a string array of labels.


Copyright © 2004-2006 The Apache Software Foundation. All Rights Reserved.