|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.jackrabbit.core.version.InternalVersionItemImpl
org.apache.jackrabbit.core.version.InternalVersionImpl
Implements a InternalVersion
| Constructor Summary | |
InternalVersionImpl(InternalVersionHistoryImpl vh,
org.apache.jackrabbit.core.version.NodeStateEx node,
QName name)
Creates a new internal version with the given version history and persistance node. |
|
| 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. |
String |
getId()
Returns the external id of this item |
QName[] |
getLabels()
returns the labels that are assigned to this version |
QName |
getName()
Returns the name of this version. |
InternalVersionItem |
getParent()
returns the parent version item or null |
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. |
protected VersionManagerImpl |
getVersionManager()
Returns the persistent version manager for this item |
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.
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. |
boolean |
isRootVersion()
checks if this is the root version. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public InternalVersionImpl(InternalVersionHistoryImpl vh,
org.apache.jackrabbit.core.version.NodeStateEx node,
QName name)
node - | Method Detail |
public String getId()
getId in interface InternalVersionItempublic InternalVersionItem getParent()
getParent in interface InternalVersionItempublic QName getName()
getName in interface InternalVersionpublic InternalFrozenNode getFrozenNode()
null if this is
the root version.
getFrozenNode in interface InternalVersionpublic Calendar getCreated()
Version.getCreated()
getCreated in interface InternalVersionVersion.getCreated()public InternalVersion[] getSuccessors()
Version.getSuccessors()}
getSuccessors in interface InternalVersionVersion.getSuccessors()public InternalVersion[] getPredecessors()
Version.getPredecessors()}
getPredecessors in interface InternalVersionVersion.getPredecessors()public boolean isMoreRecent(InternalVersion v)
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.
isMoreRecent in interface InternalVersionv - the version to check
true if the version is more recent;
false otherwise.public InternalVersionHistory getVersionHistory()
getVersionHistory in interface InternalVersionpublic boolean hasLabel(QName label)
hasLabel in interface InternalVersionlabel - the label to check.
true if the label is assigned to this version;
false otherwise.public QName[] getLabels()
getLabels in interface InternalVersionpublic boolean isRootVersion()
isRootVersion in interface InternalVersiontrue if this version is the root version;
false otherwise.protected VersionManagerImpl getVersionManager()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||