01: /*
02: * (C) Copyright IBM Corp. 2000 All rights reserved.
03: *
04: * The program is provided "AS IS" without any warranty express or
05: * implied, including the warranty of non-infringement and the implied
06: * warranties of merchantibility and fitness for a particular purpose.
07: * IBM will not be liable for any damages suffered by you as a result
08: * of using the Program. In no event will IBM be liable for any
09: * special, indirect or consequential damages or lost profits even if
10: * IBM has been advised of the possibility of their occurrence. IBM
11: * will not be liable for any third party claims against you.
12: */
13:
14: package com.ibm.webdav;
15:
16: /**
17: * A target selector can be a label name, version name, working resource id,
18: * or an indicator that the VersionedResource itself should be selected.
19: * A TargetSelector selects the indicated revision.
20: */
21: public class VersionedResourceSelector extends TargetSelector {
22: /**
23: * Get the selector key for this TargetSelector. In this case,
24: * the versioned resource itself is selected rather than a specific
25: * revision.
26: *
27: * @return the Target-Selector key
28: * @exception com.ibm.webdav.WebDAVException
29: */
30: public String getSelectorKey() throws WebDAVException {
31: return "versioned-resource " + targetSelector;
32: }
33: }
|