01: package org.garret.rdf;
02:
03: /**
04: * Which verions of the object should be inspected
05: */
06: public class SearchKind {
07: /**
08: * Latest version in version history
09: */
10: public static final SearchKind LatestVersion = new SearchKind(
11: "Latest version");
12:
13: /**
14: * All versions in version history
15: */
16: public static final SearchKind AllVersions = new SearchKind(
17: "All versions");
18:
19: /**
20: * Latest version before sepcified timestamp
21: */
22: public static final SearchKind LatestBefore = new SearchKind(
23: "Latest before");
24:
25: /**
26: * Oldest version after sepcified timestamp
27: */
28: public static final SearchKind OldestAfter = new SearchKind(
29: "Oldest after");
30:
31: private SearchKind(String kind) {
32: this .kind = kind;
33: }
34:
35: public String toString() {
36: return kind;
37: }
38:
39: private String kind;
40: }
|