|
|||||||||||
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 InternalVersionItem
public InternalVersionItem getParent()
getParent
in interface InternalVersionItem
public QName getName()
getName
in interface InternalVersion
public InternalFrozenNode getFrozenNode()
null
if this is
the root version.
getFrozenNode
in interface InternalVersion
public Calendar getCreated()
Version.getCreated()
getCreated
in interface InternalVersion
Version.getCreated()
public InternalVersion[] getSuccessors()
Version.getSuccessors()
}
getSuccessors
in interface InternalVersion
Version.getSuccessors()
public InternalVersion[] getPredecessors()
Version.getPredecessors()
}
getPredecessors
in interface InternalVersion
Version.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 InternalVersion
v
- the version to check
true
if the version is more recent;
false
otherwise.public InternalVersionHistory getVersionHistory()
getVersionHistory
in interface InternalVersion
public boolean hasLabel(QName label)
hasLabel
in interface InternalVersion
label
- the label to check.
true
if the label is assigned to this version;
false
otherwise.public QName[] getLabels()
getLabels
in interface InternalVersion
public boolean isRootVersion()
isRootVersion
in interface InternalVersion
true
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 |