You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by cm...@apache.org on 2002/03/06 17:51:49 UTC
cvs commit: jakarta-slide/src/taglib/common/org/apache/slide/taglib/bean RevisionBean.java
cmlenz 02/03/06 08:51:49
Modified: src/taglib/common/org/apache/slide/taglib/bean
RevisionBean.java
Log:
Add direct accessors for the standard DAV: properties
Revision Changes Path
1.6 +103 -4 jakarta-slide/src/taglib/common/org/apache/slide/taglib/bean/RevisionBean.java
Index: RevisionBean.java
===================================================================
RCS file: /home/cvs/jakarta-slide/src/taglib/common/org/apache/slide/taglib/bean/RevisionBean.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- RevisionBean.java 27 Jan 2002 17:16:22 -0000 1.5
+++ RevisionBean.java 6 Mar 2002 16:51:49 -0000 1.6
@@ -1,7 +1,7 @@
/*
- * $Header: /home/cvs/jakarta-slide/src/taglib/common/org/apache/slide/taglib/bean/RevisionBean.java,v 1.5 2002/01/27 17:16:22 cmlenz Exp $
- * $Revision: 1.5 $
- * $Date: 2002/01/27 17:16:22 $
+ * $Header: /home/cvs/jakarta-slide/src/taglib/common/org/apache/slide/taglib/bean/RevisionBean.java,v 1.6 2002/03/06 16:51:49 cmlenz Exp $
+ * $Revision: 1.6 $
+ * $Date: 2002/03/06 16:51:49 $
*
* ====================================================================
*
@@ -66,6 +66,7 @@
import java.io.InputStream;
import java.io.IOException;
import java.io.Reader;
+import java.util.Date;
import java.util.Enumeration;
import java.util.Vector;
@@ -86,7 +87,7 @@
* layer technologies such as JSP or Velocity.</p>
*
* @author <a href="mailto:cmlenz@apache.org">Christopher Lenz</a>
- * @version $Revision: 1.5 $
+ * @version $Revision: 1.6 $
*/
public class RevisionBean
extends AbstractBean {
@@ -149,6 +150,104 @@
return revision.getBranchName();
}
+
+ /**
+ * Returns the value of the <code>DAV:getcontentlanguage</code> property.
+ *
+ * @return a String containing the property value
+ */
+ public String getContentLanguage() {
+
+ return revision.getContentLanguage();
+ }
+
+
+ /**
+ * Returns the value of the <code>DAV:getcontentlength</code> property.
+ *
+ * @return the property value as long
+ */
+ public long getContentLength() {
+
+ return revision.getContentLength();
+ }
+
+
+ /**
+ * Returns the value of the <code>DAV:getcontenttype</code> property.
+ *
+ * @return a String containing the property value
+ */
+ public String getContentType() {
+
+ return revision.getContentType();
+ }
+
+
+ /**
+ * Returns the value of the <code>DAV:creationdate</code> property.
+ *
+ * @return a Date containing the property value
+ */
+ public Date getCreationDate() {
+
+ return revision.getCreationDateAsDate();
+ }
+
+
+ /**
+ * Returns the value of the <code>DAV:getetag</code> property.
+ *
+ * @return a String containing the property value
+ */
+ public String getETag() {
+
+ return revision.getETag();
+ }
+
+
+ /**
+ * Returns the value of the <code>DAV:getlastmodified</code> property.
+ *
+ * @return a Date containing the property value
+ */
+ public Date getLastModified() {
+
+ return revision.getLastModifiedAsDate();
+ }
+
+
+ /**
+ * Returns the value of the <code>DAV:owner</code> property.
+ *
+ * @return a String containing the property value
+ */
+ public String getOwner() {
+
+ return revision.getOwner();
+ }
+
+
+ /**
+ * Returns the value of the <code>DAV:resourcetype</code> property.
+ *
+ * @return a String containing the property value
+ */
+ public String getResourceType() {
+
+ return revision.getResourceType();
+ }
+
+
+ /**
+ * Returns the value of the <code>DAV:source</code> property.
+ *
+ * @return a String containing the property value
+ */
+ public String getSource() {
+
+ return revision.getSource();
+ }
/**
* Returns the list of properties of the revision.
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>