chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dw...@apache.org
Subject svn commit: r918557 - /incubator/chemistry/trunk/chemistry/chemistry-tck-atompub/src/main/java/org/apache/chemistry/abdera/ext/CMISProperties.java
Date Wed, 03 Mar 2010 16:38:02 GMT
Author: dward
Date: Wed Mar  3 16:38:02 2010
New Revision: 918557

URL: http://svn.apache.org/viewvc?rev=918557&view=rev
Log:
CMIS-144: CMISProperties Abdera extension should allow embedded extension elements

Modified:
    incubator/chemistry/trunk/chemistry/chemistry-tck-atompub/src/main/java/org/apache/chemistry/abdera/ext/CMISProperties.java

Modified: incubator/chemistry/trunk/chemistry/chemistry-tck-atompub/src/main/java/org/apache/chemistry/abdera/ext/CMISProperties.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/trunk/chemistry/chemistry-tck-atompub/src/main/java/org/apache/chemistry/abdera/ext/CMISProperties.java?rev=918557&r1=918556&r2=918557&view=diff
==============================================================================
--- incubator/chemistry/trunk/chemistry/chemistry-tck-atompub/src/main/java/org/apache/chemistry/abdera/ext/CMISProperties.java
(original)
+++ incubator/chemistry/trunk/chemistry/chemistry-tck-atompub/src/main/java/org/apache/chemistry/abdera/ext/CMISProperties.java
Wed Mar  3 16:38:02 2010
@@ -49,10 +49,16 @@
      * @return list of property ids
      */
     public List<String> getIds() {
-        List<CMISProperty> props = getElements();
-        List<String> ids = new ArrayList<String>(props.size());
-        for (CMISProperty prop : props) {
-            ids.add(prop.getId());
+        List<Element> elements = getElements();
+        List<String> ids = new ArrayList<String>(elements.size());
+        for (Element element : elements) {
+            if (element instanceof CMISProperty) {
+                ids.add(((CMISProperty)element).getId());
+            }
+            else {
+                // Allow for other extension elements
+                break;
+            }
         }
         return ids;
     }



Mime
View raw message