|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jackrabbit.core.version.LabelVersionSelector
public class LabelVersionSelector
This Class implements a version selector that selects a version by label.
Constructor Summary | |
---|---|
LabelVersionSelector(String label)
Creates a LabelVersionSelector that will try to select a
version with the given label. |
Method Summary | |
---|---|
String |
getLabel()
Returns the label hint |
Version |
select(VersionHistory versionHistory)
Selects a version from the given version history using the previously assigned hint in the following order: name, label, date, latest. |
static Version |
selectByLabel(VersionHistory history,
String label)
Selects a version by label |
void |
setLabel(String label)
Sets the label hint |
String |
toString()
returns debug information |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LabelVersionSelector(String label)
LabelVersionSelector
that will try to select a
version with the given label.
label
- Method Detail |
---|
public String getLabel()
public void setLabel(String label)
label
- public Version select(VersionHistory versionHistory) throws RepositoryException
select
in interface VersionSelector
versionHistory
-
RepositoryException
public static Version selectByLabel(VersionHistory history, String label) throws RepositoryException
history
- label
-
null
RepositoryException
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |