jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r629051 - in /jackrabbit/trunk/jackrabbit-webdav/src/main/java/org/apache/jackrabbit/webdav/property: AbstractDavProperty.java DavPropertyName.java
Date Tue, 19 Feb 2008 09:51:48 GMT
Author: angela
Date: Tue Feb 19 01:51:46 2008
New Revision: 629051

URL: http://svn.apache.org/viewvc?rev=629051&view=rev
Log:
fixing javadoc (removed 'JDOM') and indention

Modified:
    jackrabbit/trunk/jackrabbit-webdav/src/main/java/org/apache/jackrabbit/webdav/property/AbstractDavProperty.java
    jackrabbit/trunk/jackrabbit-webdav/src/main/java/org/apache/jackrabbit/webdav/property/DavPropertyName.java

Modified: jackrabbit/trunk/jackrabbit-webdav/src/main/java/org/apache/jackrabbit/webdav/property/AbstractDavProperty.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-webdav/src/main/java/org/apache/jackrabbit/webdav/property/AbstractDavProperty.java?rev=629051&r1=629050&r2=629051&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-webdav/src/main/java/org/apache/jackrabbit/webdav/property/AbstractDavProperty.java
(original)
+++ jackrabbit/trunk/jackrabbit-webdav/src/main/java/org/apache/jackrabbit/webdav/property/AbstractDavProperty.java
Tue Feb 19 01:51:46 2008
@@ -83,7 +83,7 @@
 
 
     /**
-     * Return a JDOM element representation of this property. The value of the
+     * Return a XML element representation of this property. The value of the
      * property will be added as text or as child element.
      * <pre>
      * new DavProperty("displayname", "WebDAV Directory").toXml
@@ -103,21 +103,21 @@
      * &lt;/Z:custom-property&gt;
      * </pre>
      *
-     * @return a JDOM element of this property
+     * @return a XML element of this property
      * @see org.apache.jackrabbit.webdav.xml.XmlSerializable#toXml(Document)
      * @param document
      */
     public Element toXml(Document document) {
-	Element elem = getName().toXml(document);
+        Element elem = getName().toXml(document);
         Object value = getValue();
         // todo: improve....
-	if (value != null) {
-	    if (value instanceof XmlSerializable) {
+        if (value != null) {
+            if (value instanceof XmlSerializable) {
                 elem.appendChild(((XmlSerializable)value).toXml(document));
             } else if (value instanceof Node) {
                 Node n = document.importNode((Node)value, true);
-		elem.appendChild(n);
-	    } else if (value instanceof Node[]) {
+                elem.appendChild(n);
+            } else if (value instanceof Node[]) {
                 for (int i = 0; i < ((Node[])value).length; i++) {
                     Node n = document.importNode(((Node[])value)[i], true);
                     elem.appendChild(n);
@@ -137,9 +137,9 @@
                 }
             } else {
                 DomUtil.setText(elem, value.toString());
-	    }
-	}
-	return elem;
+            }
+        }
+        return elem;
     }
 
     /**

Modified: jackrabbit/trunk/jackrabbit-webdav/src/main/java/org/apache/jackrabbit/webdav/property/DavPropertyName.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-webdav/src/main/java/org/apache/jackrabbit/webdav/property/DavPropertyName.java?rev=629051&r1=629050&r2=629051&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-webdav/src/main/java/org/apache/jackrabbit/webdav/property/DavPropertyName.java
(original)
+++ jackrabbit/trunk/jackrabbit-webdav/src/main/java/org/apache/jackrabbit/webdav/property/DavPropertyName.java
Tue Feb 19 01:51:46 2008
@@ -108,15 +108,15 @@
      * @return <code>DavPropertyName</code> instance
      */
     public synchronized static DavPropertyName createFromXml(Element nameElement) {
-	if (nameElement == null) {
-	    throw new IllegalArgumentException("Cannot build DavPropertyName from a 'null' element.");
-	}
-	String ns = nameElement.getNamespaceURI();
-	if (ns == null) {
-	    return create(nameElement.getLocalName(), Namespace.EMPTY_NAMESPACE);
-	} else {
-	    return create(nameElement.getLocalName(), Namespace.getNamespace(nameElement.getPrefix(),
ns));
-	}
+        if (nameElement == null) {
+            throw new IllegalArgumentException("Cannot build DavPropertyName from a 'null'
element.");
+        }
+        String ns = nameElement.getNamespaceURI();
+        if (ns == null) {
+            return create(nameElement.getLocalName(), Namespace.EMPTY_NAMESPACE);
+        } else {
+            return create(nameElement.getLocalName(), Namespace.getNamespace(nameElement.getPrefix(),
ns));
+        }
     }
 
     /**
@@ -188,15 +188,15 @@
     }
 
     /**
-     * Creates a JDOM element with the name and namespace of this
-     * DavPropertyName.
+     * Creates a element with the name and namespace of this
+     * <code>DavPropertyName</code>.
      *
-     * @return A JDOM Element.
+     * @return A element with the name and namespace of this
+     * <code>DavPropertyName</code>.
      * @param document
      */
     public Element toXml(Document document) {
         return DomUtil.createElement(document, name, namespace);
     }
-
 }
 



Mime
View raw message