jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r385474 - in /incubator/jackrabbit/trunk/jcr-server/webdav/src/java/org/apache/jackrabbit/webdav/property: DavProperty.java DefaultDavProperty.java
Date Mon, 13 Mar 2006 09:12:41 GMT
Author: angela
Date: Mon Mar 13 01:12:36 2006
New Revision: 385474

URL: http://svn.apache.org/viewcvs?rev=385474&view=rev
Log:
fixing indention

Modified:
    incubator/jackrabbit/trunk/jcr-server/webdav/src/java/org/apache/jackrabbit/webdav/property/DavProperty.java
    incubator/jackrabbit/trunk/jcr-server/webdav/src/java/org/apache/jackrabbit/webdav/property/DefaultDavProperty.java

Modified: incubator/jackrabbit/trunk/jcr-server/webdav/src/java/org/apache/jackrabbit/webdav/property/DavProperty.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/jcr-server/webdav/src/java/org/apache/jackrabbit/webdav/property/DavProperty.java?rev=385474&r1=385473&r2=385474&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/jcr-server/webdav/src/java/org/apache/jackrabbit/webdav/property/DavProperty.java
(original)
+++ incubator/jackrabbit/trunk/jcr-server/webdav/src/java/org/apache/jackrabbit/webdav/property/DavProperty.java
Mon Mar 13 01:12:36 2006
@@ -25,24 +25,24 @@
  * respected. this means, an property is equal to another, if the names
  * and values are equal.<br>
  * The XML representation of a <code>DavProperty</code>:
-     * <pre>
-     * new DavProperty("displayname", "WebDAV Directory").toXml
-     * gives a element like:
-     * &lt;D:displayname&gt;WebDAV Directory&lt;/D:displayname&gt;
-     *
-     * new DavProperty("resourcetype", new Element("collection")).toXml
-     * gives a element like:
-     * &lt;D:resourcetype&gt;&lt;D:collection/&gt;&lt;/D:resourcetype&gt;
-     *
-     * Element[] customVals = { new Element("bla", customNamespace), new Element("bli", customNamespace)
};
-     * new DavProperty("custom-property", customVals, customNamespace).toXml
-     * gives an element like
-     * &lt;Z:custom-property&gt;
-     *    &lt;Z:bla/&gt;
-     *    &lt;Z:bli/&gt;
-     * &lt;/Z:custom-property&gt;
-     * </pre>
-     */
+ * <pre>
+ * new DavProperty("displayname", "WebDAV Directory").toXml
+ * gives a element like:
+ * &lt;D:displayname&gt;WebDAV Directory&lt;/D:displayname&gt;
+ *
+ * new DavProperty("resourcetype", new Element("collection")).toXml
+ * gives a element like:
+ * &lt;D:resourcetype&gt;&lt;D:collection/&gt;&lt;/D:resourcetype&gt;
+ *
+ * Element[] customVals = { new Element("bla", customNamespace), new Element("bli", customNamespace)
};
+ * new DavProperty("custom-property", customVals, customNamespace).toXml
+ * gives an element like
+ * &lt;Z:custom-property&gt;
+ *    &lt;Z:bla/&gt;
+ *    &lt;Z:bli/&gt;
+ * &lt;/Z:custom-property&gt;
+ * </pre>
+ */
 public interface DavProperty extends XmlSerializable, DavConstants {
 
     /**

Modified: incubator/jackrabbit/trunk/jcr-server/webdav/src/java/org/apache/jackrabbit/webdav/property/DefaultDavProperty.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/jcr-server/webdav/src/java/org/apache/jackrabbit/webdav/property/DefaultDavProperty.java?rev=385474&r1=385473&r2=385474&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/jcr-server/webdav/src/java/org/apache/jackrabbit/webdav/property/DefaultDavProperty.java
(original)
+++ incubator/jackrabbit/trunk/jcr-server/webdav/src/java/org/apache/jackrabbit/webdav/property/DefaultDavProperty.java
Mon Mar 13 01:12:36 2006
@@ -116,15 +116,15 @@
      * @return
      */
     public static DefaultDavProperty createFromXml(Element propertyElement) {
-	if (propertyElement == null) {
-	    throw new IllegalArgumentException("Cannot create a new DavProperty from a 'null' element.");
-	}
-	DavPropertyName name = DavPropertyName.createFromXml(propertyElement);
-	Object value;
+        if (propertyElement == null) {
+            throw new IllegalArgumentException("Cannot create a new DavProperty from a 'null'
element.");
+        }
+        DavPropertyName name = DavPropertyName.createFromXml(propertyElement);
+        Object value;
 
         if (!DomUtil.hasContent(propertyElement)) {
-		value = null;
-		} else {
+            value = null;
+        }  else {
             List c = DomUtil.getContent(propertyElement);
             if (c.size() == 1) {
                 Node n = (Node)c.get(0);
@@ -134,9 +134,9 @@
                     value = n.getNodeValue();
                 }
             } else /* size > 1 */ {
-		    value = c;
-		}
-	}
-	return new DefaultDavProperty(name, value, false);
+                value = c;
+            }
+        }
+        return new DefaultDavProperty(name, value, false);
     }
 }



Mime
View raw message