|
||||||||||
| 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(java.lang.String label)
Creates a LabelVersionSelector that will try to select a
version with the given label. |
|
| Method Summary | |
|---|---|
java.lang.String |
getLabel()
Returns the label hint |
javax.jcr.version.Version |
select(javax.jcr.version.VersionHistory versionHistory)
Selects a version from the given version history using the previously assigned hint in the following order: name, label, date, latest. |
static javax.jcr.version.Version |
selectByLabel(javax.jcr.version.VersionHistory history,
java.lang.String label)
Selects a version by label |
void |
setLabel(java.lang.String label)
Sets the label hint |
java.lang.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(java.lang.String label)
LabelVersionSelector that will try to select a
version with the given label.
label - | Method Detail |
|---|
public java.lang.String getLabel()
public void setLabel(java.lang.String label)
label -
public javax.jcr.version.Version select(javax.jcr.version.VersionHistory versionHistory)
throws javax.jcr.RepositoryException
select in interface VersionSelectorversionHistory -
javax.jcr.RepositoryException
public static javax.jcr.version.Version selectByLabel(javax.jcr.version.VersionHistory history,
java.lang.String label)
throws javax.jcr.RepositoryException
history - label -
null
javax.jcr.RepositoryExceptionpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||