|
||||||||||
| 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(Name label)
Creates a LabelVersionSelector that will try to select a
version with the given label. |
|
| Method Summary | |
|---|---|
Name |
getLabel()
Returns the label hint |
InternalVersion |
select(InternalVersionHistory versionHistory)
Selects a version of the given version history. |
static InternalVersion |
selectByLabel(InternalVersionHistory history,
Name label)
Selects a version by label |
void |
setLabel(Name 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(Name label)
LabelVersionSelector that will try to select a
version with the given label.
label - label hint| Method Detail |
|---|
public Name getLabel()
public void setLabel(Name label)
label - label hint
public InternalVersion select(InternalVersionHistory versionHistory)
throws RepositoryException
null. Please note,
that a version selector is not allowed to return the root version.
Selects a version from the given version history using the previously
assigned hint in the following order: name, label, date, latest.
select in interface VersionSelectorversionHistory - version history to select a version from
null.
RepositoryException - if an error occurs.
public static InternalVersion selectByLabel(InternalVersionHistory history,
Name label)
throws RepositoryException
history - history to select fromlabel - desired label
null
RepositoryException - if an error occurspublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||