KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > ibm > webdav > VersionedResourceSelector


1 /*
2  * (C) Copyright IBM Corp. 2000 All rights reserved.
3  *
4  * The program is provided "AS IS" without any warranty express or
5  * implied, including the warranty of non-infringement and the implied
6  * warranties of merchantibility and fitness for a particular purpose.
7  * IBM will not be liable for any damages suffered by you as a result
8  * of using the Program. In no event will IBM be liable for any
9  * 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 JavaDoc getSelectorKey() throws WebDAVException {
31     return "versioned-resource "+targetSelector;
32 }
33 }
34
Popular Tags