Permalink
Browse files

Version 2.2.4 of XOAI integrated.

  • Loading branch information...
lyncodev committed Sep 15, 2012
1 parent 8fc3c3e commit 7d033d8cd25e12abe849d23240a5ba76ed5fa567
@@ -18,7 +18,7 @@
<dependency>
<groupId>com.lyncode</groupId>
<artifactId>xoai</artifactId>
- <version>2.2.3</version>
+ <version>2.2.4</version>
</dependency>
<dependency>
<groupId>org.dspace</groupId>
@@ -0,0 +1,23 @@
+package org.dspace.xoai.util;
+
+import org.dspace.content.Item;
+
+import com.google.common.base.Predicate;
+import com.lyncode.xoai.dataprovider.xml.xoai.Element;
+
+public class MetadataNamePredicate implements Predicate<Element> {
+ private String name;
+
+ public MetadataNamePredicate (String n) {
+ name = n;
+ }
+
+ @Override
+ public boolean apply(Element arg0) {
+ if (name == null) return false;
+ else if (name.equals(Item.ANY)) return true;
+ else return (name.toLowerCase().equals(arg0.getName().toLowerCase()));
+ }
+
+
+}

0 comments on commit 7d033d8

Please sign in to comment.