[Yanel-commits] rev 25051 - public/yanel/trunk/src/contributions/resources/data-repo-sitetree/src/java/org/wyona/yanel/impl/resources

michi at wyona.com michi at wyona.com
Tue Jun 12 14:52:10 CEST 2007


Author: michi
Date: 2007-06-12 14:52:09 +0200 (Tue, 12 Jun 2007)
New Revision: 25051

Modified:
   public/yanel/trunk/src/contributions/resources/data-repo-sitetree/src/java/org/wyona/yanel/impl/resources/DataRepoSitetreeResource.java
Log:
also check on resource

Modified: public/yanel/trunk/src/contributions/resources/data-repo-sitetree/src/java/org/wyona/yanel/impl/resources/DataRepoSitetreeResource.java
===================================================================
--- public/yanel/trunk/src/contributions/resources/data-repo-sitetree/src/java/org/wyona/yanel/impl/resources/DataRepoSitetreeResource.java	2007-06-12 12:50:54 UTC (rev 25050)
+++ public/yanel/trunk/src/contributions/resources/data-repo-sitetree/src/java/org/wyona/yanel/impl/resources/DataRepoSitetreeResource.java	2007-06-12 12:52:09 UTC (rev 25051)
@@ -99,8 +99,10 @@
             for (int i = 0; i < children.length; i++) {
                 if (children[i].isCollection()) {
                     sb.append("<collection path=\"" + children[i].getPath() + "\"/>");
+                } else if (children[i].isResource()) {
+                    sb.append("<resource path=\"" + children[i].getPath() + "\"/>");
                 } else {
-                    sb.append("<resource path=\"" + children[i].getPath() + "\"/>");
+                    sb.append("<neither-resource-nor-collection path=\"" + children[i].getPath() + "\"/>");
                 }
             }
             sb.append("</collection>");




More information about the Yanel-commits mailing list