You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@chemistry.apache.org by dw...@apache.org on 2010/03/03 17:38:02 UTC
svn commit: r918557 -
/incubator/chemistry/trunk/chemistry/chemistry-tck-atompub/src/main/java/org/apache/chemistry/abdera/ext/CMISProperties.java
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;
}