KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > webdav > lib > Property


1 /*
2  * $Header: /home/cvs/jakarta-slide/webdavclient/clientlib/src/java/org/apache/webdav/lib/Property.java,v 1.3 2004/07/28 09:31:39 ib Exp $
3  * $Revision: 1.3 $
4  * $Date: 2004/07/28 09:31:39 $
5  *
6  * ====================================================================
7  *
8  * Copyright 1999-2002 The Apache Software Foundation
9  *
10  * Licensed under the Apache License, Version 2.0 (the "License");
11  * you may not use this file except in compliance with the License.
12  * You may obtain a copy of the License at
13  *
14  * http://www.apache.org/licenses/LICENSE-2.0
15  *
16  * Unless required by applicable law or agreed to in writing, software
17  * distributed under the License is distributed on an "AS IS" BASIS,
18  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19  * See the License for the specific language governing permissions and
20  * limitations under the License.
21  *
22  */

23
24 package org.apache.webdav.lib;
25
26 import org.w3c.dom.Element JavaDoc;
27
28 /**
29  * This interface models a DAV property.
30  *
31  * @version $Revision: 1.3 $
32  */

33 public interface Property {
34
35     /**
36      * This method returns the full name of the property. Thus, for example,
37      * calling this method on a property such as
38      * <code>&lt;D:getlastmodified&gt;Tue, 05 Dec 2000
39      * 05:25:02&lt;/D:getlastmodified&gt;</code> returns
40      * <code>D:getlastmodified</code>.
41      */

42     public String JavaDoc getName();
43
44     /**
45      * This method returns the local name of the property. Thus, for example,
46      * calling this method on a property such as
47      * <code>&lt;D:getlastmodified&gt;Tue, 05 Dec 2000
48      * 05:25:02&lt;/D:getlastmodified&gt;</code> returns
49      * <code>getlastmodified</code>.
50      */

51     public String JavaDoc getLocalName();
52
53     /**
54      * This method returns the namespace of the property. Thus, for example,
55      * calling this method on a property such as
56      * <code>&lt;D:getlastmodified&gt;Tue, 05 Dec 2000
57      * 05:25:02&lt;/D:getlastmodified&gt;</code> returns
58      * <code>DAV:</code>.
59      */

60     public String JavaDoc getNamespaceURI();
61
62     /**
63      * This method returns the property as a DOM Element.
64      */

65     public Element JavaDoc getElement();
66
67     /**
68      * This method returns the namespace of the property. Thus, for example,
69      * calling this method on a property such as
70      * <code>&lt;D:getlastmodified&gt;Tue, 05 Dec 2000
71      * 05:25:02&lt;/D:getlastmodified&gt;</code> returns
72      * <code>Tue, 05 Dec 2000 05:25:02</code>.
73      */

74     public String JavaDoc getPropertyAsString();
75
76     /**
77      * This method returns the status code associated with the property.
78      */

79     public int getStatusCode();
80
81     /**
82      * This method returns URL file path of the resource to which this
83      * property belongs.
84      */

85     public String JavaDoc getOwningURL();
86 }
87
Popular Tags