You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@marmotta.apache.org by ja...@apache.org on 2014/01/08 16:26:02 UTC

[46/51] [abbrv] [partial] MARMOTTA-397: Reorganized and renamed Marmotta Sesame Tools

http://git-wip-us.apache.org/repos/asf/marmotta/blob/00c22e7c/commons/marmotta-sesame-tools/marmotta-rio-rss/src/ext/java/com/sun/syndication/feed/impl/ObjectBean.java
----------------------------------------------------------------------
diff --git a/commons/marmotta-sesame-tools/marmotta-rio-rss/src/ext/java/com/sun/syndication/feed/impl/ObjectBean.java b/commons/marmotta-sesame-tools/marmotta-rio-rss/src/ext/java/com/sun/syndication/feed/impl/ObjectBean.java
new file mode 100644
index 0000000..437a0d8
--- /dev/null
+++ b/commons/marmotta-sesame-tools/marmotta-rio-rss/src/ext/java/com/sun/syndication/feed/impl/ObjectBean.java
@@ -0,0 +1,124 @@
+/*
+ * Copyright 2004 Sun Microsystems, Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+package com.sun.syndication.feed.impl;
+
+import com.sun.syndication.feed.impl.CloneableBean;
+import com.sun.syndication.feed.impl.EqualsBean;
+
+import java.io.Serializable;
+import java.util.Set;
+
+/**
+ * Convenience class providing clone(), toString(), equals() and hashCode() functionality for Java Beans.
+ * <p>
+ * It works on all read/write properties, recursively.
+ * <p>
+ * It uses the CloneableBean, EqualsBean and ToStringBean classes in a delegation pattern.
+ * <p>
+ * <h3>ObjectBean programming conventions</h3>
+ * <P>
+ * All ObjectBean subclasses having properties that return collections they should never
+ * return null if the property has been set to <b>null</b> or if a collection has not been set.
+ * They should create and return an empty collection, this empty collection instance should
+ * also be set to the corresponding property.
+ * <P>
+ * All ObjectBean subclasses properties should be live references.
+ * <p>
+ * @author Alejandro Abdelnur
+ *
+ */
+public class ObjectBean implements Serializable, Cloneable {
+    private EqualsBean _equalsBean;
+    private ToStringBean _toStringBean;
+    private CloneableBean _cloneableBean;
+
+    /**
+     * Constructor.
+     * <p>
+     * @param beanClass the class/interface to be used for property scanning.
+     *
+     */
+    public ObjectBean(Class beanClass,Object obj) {
+        this(beanClass,obj,null);
+    }
+
+    /**
+     * Constructor.
+     * <p>
+     * The property names in the ignoreProperties Set will not be copied into
+     * the cloned instance. This is useful for cases where the Bean has convenience
+     * properties (properties that are actually references to other properties or
+     * properties of properties). For example SyndFeed and SyndEntry beans have
+     * convenience properties, publishedDate, author, copyright and categories all
+     * of them mapped to properties in the DC Module.
+     * <p>
+     * @param beanClass the class/interface to be used for property scanning.
+     * @param ignoreProperties properties to ignore when cloning.
+     *
+     */
+    public ObjectBean(Class beanClass,Object obj,Set ignoreProperties) {
+        _equalsBean = new EqualsBean(beanClass,obj);
+        _toStringBean = new ToStringBean(beanClass,obj);
+        _cloneableBean = new CloneableBean(obj,ignoreProperties);
+    }
+
+    /**
+     * Creates a deep 'bean' clone of the object.
+     * <p>
+     * @return a clone of the object.
+     * @throws CloneNotSupportedException thrown if an element of the object cannot be cloned.
+     *
+     */
+    public Object clone() throws CloneNotSupportedException {
+        return _cloneableBean.beanClone();
+    }
+
+    /**
+     * Indicates whether some other object is "equal to" this one as defined by the Object equals() method.
+     * <p>
+     * @param other he reference object with which to compare.
+     * @return <b>true</b> if 'this' object is equal to the 'other' object.
+     *
+     */
+    public boolean equals(Object other) {
+        return _equalsBean.beanEquals(other);
+    }
+
+    /**
+     * Returns a hashcode value for the object.
+     * <p>
+     * It follows the contract defined by the Object hashCode() method.
+     * <p>
+     * @return the hashcode of the bean object.
+     *
+     */
+    public int hashCode() {
+        return _equalsBean.beanHashCode();
+    }
+
+    /**
+     * Returns the String representation for the object.
+     * <p>
+     * @return String representation for the object.
+     *
+     */
+    public String toString() {
+        return _toStringBean.toString();
+    }
+
+}
+

http://git-wip-us.apache.org/repos/asf/marmotta/blob/00c22e7c/commons/marmotta-sesame-tools/marmotta-rio-rss/src/ext/java/com/sun/syndication/feed/impl/ToStringBean.java
----------------------------------------------------------------------
diff --git a/commons/marmotta-sesame-tools/marmotta-rio-rss/src/ext/java/com/sun/syndication/feed/impl/ToStringBean.java b/commons/marmotta-sesame-tools/marmotta-rio-rss/src/ext/java/com/sun/syndication/feed/impl/ToStringBean.java
new file mode 100644
index 0000000..50fdc6d
--- /dev/null
+++ b/commons/marmotta-sesame-tools/marmotta-rio-rss/src/ext/java/com/sun/syndication/feed/impl/ToStringBean.java
@@ -0,0 +1,240 @@
+/*
+ * Copyright 2004 Sun Microsystems, Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+package com.sun.syndication.feed.impl;
+
+import java.beans.PropertyDescriptor;
+import java.lang.reflect.Array;
+import java.lang.reflect.Method;
+import java.util.Collection;
+import java.util.Iterator;
+import java.util.Map;
+import java.util.Stack;
+import java.io.Serializable;
+
+/**
+ * Provides deep <b>Bean</b> toString support.
+ * <p>
+ * It works on all read/write properties, recursively. It support all primitive types, Strings, Collections,
+ * ToString objects and multi-dimensional arrays of any of them.
+ * <p>
+ * @author Alejandro Abdelnur
+ *
+ */
+public class ToStringBean implements Serializable {
+    private static final ThreadLocal PREFIX_TL = new ThreadLocal() {
+        public Object get() {
+            Object o = super.get();
+            if (o==null) {
+                o = new Stack();
+                set(o);
+            }
+            return o;
+        }
+    };
+
+    private static final Object[] NO_PARAMS = new Object[0];
+
+    private Class _beanClass;
+    private Object _obj;
+
+    /**
+     * Default constructor.
+     * <p>
+     * To be used by classes extending ToStringBean only.
+     * <p>
+     * @param beanClass indicates the class to scan for properties, normally an interface class.
+     *
+     */
+    protected ToStringBean(Class beanClass) {
+        _beanClass = beanClass;
+        _obj = this;
+    }
+
+    /**
+     * Creates a ToStringBean to be used in a delegation pattern.
+     * <p>
+     * For example:
+     * <p>
+     * <code>
+     *   public class Foo implements ToString {
+     *
+     *       public String toString(String prefix) {
+     *           ToStringBean tsb = new ToStringBean(this);
+     *           return tsb.toString(prefix);
+     *       }
+     *
+     *       public String toString() {
+     *           return toString("Foo");
+     *       }
+     *
+     *   }
+     * </code>
+     * <p>
+     * @param beanClass indicates the class to scan for properties, normally an interface class.
+     * @param obj object bean to create String representation.
+     *
+     */
+    public ToStringBean(Class beanClass,Object obj) {
+        _beanClass = beanClass;
+        _obj = obj;
+    }
+
+    /**
+     * Returns the String representation of the bean given in the constructor.
+     * <p>
+     * It uses the Class name as the prefix.
+     * <p>
+     * @return bean object String representation.
+     *
+     */
+    public String toString() {
+        Stack stack = (Stack) PREFIX_TL.get();
+        String[] tsInfo = (String[]) ((stack.isEmpty()) ? null : stack.peek());
+        String prefix;
+        if (tsInfo==null) {
+            String className = _obj.getClass().getName();
+            prefix = className.substring(className.lastIndexOf(".")+1);
+        }
+        else {
+            prefix = tsInfo[0];
+            tsInfo[1] = prefix;
+        }
+        return toString(prefix);
+    }
+
+    /**
+     * Returns the String representation of the bean given in the constructor.
+     * <p>
+     * @param prefix to use for bean properties.
+     * @return bean object String representation.
+     *
+     */
+    private String toString(String prefix) {
+        StringBuffer sb = new StringBuffer(128);
+        try {
+            PropertyDescriptor[] pds = BeanIntrospector.getPropertyDescriptors(_beanClass);
+            if (pds!=null) {
+                for (int i=0;i<pds.length;i++) {
+                    String pName = pds[i].getName();
+                    Method pReadMethod = pds[i].getReadMethod();
+                    if (pReadMethod!=null &&                             // ensure it has a getter method
+                        pReadMethod.getDeclaringClass()!=Object.class && // filter Object.class getter methods
+                        pReadMethod.getParameterTypes().length==0) {     // filter getter methods that take parameters
+                        Object value = pReadMethod.invoke(_obj,NO_PARAMS);
+                        printProperty(sb,prefix+"."+pName,value);
+                    }
+                }
+            }
+        }
+        catch (Exception ex) {
+            sb.append("\n\nEXCEPTION: Could not complete "+_obj.getClass()+".toString(): "+ex.getMessage()+"\n");
+        }
+        return sb.toString();
+    }
+
+    private void printProperty(StringBuffer sb,String prefix,Object value) {
+        if (value==null) {
+            sb.append(prefix).append("=null\n");
+        }
+        else
+        if (value.getClass().isArray()) {
+            printArrayProperty(sb,prefix,value);
+        }
+        else
+        if (value instanceof Map) {
+            Map map = (Map) value;
+            Iterator i = map.entrySet().iterator();
+            if (i.hasNext()) {
+                while (i.hasNext()) {
+                    Map.Entry me = (Map.Entry) i.next();
+                    String ePrefix = prefix+"["+me.getKey()+"]";
+                    Object eValue = me.getValue();
+
+                    //NEW
+                    String[] tsInfo = new String[2];
+                    tsInfo[0] = ePrefix;
+                    Stack stack = (Stack) PREFIX_TL.get();
+                    stack.push(tsInfo);
+                    String s = (eValue!=null) ? eValue.toString() : "null";
+                    stack.pop();
+                    if (tsInfo[1]==null) {
+                        sb.append(ePrefix).append("=").append(s).append("\n");
+                    }
+                    else {
+                        sb.append(s);
+                    }
+                }
+            }
+            else {
+                sb.append(prefix).append("=[]\n");
+            }
+        }
+        else
+        if (value instanceof Collection) {
+            Collection collection = (Collection) value;
+            Iterator i = collection.iterator();
+            if (i.hasNext()) {
+                int c = 0;
+                while (i.hasNext()) {
+                    String cPrefix = prefix+"["+(c++)+"]";
+                    Object cValue = i.next();
+
+                    //NEW
+                    String[] tsInfo = new String[2];
+                    tsInfo[0] = cPrefix;
+                    Stack stack = (Stack) PREFIX_TL.get();
+                    stack.push(tsInfo);
+                    String s = (cValue!=null) ? cValue.toString() : "null";
+                    stack.pop();
+                    if (tsInfo[1]==null) {
+                        sb.append(cPrefix).append("=").append(s).append("\n");
+                    }
+                    else {
+                        sb.append(s);
+                    }
+                }
+            }
+            else {
+                sb.append(prefix).append("=[]\n");
+            }
+        }
+        else {
+            String[] tsInfo = new String[2];
+            tsInfo[0] = prefix;
+            Stack stack = (Stack) PREFIX_TL.get();
+            stack.push(tsInfo);
+            String s = value.toString();
+            stack.pop();
+            if (tsInfo[1]==null) {
+                sb.append(prefix).append("=").append(s).append("\n");
+            }
+            else {
+                sb.append(s);
+            }
+        }
+    }
+
+    private void printArrayProperty(StringBuffer sb, String prefix,Object array) {
+        int length = Array.getLength(array);
+        for (int i=0;i<length;i++) {
+            Object obj = Array.get(array,i);
+            printProperty(sb,prefix+"["+i+"]",obj);
+        }
+    }
+
+}
+

http://git-wip-us.apache.org/repos/asf/marmotta/blob/00c22e7c/commons/marmotta-sesame-tools/marmotta-rio-rss/src/ext/java/com/sun/syndication/feed/module/DCModule.java
----------------------------------------------------------------------
diff --git a/commons/marmotta-sesame-tools/marmotta-rio-rss/src/ext/java/com/sun/syndication/feed/module/DCModule.java b/commons/marmotta-sesame-tools/marmotta-rio-rss/src/ext/java/com/sun/syndication/feed/module/DCModule.java
new file mode 100644
index 0000000..8786f76
--- /dev/null
+++ b/commons/marmotta-sesame-tools/marmotta-rio-rss/src/ext/java/com/sun/syndication/feed/module/DCModule.java
@@ -0,0 +1,563 @@
+/*
+ * Copyright 2004 Sun Microsystems, Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+package com.sun.syndication.feed.module;
+
+import com.sun.syndication.feed.CopyFrom;
+
+import java.util.List;
+import java.util.Date;
+
+/**
+ * Dublin Core Module.
+ * <p>
+ * @see <a href="http://web.resource.org/rss/1.0/modules/dc/">Dublin Core module</a>.
+ * @author Alejandro Abdelnur
+ *
+ */
+public interface DCModule extends Module, CopyFrom {
+
+    /**
+     * URI of the Dublin Core Module (http://purl.org/dc/elements/1.1/).
+     *
+     */
+    String URI = "http://purl.org/dc/elements/1.1/";
+
+    /**
+     * Returns the DublinCore module titles.
+     * <p>
+     * @return a list of Strings representing the DublinCore module title,
+     *         an empty list if none.
+     *
+     */
+    List<String> getTitles();
+
+    /**
+     * Sets the DublinCore module titles.
+     * <p>
+     * @param titles the list of String representing the DublinCore module titles
+     *        to set, an empty list or <b>null</b> if none.
+     *
+     */
+    void setTitles(List<String> titles);
+
+    /**
+     * Gets the DublinCore module title. Convenience method that can be used
+     * to obtain the first item, <b>null</b> if none.
+     * <p>
+     * @return the first DublinCore module title, <b>null</b> if none.
+     */
+    String getTitle();
+
+    /**
+     * Sets the DublinCore module title. Convenience method that can be used
+     * when there is only one title to set.
+     * <p>
+     * @param title the DublinCore module title to set, <b>null</b> if none.
+     *
+     */
+    void setTitle(String title);
+
+    /**
+     * Returns the DublinCore module creator.
+     * <p>
+     * @return a list of Strings representing the DublinCore module creator,
+     *         an empty list if none.
+     *
+     */
+    List<String> getCreators();
+
+    /**
+     * Sets the DublinCore module creators.
+     * <p>
+     * @param creators the list of String representing the DublinCore module
+     *        creators to set, an empty list or <b>null</b> if none.
+     *
+     */
+    void setCreators(List<String> creators);
+
+    /**
+     * Gets the DublinCore module creator. Convenience method that can be used
+     * to obtain the first item, <b>null</b> if none.
+     * <p>
+     * @return the first DublinCore module creator, <b>null</b> if none.
+     */
+    String getCreator();
+    
+    /**
+     * Sets the DublinCore module creator. Convenience method that can be used
+     * when there is only one creator to set.
+     * <p>
+     * @param creator the DublinCore module creator to set, <b>null</b> if none.
+     *
+     */
+    void setCreator(String creator);
+
+    /**
+     * Returns the DublinCore module subjects.
+     * <p>
+     * @return a list of DCSubject elements with the DublinCore module subjects,
+     *         an empty list if none.
+     *
+     */
+    List<DCSubject> getSubjects();
+
+    /**
+     * Sets the DublinCore module subjects.
+     * <p>
+     * @param subjects the list of DCSubject elements with the DublinCore 
+     * 	      module subjects to set, an empty list or <b>null</b> if none.
+     *
+     */
+    void setSubjects(List<DCSubject> subjects);
+
+    /**
+     * Gets the DublinCore module subject. Convenience method that can be used
+     * to obtain the first item, <b>null</b> if none.
+     * <p>
+     * @return the first DublinCore module subject, <b>null</b> if none.
+     */
+    DCSubject getSubject();
+
+    /**
+     * Sets the DCSubject element. Convenience method that can be used when
+     * there is only one subject to set.
+     * <p>
+     * @param subject the DublinCore module subject to set, <b>null</b> if none.
+     *
+     */
+    void setSubject(DCSubject subject);
+
+    /**
+     * Returns the DublinCore module description.
+     * <p>
+     * @return a list of Strings representing the DublinCore module description,
+     *         an empty list if none.
+     *
+     */
+    List<String> getDescriptions();
+
+    /**
+     * Sets the DublinCore module descriptions.
+     * <p>
+     * @param descriptions the list of String representing the DublinCore
+     * 	     module descriptions to set, an empty list or <b>null</b> if none.
+     *
+     */
+    void setDescriptions(List<String> descriptions);
+
+    /**
+     * Gets the DublinCore module description. Convenience method that can be
+     * used to obtain the first item, <b>null</b> if none.
+     * <p>
+     * @return the first DublinCore module description, <b>null</b> if none.
+     */
+    String getDescription();
+
+    /**
+     * Sets the DublinCore module description. Convenience method that can be
+     * used when there is only one description to set.
+     * <p>
+     * @param description the DublinCore module description to set, <b>null</b> if none.
+     *
+     */
+    void setDescription(String description);
+
+    /**
+     * Returns the DublinCore module publisher.
+     * <p>
+     * @return a list of Strings representing the DublinCore module publisher,
+     *         an empty list if none.
+     *
+     */
+    List<String> getPublishers();
+
+    /**
+     * Sets the DublinCore module publishers.
+     * <p>
+     * @param publishers the list of String representing the DublinCore module
+     * 		publishers to set, an empty list or <b>null</b> if none.
+     *
+     */
+    void setPublishers(List<String> publishers);
+
+    /**
+     * Gets the DublinCore module publisher. Convenience method that can be
+     * used to obtain the first item, <b>null</b> if none.
+     * <p>
+     * @return the first DublinCore module publisher, <b>null</b> if none.
+     */
+    String getPublisher();
+
+    /**
+     * Sets the DublinCore module publisher. Convenience method that can be used when
+     * there is only one publisher to set.
+     * <p>
+     * @param publisher the DublinCore module publisher to set, <b>null</b> if none.
+     *
+     */
+    void setPublisher(String publisher);
+
+    /**
+     * Returns the DublinCore module contributor.
+     * <p>
+     * @return a list of Strings representing the DublinCore module contributor,
+     *         an empty list if none.
+     *
+     */
+    List<String> getContributors();
+
+    /**
+     * Sets the DublinCore module contributors.
+     * <p>
+     * @param contributors the list of String representing the DublinCore module
+     * 	     contributors to set, an empty list or <b>null</b> if none.
+     *
+     */
+    void setContributors(List<String> contributors);
+
+    /**
+     * Gets the DublinCore module contributor. Convenience method that can be
+     * used to obtain the first item, <b>null</b> if none.
+     * <p>
+     * @return the first DublinCore module contributor, <b>null</b> if none.
+     */
+    String getContributor();
+
+    /**
+     * Sets the DublinCore module contributor. Convenience method that can be
+     * used when there is only one contributor to set.
+     * <p>
+     * @param contributor the DublinCore module contributor to set, <b>null</b> if none.
+     *
+     */
+    void setContributor(String contributor);
+
+    /**
+     * Returns the DublinCore module date.
+     * <p>
+     * @return a list of Strings representing the DublinCore module date,
+     *         an empty list if none.
+     *
+     */
+    List<Date> getDates();
+
+    /**
+     * Sets the DublinCore module dates.
+     * <p>
+     * @param dates the list of Date representing the DublinCore module dates to set,
+     *        an empty list or <b>null</b> if none.
+     *
+     */
+    void setDates(List<Date> dates);
+
+    /**
+     * Gets the DublinCore module date. Convenience method that can be used to
+     * obtain the first item, <b>null</b> if none.
+     * <p>
+     * @return the first DublinCore module date, <b>null</b> if none.
+     */
+    Date getDate();
+
+    /**
+     * Sets the DublinCore module date. Convenience method that can be used
+     * when there is only one date to set.
+     * <p>
+     * @param date the DublinCore module date to set, <b>null</b> if none.
+     *
+     */
+    void setDate(Date date);
+
+    /**
+     * Returns the DublinCore module type.
+     * <p>
+     * @return a list of Strings representing the DublinCore module type,
+     *         an empty list if none.
+     *
+     */
+    List<String> getTypes();
+
+    /**
+     * Sets the DublinCore module types.
+     * <p>
+     * @param types the list of String representing the DublinCore module types to set,
+     *        an empty list or <b>null</b> if none.
+     *
+     */
+    void setTypes(List<String> types);
+
+    /**
+     * Gets the DublinCore module type. Convenience method that can be used
+     * to obtain the first item, <b>null</b> if none.
+     * <p>
+     * @return the first DublinCore module type, <b>null</b> if none.
+     */
+    String getType();
+
+    /**
+     * Sets the DublinCore module type. Convenience method that can be used
+     * when there is only one type to set.
+     * <p>
+     * @param type the DublinCore module type to set, <b>null</b> if none.
+     *
+     */
+    void setType(String type);
+
+    /**
+     * Returns the DublinCore module format.
+     * <p>
+     * @return a list of Strings representing the DublinCore module format,
+     *         an empty list if none.
+     *
+     */
+    List<String> getFormats();
+
+    /**
+     * Sets the DublinCore module formats.
+     * <p>
+     * @param formats the list of String representing the DublinCore module
+     * 		formats to set, an empty list or <b>null</b> if none.
+     *
+     */
+    void setFormats(List<String> formats);
+
+    /**
+     * Gets the DublinCore module format. Convenience method that can be used
+     * to obtain the first item, <b>null</b> if none.
+     * <p>
+     * @return the first DublinCore module format, <b>null</b> if none.
+     */
+    String getFormat();
+
+    /**
+     * Sets the DublinCore module format. Convenience method that can be used
+     * when there is only one format to set.
+     * <p>
+     * @param format the DublinCore module format to set, <b>null</b> if none.
+     *
+     */
+    void setFormat(String format);
+
+    /**
+     * Returns the DublinCore module identifier.
+     * <p>
+     * @return a list of Strings representing the DublinCore module identifier,
+     *         an empty list if none.
+     *
+     */
+    List<String> getIdentifiers();
+
+    /**
+     * Sets the DublinCore module identifiers.
+     * <p>
+     * @param identifiers the list of String representing the DublinCore module
+     * 	      identifiers to set, an empty list or <b>null</b> if none.
+     *
+     */
+    void setIdentifiers(List<String> identifiers);
+
+    /**
+     * Gets the DublinCore module identifier. Convenience method that can be
+     * used to obtain the first item, <b>null</b> if none.
+     * <p>
+     * @return the first DublinCore module identifier, <b>null</b> if none.
+     */
+    String getIdentifier();
+
+    /**
+     * Sets the DublinCore module identifier. Convenience method that can be
+     * used when there is only one identifier to set.
+     * <p>
+     * @param identifier the DublinCore module identifier to set, <b>null</b> if none.
+     *
+     */
+    void setIdentifier(String identifier);
+
+    /**
+     * Returns the DublinCore module source.
+     * <p>
+     * @return a list of Strings representing the DublinCore module source,
+     *         an empty list if none.
+     *
+     */
+    List<String> getSources();
+
+    /**
+     * Sets the DublinCore module sources.
+     * <p>
+     * @param sources the list of String representing the DublinCore module
+     * 	     sources to set, an empty list or <b>null</b> if none.
+     *
+     */
+    void setSources(List<String> sources);
+
+    /**
+     * Gets the DublinCore module subject. Convenience method that can be used
+     * to obtain the first item, <b>null</b> if none.
+     * <p>
+     * @return the first DublinCore module creator, <b>null</b> if none.
+     */
+    String getSource();
+
+    /**
+     * Sets the DublinCore module source. Convenience method that can be used
+     * when there is only one source to set.
+     * <p>
+     * @param source the DublinCore module source to set, <b>null</b> if none.
+     *
+     */
+    void setSource(String source);
+
+    /**
+     * Returns the DublinCore module language.
+     * <p>
+     * @return a list of Strings representing the DublinCore module language,
+     *         an empty list if none.
+     *
+     */
+    List<String> getLanguages();
+
+    /**
+     * Sets the DublinCore module languages.
+     * <p>
+     * @param languages the list of String representing the DublinCore module
+     * 	     languages to set, an empty list or <b>null</b> if none.
+     *
+     */
+    void setLanguages(List<String> languages);
+
+    /**
+     * Gets the DublinCore module language. Convenience method that can be used
+     * to obtain the first item, <b>null</b> if none.
+     * <p>
+     * @return the first DublinCore module language, <b>null</b> if none.
+     */
+    String getLanguage();
+
+    /**
+     * Sets the DublinCore module language. Convenience method that can be used
+     * when there is only one language to set.
+     * <p>
+     * @param language the DublinCore module language to set, <b>null</b> if none.
+     *
+     */
+    void setLanguage(String language);
+
+    /**
+     * Returns the DublinCore module relation.
+     * <p>
+     * @return a list of Strings representing the DublinCore module relation,
+     *         an empty list if none.
+     *
+     */
+    List<String> getRelations();
+
+    /**
+     * Sets the DublinCore module relations.
+     * <p>
+     * @param relations the list of String representing the DublinCore module
+     * 	     relations to set, an empty list or <b>null</b> if none.
+     *
+     */
+    void setRelations(List<String> relations);
+
+    /**
+     * Gets the DublinCore module relation. Convenience method that can be used
+     * to obtain the first item, <b>null</b> if none.
+     * <p>
+     * @return the first DublinCore module relation, <b>null</b> if none.
+     */
+    String getRelation();
+
+    /**
+     * Sets the DublinCore module relation. Convenience method that can be used
+     * when there is only one relation to set.
+     * <p>
+     * @param relation the DublinCore module relation to set, <b>null</b> if none.
+     *
+     */
+    void setRelation(String relation);
+
+    /**
+     * Returns the DublinCore module coverage.
+     * <p>
+     * @return a list of Strings representing the DublinCore module coverage,
+     *         an empty list if none.
+     *
+     */
+    List<String> getCoverages();
+
+    /**
+     * Sets the DublinCore module coverages.
+     * <p>
+     * @param coverages the list of String representing the DublinCore module
+     * 	     coverages to set, an empty list or <b>null</b> if none.
+     *
+     */
+    void setCoverages(List<String> coverages);
+
+    /**
+     * Gets the DublinCore module coverage. Convenience method that can be used
+     * to obtain the first item, <b>null</b> if none.
+     * <p>
+     * @return the first DublinCore module coverage, <b>null</b> if none.
+     */
+    String getCoverage();
+
+    /**
+     * Sets the DublinCore module coverage. Convenience method that can be used
+     * when there is only one coverage to set.
+     * <p>
+     * @param coverage the DublinCore module coverage to set, <b>null</b> if none.
+     *
+     */
+    void setCoverage(String coverage);
+
+    /**
+     * Returns the DublinCore module rights.
+     * <p>
+     * @return a list of Strings representing the DublinCore module rights,
+     *         an empty list if none.
+     *
+     */
+    List<String> getRightsList();
+
+    /**
+     * Sets the DublinCore module rightss.
+     * <p>
+     * @param rights the list of String representing the DublinCore module
+     * 	     rights to set, an empty list or <b>null</b> if none.
+     *
+     */
+    void setRightsList(List<String> rights);
+
+    /**
+     * Gets the DublinCore module right. Convenience method that can be used
+     * to obtain the first item, <b>null</b> if none.
+     * <p>
+     * @return the first DublinCore module right, <b>null</b> if none.
+     */
+    String getRights();
+
+    /**
+     * Sets the DublinCore module rights. Convenience method that can be used
+     * when there is only one rights to set.
+     * <p>
+     * @param rights the DublinCore module rights to set, <b>null</b> if none.
+     *
+     */
+    void setRights(String rights);
+}

http://git-wip-us.apache.org/repos/asf/marmotta/blob/00c22e7c/commons/marmotta-sesame-tools/marmotta-rio-rss/src/ext/java/com/sun/syndication/feed/module/DCModuleImpl.java
----------------------------------------------------------------------
diff --git a/commons/marmotta-sesame-tools/marmotta-rio-rss/src/ext/java/com/sun/syndication/feed/module/DCModuleImpl.java b/commons/marmotta-sesame-tools/marmotta-rio-rss/src/ext/java/com/sun/syndication/feed/module/DCModuleImpl.java
new file mode 100644
index 0000000..7359efc
--- /dev/null
+++ b/commons/marmotta-sesame-tools/marmotta-rio-rss/src/ext/java/com/sun/syndication/feed/module/DCModuleImpl.java
@@ -0,0 +1,842 @@
+/*
+ * Copyright 2004 Sun Microsystems, Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+package com.sun.syndication.feed.module;
+
+import com.sun.syndication.feed.CopyFrom;
+import com.sun.syndication.feed.impl.CopyFromHelper;
+import com.sun.syndication.feed.impl.ObjectBean;
+
+import java.util.*;
+
+
+/**
+ * Dublin Core ModuleImpl, default implementation.
+ * <p>
+ * @see <a href="http://web.resource.org/rss/1.0/modules/dc/">Dublin Core module</a>.
+ * @author Alejandro Abdelnur
+ *
+ */
+public class DCModuleImpl extends ModuleImpl implements DCModule {
+    private ObjectBean _objBean;
+    private List<String> _title;
+    private List<String> _creator;
+    private List<DCSubject> _subject;
+    private List<String> _description;
+    private List<String> _publisher;
+    private List<String> _contributors;
+    private List<Date> _date;
+    private List<String> _type;
+    private List<String> _format;
+    private List<String> _identifier;
+    private List<String> _source;
+    private List<String> _language;
+    private List<String> _relation;
+    private List<String> _coverage;
+    private List<String> _rights;
+
+    /**
+     * Properties to be ignored when cloning.
+     */
+    private static final Set IGNORE_PROPERTIES = new HashSet();
+
+    /**
+     * Unmodifiable Set containing the convenience properties of this class.
+     * <p>
+     * Convenience properties are mapped to Modules, for cloning the convenience
+     * properties can be ignored as the will be copied as part of the module
+     * cloning.
+     */
+    public static final Set CONVENIENCE_PROPERTIES = Collections.unmodifiableSet(IGNORE_PROPERTIES);
+
+    static {
+        IGNORE_PROPERTIES.add("title");
+        IGNORE_PROPERTIES.add("creator");
+        IGNORE_PROPERTIES.add("subject");
+        IGNORE_PROPERTIES.add("description");
+        IGNORE_PROPERTIES.add("publisher");
+        IGNORE_PROPERTIES.add("contributor");
+        IGNORE_PROPERTIES.add("date");
+        IGNORE_PROPERTIES.add("type");
+        IGNORE_PROPERTIES.add("format");
+        IGNORE_PROPERTIES.add("identifier");
+        IGNORE_PROPERTIES.add("source");
+        IGNORE_PROPERTIES.add("language");
+        IGNORE_PROPERTIES.add("relation");
+        IGNORE_PROPERTIES.add("coverage");
+        IGNORE_PROPERTIES.add("rights");
+    }
+
+    /**
+     * Default constructor. All properties are set to <b>null</b>.
+     * <p>
+     *
+     */
+    public DCModuleImpl() {
+        super(DCModule.class, URI);
+        _objBean = new ObjectBean(DCModule.class, this, CONVENIENCE_PROPERTIES);
+    }
+
+    /**
+     * Returns the DublinCore module titles.
+     * <p>
+     * @return a list of Strings representing the DublinCore module title,
+     *         an empty list if none.
+     *
+     */
+    public List getTitles() {
+        return (_title == null) ? (_title = new ArrayList()) : _title;
+    }
+
+    /**
+     * Sets the DublinCore module titles.
+     * <p>
+     * @param titles the list of String representing the DublinCore module
+     * 		titles to set, an empty list or <b>null</b> if none.
+     *
+     */
+    public void setTitles(List titles) {
+    		_title = titles;
+    }
+
+    /**
+     * Gets the DublinCore module title. Convenience method that can be used to
+     * obtain the first item, <b>null</b> if none.
+     * <p>
+     * @return the first DublinCore module title, <b>null</b> if none.
+     */
+    public String getTitle() {
+        return ((_title != null) && (_title.size() > 0)) ? (String) _title.get(0) : null;
+    }
+
+    /**
+     * Sets the DublinCore module title. Convenience method that can be used
+     * when there is only one title to set.
+     * <p>
+     * @param title the DublinCore module title to set, <b>null</b> if none.
+     *
+     */
+    public void setTitle(String title) {
+    		_title = new ArrayList();
+    		_title.add(title);
+    }
+
+    /**
+     * Returns the DublinCore module creator.
+     * <p>
+     * @return a list of Strings representing the DublinCore module creator,
+     *         an empty list if none.
+     *
+     */
+    public List getCreators() {
+        return (_creator == null) ? (_creator = new ArrayList()) : _creator;
+    }
+
+    /**
+     * Sets the DublinCore module creators.
+     * <p>
+     * @param creators the list of String representing the DublinCore module
+     * 		creators to set, an empty list or <b>null</b> if none.
+     *
+     */
+    public void setCreators(List creators) {
+        _creator = creators;
+    }
+    
+    /**
+     * Gets the DublinCore module title. Convenience method that can be used
+     * to obtain the first item, <b>null</b> if none.
+     * <p>
+     * @return the first DublinCore module title, <b>null</b> if none.
+     */
+    public String getCreator() {
+        return ((_creator != null) && (_creator.size() > 0)) ? (String) _creator.get(0) : null;
+    }
+    
+    /**
+     * Sets the DublinCore module creator. Convenience method that can be used
+     * when there is only one creator to set.
+     * <p>
+     * @param creator the DublinCore module creator to set, <b>null</b> if none.
+     *
+     */
+    public void setCreator(String creator) {
+        _creator = new ArrayList();
+        _creator.add(creator);
+    }
+
+    /**
+     * Returns the DublinCore module subjects.
+     * <p>
+     * @return a list of DCSubject elements with the DublinCore module subjects,
+     *         an empty list if none.
+     *
+     */
+    public List getSubjects() {
+        return (_subject == null) ? (_subject = new ArrayList()) : _subject;
+    }
+
+    /**
+     * Sets the DublinCore module subjects.
+     * <p>
+     * @param subjects the list of DCSubject elements with the DublinCore
+     * 		module subjects to set, an empty list or <b>null</b> if none.
+     *
+     */
+    public void setSubjects(List subjects) {
+        _subject = subjects;
+    }
+
+    /**
+     * Gets the DublinCore module subject. Convenience method that can be used
+     * to obtain the first item, <b>null</b> if none.
+     * <p>
+     * @return the first DublinCore module subject, <b>null</b> if none. 
+     */
+    public DCSubject getSubject() {
+        return ((_subject != null) && (_subject.size() > 0)) ?
+                (DCSubject) _subject.get(0) : null;
+    }
+    
+    /**
+     * Sets the DCSubject element. Convenience method that can be used when
+     * there is only one subject to set.
+     * <p>
+     * @param subject the DublinCore module subject to set, <b>null</b> if none.
+     *
+     */
+    public void setSubject(DCSubject subject) {
+        _subject = new ArrayList();
+        _subject.add(subject);
+    }
+
+    /**
+     * Returns the DublinCore module description.
+     * <p>
+     * @return a list of Strings representing the DublinCore module
+     * 		description, an empty list if none.
+     *
+     */
+    public List getDescriptions() {
+        return (_description == null) ? (_description = new ArrayList()) : _description;
+    }
+
+    /**
+     * Sets the DublinCore module descriptions.
+     * <p>
+     * @param descriptions the list of String representing the DublinCore
+     * 		module descriptions to set, an empty list or <b>null</b> if none.
+     *
+     */
+    public void setDescriptions(List descriptions) {
+        _description = descriptions;
+    }
+    
+    /**
+     * Gets the DublinCore module description. Convenience method that can be
+     * used to obtain the first item, <b>null</b> if none.
+     * <p>
+     * @return the first DublinCore module description, <b>null</b> if none.
+     */
+    public String getDescription() {
+        return ((_description != null) && (_description.size() > 0)) ?
+                (String) _description.get(0) : null;
+    }
+    
+    /**
+     * Sets the DublinCore module description. Convenience method that can be
+     * used when there is only one description to set.
+     * <p>
+     * @param description the DublinCore module description to set, <b>null</b> if none.
+     *
+     */
+    public void setDescription(String description) {
+        _description = new ArrayList();
+        _description.add(description);
+    }
+
+    /**
+     * Returns the DublinCore module publisher.
+     * <p>
+     * @return a list of Strings representing the DublinCore module publisher,
+     *         an empty list if none.
+     *
+     */
+    public List getPublishers() {
+        return (_publisher == null) ? (_publisher = new ArrayList()) : _publisher;
+    }
+
+    /**
+     * Sets the DublinCore module publishers.
+     * <p>
+     * @param publishers the list of String representing the DublinCore module
+     * 		publishers to set, an empty list or <b>null</b> if none.
+     *
+     */
+    public void setPublishers(List publishers) {
+        _publisher = publishers;
+    }
+
+    /**
+     * Gets the DublinCore module title. Convenience method that can be used to
+     * obtain the first item, <b>null</b> if none.
+     * <p>
+     * @return the first DublinCore module title, <b>null</b> if none.
+     */
+    public String getPublisher() {
+        return ((_publisher != null) && (_publisher.size() > 0)) ?
+                (String) _publisher.get(0) : null;
+    }
+
+    /**
+     * Sets the DublinCore module publisher. Convenience method that can be
+     * used when there is only one publisher to set.
+     * <p>
+     * @param publisher the DublinCore module publisher to set, <b>null</b> if none.
+     *
+     */
+    public void setPublisher(String publisher) {
+        _publisher = new ArrayList();
+        _publisher.add(publisher);
+    }
+
+    /**
+     * Returns the DublinCore module contributor.
+     * <p>
+     * @return a list of Strings representing the DublinCore module contributor,
+     *         an empty list if none.
+     *
+     */
+    public List getContributors() {
+        return (_contributors == null) ? (_contributors = new ArrayList()) : _contributors;
+    }
+
+    /**
+     * Sets the DublinCore module contributors.
+     * <p>
+     * @param contributors the list of String representing the DublinCore
+     * 		module contributors to set, an empty list or <b>null</b> if none.
+     *
+     */
+    public void setContributors(List contributors) {
+        _contributors = contributors;
+    }
+
+    /**
+     * Gets the DublinCore module contributor. Convenience method that can be
+     * used to obtain the first item, <b>null</b> if none.
+     * <p>
+     * @return the first DublinCore module contributor, <b>null</b> if none.
+     */
+    public String getContributor() {
+        return ((_contributors != null) && (_contributors.size() > 0)) ?
+                (String) _contributors.get(0) : null;
+    }
+    
+    /**
+     * Sets the DublinCore module contributor. Convenience method that can be
+     * used when there is only one contributor to set.
+     * <p>
+     * @param contributor the DublinCore module contributor to set, <b>null</b> if none.
+     *
+     */
+    public void setContributor(String contributor) {
+        _contributors = new ArrayList();
+        _contributors.add(contributor);
+    }
+
+    /**
+     * Returns the DublinCore module date.
+     * <p>
+     * @return a list of Strings representing the DublinCore module date,
+     *         an empty list if none.
+     *
+     */
+    public List<Date> getDates() {
+        return (_date == null) ? (_date = new ArrayList()) : _date;
+    }
+
+    /**
+     * Sets the DublinCore module dates.
+     * <p>
+     * @param dates the list of Date representing the DublinCore module dates
+     * 		to set, an empty list or <b>null</b> if none.
+     *
+     */
+    public void setDates(List<Date> dates) {
+        _date = dates;
+    }
+    
+    /**
+     * Gets the DublinCore module date. Convenience method that can be used to
+     * obtain the first item, <b>null</b> if none.
+     * <p>
+     * @return the first DublinCore module date, <b>null</b> if none.
+     */
+    public Date getDate() {
+        return ((_date != null) && (_date.size() > 0)) ?
+                (Date) _date.get(0) : null;
+    }
+    /**
+     * Sets the DublinCore module date. Convenience method that can be used
+     * when there is only one date to set.
+     * <p>
+     * @param date the DublinCore module date to set, <b>null</b> if none.
+     *
+     */
+    public void setDate(Date date) {
+        _date = new ArrayList();
+        _date.add(date);
+    }
+
+    /**
+     * Returns the DublinCore module type.
+     * <p>
+     * @return a list of Strings representing the DublinCore module type,
+     *         an empty list if none.
+     *
+     */
+    public List getTypes() {
+        return (_type == null) ? (_type = new ArrayList()) : _type;
+    }
+
+    /**
+     * Sets the DublinCore module types.
+     * <p>
+     * @param types the list of String representing the DublinCore module types
+     * 		to set, an empty list or <b>null</b> if none.
+     *
+     */
+    public void setTypes(List types) {
+        _type = types;
+    }
+    
+    /**
+     * Gets the DublinCore module type. Convenience method that can be used to
+     * obtain the first item, <b>null</b> if none.
+     * <p>
+     * @return the first DublinCore module type, <b>null</b> if none.
+     */
+    public String getType() {
+        return ((_type != null) && (_type.size() > 0)) ?
+                (String) _type.get(0) : null;
+    }
+    
+    /**
+     * Sets the DublinCore module type. Convenience method that can be used
+     * when there is only one type to set.
+     * <p>
+     * @param type the DublinCore module type to set, <b>null</b> if none.
+     *
+     */
+    public void setType(String type) {
+        _type = new ArrayList();
+        _type.add(type);
+    }
+
+    /**
+     * Returns the DublinCore module format.
+     * <p>
+     * @return a list of Strings representing the DublinCore module format,
+     *         an empty list if none.
+     *
+     */
+    public List getFormats() {
+        return (_format == null) ? (_format = new ArrayList()) : _format;
+    }
+
+    /**
+     * Sets the DublinCore module formats.
+     * <p>
+     * @param formats the list of String representing the DublinCore module
+     * 		formats to set, an empty list or <b>null</b> if none.
+     *
+     */
+    public void setFormats(List formats) {
+        _format = formats;
+    }
+
+    /**
+     * Gets the DublinCore module format. Convenience method that can be used
+     * to obtain the first item, <b>null</b> if none.
+     * <p>
+     * @return the first DublinCore module format, <b>null</b> if none.
+     */
+    public String getFormat() {
+        return ((_format != null) && (_format.size() > 0)) ?
+                (String) _format.get(0) : null;
+    }
+
+    /**
+     * Sets the DublinCore module format. Convenience method that can be used
+     * when there is only one format to set.
+     * <p>
+     * @param format the DublinCore module format to set, <b>null</b> if none.
+     *
+     */
+    public void setFormat(String format) {
+        _format = new ArrayList();
+        _format.add(format);
+    }
+
+    /**
+     * Returns the DublinCore module identifier.
+     * <p>
+     * @return a list of Strings representing the DublinCore module identifier,
+     *         an empty list if none.
+     *
+     */
+    public List getIdentifiers() {
+        return (_identifier == null) ? (_identifier = new ArrayList()) : _identifier;
+    }
+
+    /**
+     * Sets the DublinCore module identifiers.
+     * <p>
+     * @param identifiers the list of String representing the DublinCore module
+     * 		identifiers to set, an empty list or <b>null</b> if none.
+     *
+     */
+    public void setIdentifiers(List identifiers) {
+        _identifier = identifiers;
+    }
+    
+    /**
+     * Gets the DublinCore module identifier. Convenience method that can be
+     * used to obtain the first item, <b>null</b> if none.
+     * <p>
+     * @return the first DublinCore module identifier, <b>null</b> if none.
+     */
+    public String getIdentifier() {
+        return ((_identifier != null) && (_identifier.size() > 0)) ?
+                (String) _identifier.get(0) : null;
+    }
+
+    /**
+     * Sets the DublinCore module identifier. Convenience method that can be
+     * used when there is only one identifier to set.
+     * <p>
+     * @param identifier the DublinCore module identifier to set, <b>null</b> if none.
+     *
+     */
+    public void setIdentifier(String identifier) {
+        _identifier = new ArrayList();
+        _identifier.add(identifier);
+    }
+
+    /**
+     * Returns the DublinCore module source.
+     * <p>
+     * @return a list of Strings representing the DublinCore module source,
+     *         an empty list if none.
+     *
+     */
+    public List getSources() {
+        return (_source == null) ? (_source = new ArrayList()) : _source;
+    }
+
+    /**
+     * Sets the DublinCore module sources.
+     * <p>
+     * @param sources the list of String representing the DublinCore module
+     * 		sources to set, an empty list or <b>null</b> if none.
+     *
+     */
+    public void setSources(List sources) {
+        _source = sources;
+    }
+    
+    /**
+     * Gets the DublinCore module source. Convenience method that can be used
+     * to obtain the first item, <b>null</b> if none.
+     * <p>
+     * @return the first DublinCore module source, <b>null</b> if none.
+     */
+    public String getSource() {
+        return ((_source != null) && (_source.size() > 0)) ?
+                (String) _source.get(0) : null;
+    }
+
+    /**
+     * Sets the DublinCore module source. Convenience method that can be used
+     * when there is only one source to set.
+     * <p>
+     * @param source the DublinCore module source to set, <b>null</b> if none.
+     *
+     */
+    public void setSource(String source) {
+        _source = new ArrayList();
+        _source.add(source);
+    }
+
+    /**
+     * Returns the DublinCore module language.
+     * <p>
+     * @return a list of Strings representing the DublinCore module language,
+     *         an empty list if none.
+     *
+     */
+    public List getLanguages() {
+        return (_language == null) ? (_language = new ArrayList()) : _language;
+    }
+
+    /**
+     * Sets the DublinCore module languages.
+     * <p>
+     * @param languages the list of String representing the DublinCore module
+     * 		languages to set, an empty list or <b>null</b> if none.
+     *
+     */
+    public void setLanguages(List languages) {
+        _language = languages;
+    }
+
+    /**
+     * Gets the DublinCore module language. Convenience method that can be
+     * used to obtain the first item, <b>null</b> if none.
+     * <p>
+     * @return the first DublinCore module langauge, <b>null</b> if none.
+     */
+    public String getLanguage() {
+        return ((_language != null) && (_language.size() > 0)) ?
+                (String) _language.get(0) : null;
+    }
+    /**
+     * Sets the DublinCore module language. Convenience method that can be used
+     * when there is only one language to set.
+     * <p>
+     * @param language the DublinCore module language to set, <b>null</b> if none.
+     *
+     */
+    public void setLanguage(String language) {
+        _language = new ArrayList();
+        _language.add(language);
+    }
+
+    /**
+     * Returns the DublinCore module relation.
+     * <p>
+     * @return a list of Strings representing the DublinCore module relation,
+     *         an empty list if none.
+     *
+     */
+    public List getRelations() {
+        return (_relation == null) ? (_relation = new ArrayList()) : _relation;
+    }
+
+    /**
+     * Sets the DublinCore module relations.
+     * <p>
+     * @param relations the list of String representing the DublinCore module
+     * 		relations to set, an empty list or <b>null</b> if none.
+     *
+     */
+    public void setRelations(List relations) {
+        _relation = relations;
+    }
+
+    /**
+     * Gets the DublinCore module relation. Convenience method that can be used
+     * to obtain the first item, <b>null</b> if none.
+     * <p>
+     * @return the first DublinCore module relation, <b>null</b> if none.
+     */
+    public String getRelation() {
+        return ((_relation != null) && (_relation.size() > 0)) ?
+                (String) _relation.get(0) : null;
+    }
+
+    /**
+     * Sets the DublinCore module relation. Convenience method that can be used
+     * when there is only one relation to set.
+     * <p>
+     * @param relation the DublinCore module relation to set, <b>null</b> if none.
+     *
+     */
+    public void setRelation(String relation) {
+        _relation = new ArrayList();
+        _relation.add(relation);
+    }
+
+    /**
+     * Returns the DublinCore module coverage.
+     * <p>
+     * @return a list of Strings representing the DublinCore module coverage,
+     *         an empty list if none.
+     *
+     */
+    public List getCoverages() {
+        return (_coverage == null) ? (_coverage = new ArrayList()) : _coverage;
+    }
+
+    /**
+     * Sets the DublinCore module coverages.
+     * <p>
+     * @param coverages the list of String representing the DublinCore module
+     * 		coverages to set, an empty list or <b>null</b> if none.
+     *
+     */
+    public void setCoverages(List coverages) {
+        _coverage = coverages;
+    }
+
+    /**
+     * Gets the DublinCore module coverage. Convenience method that can be used
+     * to obtain the first item, <b>null</b> if none.
+     * <p>
+     * @return the first DublinCore module coverage, <b>null</b> if none.
+     */
+    public String getCoverage() {
+        return ((_coverage != null) && (_coverage.size() > 0)) ?
+                (String) _coverage.get(0) : null;
+    }
+
+    /**
+     * Sets the DublinCore module coverage. Convenience method that can be used
+     * when there is only one coverage to set.
+     * <p>
+     * @param coverage the DublinCore module coverage to set, <b>null</b> if none.
+     *
+     */
+    public void setCoverage(String coverage) {
+        _coverage = new ArrayList();
+        _coverage.add(coverage);
+    }
+
+    /**
+     * Returns the DublinCore module rights.
+     * <p>
+     * @return a list of Strings representing the DublinCore module rights,
+     *         an empty list if none.
+     *
+     */
+    public List getRightsList() {
+        return (_rights == null) ? (_rights = new ArrayList()) : _rights;
+    }
+
+    /**
+     * Sets the DublinCore module rights.
+     * <p>
+     * @param rights the list of String representing the DublinCore module
+     * 		rights to set, an empty list or <b>null</b> if none.
+     *
+     */
+    public void setRightsList(List rights) {
+        _rights = rights;
+    }
+    
+    /**
+     * Gets the DublinCore module rights. Convenience method that can be used
+     * to obtain the first item, <b>null</b> if none.
+     * <p>
+     * @return the first DublinCore module rights, <b>null</b> if none.
+     */
+    public String getRights() {
+        return ((_rights != null) && (_rights.size() > 0)) ?
+                (String) _rights.get(0) : null;
+    }
+    
+    /**
+     * Sets the DublinCore module rights. Convenience method that can be used
+     * when there is only one rights to set.
+     * <p>
+     * @param rights the DublinCore module rights to set, <b>null</b> if none.
+     *
+     */
+    public void setRights(String rights) {
+        _rights = new ArrayList();
+        _rights.add(rights);
+    }
+
+    /**
+     * Creates a deep 'bean' clone of the object.
+     * <p>
+     * @return a clone of the object.
+     * @throws CloneNotSupportedException thrown if an element of the object cannot be cloned.
+     *
+     */
+    public final Object clone() throws CloneNotSupportedException {
+        return _objBean.clone();
+    }
+
+    /**
+     * Indicates whether some other object is "equal to" this one as defined by the Object equals() method.
+     * <p>
+     * @param other he reference object with which to compare.
+     * @return <b>true</b> if 'this' object is equal to the 'other' object.
+     *
+     */
+    public final boolean equals(Object other) {
+        return _objBean.equals(other);
+    }
+
+    /**
+     * Returns a hashcode value for the object.
+     * <p>
+     * It follows the contract defined by the Object hashCode() method.
+     * <p>
+     * @return the hashcode of the bean object.
+     *
+     */
+    public final int hashCode() {
+        return _objBean.hashCode();
+    }
+
+    /**
+     * Returns the String representation for the object.
+     * <p>
+     * @return String representation for the object.
+     *
+     */
+    @Override
+    public final String toString() {
+        return _objBean.toString();
+    }
+    
+    public final Class<? extends CopyFrom> getInterface() {
+        return DCModule.class;
+    }
+
+    public final void copyFrom(CopyFrom obj) {
+        COPY_FROM_HELPER.copy(this,obj);
+    }
+
+    private static final CopyFromHelper COPY_FROM_HELPER;
+    
+    static {
+        Map basePropInterfaceMap = new HashMap();
+        basePropInterfaceMap.put("titles", String.class);
+        basePropInterfaceMap.put("creators", String.class);
+        basePropInterfaceMap.put("subjects", DCSubject.class);
+        basePropInterfaceMap.put("descriptions", String.class);
+        basePropInterfaceMap.put("publishers", String.class);
+        basePropInterfaceMap.put("contributors", String.class);
+        basePropInterfaceMap.put("dates", Date.class);
+        basePropInterfaceMap.put("types", String.class);
+        basePropInterfaceMap.put("formats", String.class);
+        basePropInterfaceMap.put("identifiers", String.class);
+        basePropInterfaceMap.put("sources", String.class);
+        basePropInterfaceMap.put("languages", String.class);
+        basePropInterfaceMap.put("relations", String.class);
+        basePropInterfaceMap.put("coverages", String.class);
+        basePropInterfaceMap.put("rightsList", String.class);
+
+        Map basePropClassImplMap = new HashMap();
+        basePropClassImplMap.put(DCSubject.class,DCSubjectImpl.class);
+
+        COPY_FROM_HELPER = new CopyFromHelper(DCModule.class,basePropInterfaceMap,basePropClassImplMap);
+    }
+}

http://git-wip-us.apache.org/repos/asf/marmotta/blob/00c22e7c/commons/marmotta-sesame-tools/marmotta-rio-rss/src/ext/java/com/sun/syndication/feed/module/DCSubject.java
----------------------------------------------------------------------
diff --git a/commons/marmotta-sesame-tools/marmotta-rio-rss/src/ext/java/com/sun/syndication/feed/module/DCSubject.java b/commons/marmotta-sesame-tools/marmotta-rio-rss/src/ext/java/com/sun/syndication/feed/module/DCSubject.java
new file mode 100644
index 0000000..d4fb96e
--- /dev/null
+++ b/commons/marmotta-sesame-tools/marmotta-rio-rss/src/ext/java/com/sun/syndication/feed/module/DCSubject.java
@@ -0,0 +1,70 @@
+/*
+ * Copyright 2004 Sun Microsystems, Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+package com.sun.syndication.feed.module;
+
+import com.sun.syndication.feed.CopyFrom;
+
+/**
+ * Subject of the Dublin Core ModuleImpl.
+ * <p>
+ * @see <a href="http://web.resource.org/rss/1.0/modules/dc/">Dublin Core module</a>.
+ * @author Alejandro Abdelnur
+ *
+ */
+public interface DCSubject extends Cloneable,CopyFrom {
+    /**
+     * Returns the DublinCore subject taxonomy URI.
+     * <p>
+     * @return the DublinCore subject taxonomy URI, <b>null</b> if none.
+     *
+     */
+    String getTaxonomyUri();
+
+    /**
+     * Sets the DublinCore subject taxonomy URI.
+     * <p>
+     * @param taxonomyUri the DublinCore subject taxonomy URI to set, <b>null</b> if none.
+     *
+     */
+    void setTaxonomyUri(String taxonomyUri);
+
+    /**
+     * Returns the DublinCore subject value.
+     * <p>
+     * @return the DublinCore subject value, <b>null</b> if none.
+     *
+     */
+    String getValue();
+
+    /**
+     * Sets the DublinCore subject value.
+     * <p>
+     * @param value the DublinCore subject value to set, <b>null</b> if none.
+     *
+     */
+    void setValue(String value);
+
+    /**
+     * Creates a deep clone of the object.
+     * <p>
+     * @return a clone of the object.
+     * @throws CloneNotSupportedException thrown if an element of the object cannot be cloned.
+     *
+     */
+    public Object clone() throws CloneNotSupportedException;
+
+}

http://git-wip-us.apache.org/repos/asf/marmotta/blob/00c22e7c/commons/marmotta-sesame-tools/marmotta-rio-rss/src/ext/java/com/sun/syndication/feed/module/DCSubjectImpl.java
----------------------------------------------------------------------
diff --git a/commons/marmotta-sesame-tools/marmotta-rio-rss/src/ext/java/com/sun/syndication/feed/module/DCSubjectImpl.java b/commons/marmotta-sesame-tools/marmotta-rio-rss/src/ext/java/com/sun/syndication/feed/module/DCSubjectImpl.java
new file mode 100644
index 0000000..038d5e3
--- /dev/null
+++ b/commons/marmotta-sesame-tools/marmotta-rio-rss/src/ext/java/com/sun/syndication/feed/module/DCSubjectImpl.java
@@ -0,0 +1,160 @@
+/*
+ * Copyright 2004 Sun Microsystems, Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+package com.sun.syndication.feed.module;
+
+import com.sun.syndication.feed.CopyFrom;
+import com.sun.syndication.feed.impl.ObjectBean;
+import com.sun.syndication.feed.impl.CopyFromHelper;
+
+import java.util.Collections;
+import java.util.HashMap;
+import java.util.Map;
+import java.io.Serializable;
+
+/**
+ * Subject of the Dublin Core ModuleImpl, default implementation.
+ * <p>
+ * @see <a href="http://web.resource.org/rss/1.0/modules/dc/">Dublin Core module</a>.
+ * @author Alejandro Abdelnur
+ *
+ */
+public class DCSubjectImpl implements Cloneable,Serializable, DCSubject {
+    private ObjectBean _objBean;
+    private String _taxonomyUri;
+    private String _value;
+
+    /**
+     * Default constructor. All properties are set to <b>null</b>.
+     * <p>
+     *
+     */
+    public DCSubjectImpl() {
+        _objBean = new ObjectBean(this.getClass(),this);
+    }
+
+    /**
+     * Creates a deep 'bean' clone of the object.
+     * <p>
+     * @return a clone of the object.
+     * @throws CloneNotSupportedException thrown if an element of the object cannot be cloned.
+     *
+     */
+    @Override
+    public Object clone() throws CloneNotSupportedException {
+        return _objBean.clone();
+    }
+
+    /**
+     * Indicates whether some other object is "equal to" this one as defined by the Object equals() method.
+     * <p>
+     * @param other he reference object with which to compare.
+     * @return <b>true</b> if 'this' object is equal to the 'other' object.
+     *
+     */
+    @Override
+    public boolean equals(Object other) {
+        if(!(other instanceof DCSubjectImpl)){
+            return false;
+        }
+        return _objBean.equals(other);
+    }
+
+    /**
+     * Returns a hashcode value for the object.
+     * <p>
+     * It follows the contract defined by the Object hashCode() method.
+     * <p>
+     * @return the hashcode of the bean object.
+     *
+     */
+    @Override
+    public int hashCode() {
+        return _objBean.hashCode();
+    }
+
+    /**
+     * Returns the String representation for the object.
+     * <p>
+     * @return String representation for the object.
+     *
+     */
+    @Override
+    public String toString() {
+        return _objBean.toString();
+    }
+
+    /**
+     * Returns the DublinCore subject taxonomy URI.
+     * <p>
+     * @return the DublinCore subject taxonomy URI, <b>null</b> if none.
+     *
+     */
+    public String getTaxonomyUri() {
+        return _taxonomyUri;
+    }
+
+    /**
+     * Sets the DublinCore subject taxonomy URI.
+     * <p>
+     * @param taxonomyUri the DublinCore subject taxonomy URI to set, <b>null</b> if none.
+     *
+     */
+    public void setTaxonomyUri(String taxonomyUri) {
+        _taxonomyUri = taxonomyUri;
+    }
+
+    /**
+     * Returns the DublinCore subject value.
+     * <p>
+     * @return the DublinCore subject value, <b>null</b> if none.
+     *
+     */
+    public String getValue() {
+        return _value;
+    }
+
+    /**
+     * Sets the DublinCore subject value.
+     * <p>
+     * @param value the DublinCore subject value to set, <b>null</b> if none.
+     *
+     */
+    public void setValue(String value) {
+        _value = value;
+    }
+
+    public Class getInterface() {
+        return DCSubject.class;
+    }
+
+    public void copyFrom(CopyFrom obj) {
+        COPY_FROM_HELPER.copy(this,obj);
+    }
+
+    private static final CopyFromHelper COPY_FROM_HELPER;
+
+    static {
+        Map basePropInterfaceMap = new HashMap();
+        basePropInterfaceMap.put("taxonomyUri",String.class);
+        basePropInterfaceMap.put("value",String.class);
+
+        Map basePropClassImplMap = Collections.EMPTY_MAP;
+
+        COPY_FROM_HELPER = new CopyFromHelper(DCSubject.class,basePropInterfaceMap,basePropClassImplMap);
+    }
+
+}

http://git-wip-us.apache.org/repos/asf/marmotta/blob/00c22e7c/commons/marmotta-sesame-tools/marmotta-rio-rss/src/ext/java/com/sun/syndication/feed/module/Extendable.java
----------------------------------------------------------------------
diff --git a/commons/marmotta-sesame-tools/marmotta-rio-rss/src/ext/java/com/sun/syndication/feed/module/Extendable.java b/commons/marmotta-sesame-tools/marmotta-rio-rss/src/ext/java/com/sun/syndication/feed/module/Extendable.java
new file mode 100644
index 0000000..f58f774
--- /dev/null
+++ b/commons/marmotta-sesame-tools/marmotta-rio-rss/src/ext/java/com/sun/syndication/feed/module/Extendable.java
@@ -0,0 +1,53 @@
+/*
+ * Copyright 2004 Sun Microsystems, Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+package com.sun.syndication.feed.module;
+
+import java.util.List;
+
+/**
+ * Objects that can have modules are Extendable.
+ * @author Dave Johnson
+ */
+public interface Extendable {
+    
+    /**
+     * Returns the module identified by a given URI.
+     * <p>
+     * @param uri the URI of the ModuleImpl.
+     * @return The module with the given URI, <b>null</b> if none.
+     */
+    public Module getModule(String uri);
+
+    /**
+     * Returns the entry modules.
+     * <p>
+     * @return a list of ModuleImpl elements with the entry modules,
+     *         an empty list if none.
+     *
+     */
+    List<Module> getModules();
+
+    /**
+     * Sets the entry modules.
+     * <p>
+     * @param modules the list of ModuleImpl elements with the entry modules to set,
+     *        an empty list or <b>null</b> if none.
+     *
+     */
+    void setModules(List<Module> modules);
+}

http://git-wip-us.apache.org/repos/asf/marmotta/blob/00c22e7c/commons/marmotta-sesame-tools/marmotta-rio-rss/src/ext/java/com/sun/syndication/feed/module/Module.java
----------------------------------------------------------------------
diff --git a/commons/marmotta-sesame-tools/marmotta-rio-rss/src/ext/java/com/sun/syndication/feed/module/Module.java b/commons/marmotta-sesame-tools/marmotta-rio-rss/src/ext/java/com/sun/syndication/feed/module/Module.java
new file mode 100644
index 0000000..8ba7f94
--- /dev/null
+++ b/commons/marmotta-sesame-tools/marmotta-rio-rss/src/ext/java/com/sun/syndication/feed/module/Module.java
@@ -0,0 +1,48 @@
+/*
+ * Copyright 2004 Sun Microsystems, Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+package com.sun.syndication.feed.module;
+
+import com.sun.syndication.feed.CopyFrom;
+import java.io.Serializable;
+
+/**
+ * Base class for modules describing Metadata of feeds. Examples of such modules are
+ * the Dublin Core and Syndication modules.
+ * <p>
+ * @author Alejandro Abdelnur
+ *
+ */
+public interface Module extends Cloneable,CopyFrom,Serializable{
+
+    /**
+     * Returns the URI of the module.
+     * <p>
+     * @return URI of the module.
+     *
+     */
+    String getUri();
+
+    /**
+     * Creates a deep clone of the object.
+     * <p>
+     * @return a clone of the object.
+     * @throws CloneNotSupportedException thrown if an element of the object cannot be cloned.
+     *
+     */
+    public Object clone() throws CloneNotSupportedException;
+
+}

http://git-wip-us.apache.org/repos/asf/marmotta/blob/00c22e7c/commons/marmotta-sesame-tools/marmotta-rio-rss/src/ext/java/com/sun/syndication/feed/module/ModuleImpl.java
----------------------------------------------------------------------
diff --git a/commons/marmotta-sesame-tools/marmotta-rio-rss/src/ext/java/com/sun/syndication/feed/module/ModuleImpl.java b/commons/marmotta-sesame-tools/marmotta-rio-rss/src/ext/java/com/sun/syndication/feed/module/ModuleImpl.java
new file mode 100644
index 0000000..7e80031
--- /dev/null
+++ b/commons/marmotta-sesame-tools/marmotta-rio-rss/src/ext/java/com/sun/syndication/feed/module/ModuleImpl.java
@@ -0,0 +1,106 @@
+/*
+ * Copyright 2004 Sun Microsystems, Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+package com.sun.syndication.feed.module;
+
+import com.sun.syndication.feed.impl.ObjectBean;
+
+import java.io.Serializable;
+
+/**
+ * Base class for modules describing Metadata of feeds, default implementations.
+ * Examples of such modules are the Dublin Core and Syndication modules.
+ * <p>
+ * @author Alejandro Abdelnur
+ *
+ */
+public abstract class ModuleImpl implements Cloneable,Serializable,Module {
+    private ObjectBean _objBean;
+    private String _uri;
+
+    /**
+     * Constructor.
+     * <p>
+     * @param uri URI of the module.
+     *
+     */
+    protected ModuleImpl(Class beanClass,String uri) {
+        _objBean = new ObjectBean(beanClass,this);
+        _uri = uri;
+    }
+
+    /**
+     * Creates a deep 'bean' clone of the object.
+     * <p>
+     * @return a clone of the object.
+     * @throws CloneNotSupportedException thrown if an element of the object cannot be cloned.
+     *
+     */
+    @Override
+    public Object clone() throws CloneNotSupportedException {
+        return _objBean.clone();
+    }
+
+    /**
+     * Indicates whether some other object is "equal to" this one as defined by the Object equals() method.
+     * <p>
+     * @param other he reference object with which to compare.
+     * @return <b>true</b> if 'this' object is equal to the 'other' object.
+     *
+     */
+    @Override
+    public boolean equals(Object other) {
+        if(!(other instanceof ModuleImpl)){
+            return false;
+        }
+        return _objBean.equals(other);
+    }
+
+    /**
+     * Returns a hashcode value for the object.
+     * <p>
+     * It follows the contract defined by the Object hashCode() method.
+     * <p>
+     * @return the hashcode of the bean object.
+     *
+     */
+    @Override
+    public int hashCode() {
+        return _objBean.hashCode();
+    }
+
+    /**
+     * Returns the String representation for the object.
+     * <p>
+     * @return String representation for the object.
+     *
+     */
+    @Override
+    public String toString() {
+        return _objBean.toString();
+    }
+
+    /**
+     * Returns the URI of the module.
+     * <p>
+     * @return URI of the module.
+     *
+     */
+    public String getUri() {
+        return _uri;
+    }
+
+}

http://git-wip-us.apache.org/repos/asf/marmotta/blob/00c22e7c/commons/marmotta-sesame-tools/marmotta-rio-rss/src/ext/java/com/sun/syndication/feed/module/SyModule.java
----------------------------------------------------------------------
diff --git a/commons/marmotta-sesame-tools/marmotta-rio-rss/src/ext/java/com/sun/syndication/feed/module/SyModule.java b/commons/marmotta-sesame-tools/marmotta-rio-rss/src/ext/java/com/sun/syndication/feed/module/SyModule.java
new file mode 100644
index 0000000..f241e91
--- /dev/null
+++ b/commons/marmotta-sesame-tools/marmotta-rio-rss/src/ext/java/com/sun/syndication/feed/module/SyModule.java
@@ -0,0 +1,90 @@
+/*
+ * Copyright 2004 Sun Microsystems, Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+package com.sun.syndication.feed.module;
+
+import java.util.Date;
+
+/**
+ * Syndication ModuleImpl.
+ * <p>
+ * @see <a href="http://web.resource.org/rss/1.0/modules/syndication/">Syndication module</a>.
+ * @author Alejandro Abdelnur
+ *
+ */
+public interface SyModule extends Module {
+
+    /**
+     * URI of the Syndication ModuleImpl (http://purl.org/rss/1.0/modules/syndication/).
+     *
+     */
+    static final String URI = "http://purl.org/rss/1.0/modules/syndication/";
+
+    static final String HOURLY  = "hourly";
+    static final String DAILY   = "daily";
+    static final String WEEKLY  = "weekly";
+    static final String MONTHLY = "monthly";
+    static final String YEARLY  = "yearly";
+
+    /**
+     * Returns the Syndication module update period.
+     * <p>
+     * @return the Syndication module update period, <b>null</b> if none.
+     *
+     */
+    String getUpdatePeriod();
+
+    /**
+     * Sets the Syndication module update period.
+     * <p>
+     * @param updatePeriod the Syndication module update period to set, <b>null</b> if none.
+     *
+     */
+    void setUpdatePeriod(String updatePeriod);
+
+    /**
+     * Returns the Syndication module update frequency.
+     * <p>
+     * @return the Syndication module update frequency, <b>null</b> if none.
+     *
+     */
+    int getUpdateFrequency();
+
+    /**
+     * Sets the Syndication module update frequency.
+     * <p>
+     * @param updateFrequency the Syndication module update frequency to set, <b>null</b> if none.
+     *
+     */
+    void setUpdateFrequency(int updateFrequency);
+
+    /**
+     * Returns the Syndication module update base date.
+     * <p>
+     * @return the Syndication module update base date, <b>null</b> if none.
+     *
+     */
+    Date getUpdateBase();
+
+    /**
+     * Sets the Syndication module update base date.
+     * <p>
+     * @param updateBase the Syndication module update base date to set, <b>null</b> if none.
+     *
+     */
+    void setUpdateBase(Date updateBase);
+
+}

http://git-wip-us.apache.org/repos/asf/marmotta/blob/00c22e7c/commons/marmotta-sesame-tools/marmotta-rio-rss/src/ext/java/com/sun/syndication/feed/module/SyModuleImpl.java
----------------------------------------------------------------------
diff --git a/commons/marmotta-sesame-tools/marmotta-rio-rss/src/ext/java/com/sun/syndication/feed/module/SyModuleImpl.java b/commons/marmotta-sesame-tools/marmotta-rio-rss/src/ext/java/com/sun/syndication/feed/module/SyModuleImpl.java
new file mode 100644
index 0000000..2bf8f2e
--- /dev/null
+++ b/commons/marmotta-sesame-tools/marmotta-rio-rss/src/ext/java/com/sun/syndication/feed/module/SyModuleImpl.java
@@ -0,0 +1,144 @@
+/*
+ * Copyright 2004 Sun Microsystems, Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+package com.sun.syndication.feed.module;
+
+import com.sun.syndication.feed.CopyFrom;
+import com.sun.syndication.feed.impl.CopyFromHelper;
+
+import java.util.*;
+
+/**
+ * Syndication ModuleImpl, default implementation.
+ * <p>
+ * @see <a href="http://web.resource.org/rss/1.0/modules/syndication/">Syndication module</a>.
+ * @author Alejandro Abdelnur
+ *
+ */
+public class SyModuleImpl extends ModuleImpl implements SyModule {
+    private static final Set<String> PERIODS = new HashSet<String>();
+
+    static {
+        PERIODS.add(HOURLY );
+        PERIODS.add(DAILY  );
+        PERIODS.add(WEEKLY );
+        PERIODS.add(MONTHLY);
+        PERIODS.add(YEARLY );
+    }
+
+
+    private String _updatePeriod;
+    private int _updateFrequency;
+    private Date _updateBase;
+
+    /**
+     * Default constructor. All properties are set to <b>null</b>.
+     * <p>
+     *
+     */
+    public SyModuleImpl() {
+        super(SyModule.class,URI);
+    }
+
+    /**
+     * Returns the Syndication module update period.
+     * <p>
+     * @return the Syndication module update period, <b>null</b> if none.
+     *
+     */
+    public String getUpdatePeriod() {
+        return _updatePeriod;
+    }
+
+    /**
+     * Sets the Syndication module update period.
+     * <p>
+     * @param updatePeriod the Syndication module update period to set, <b>null</b> if none.
+     *
+     */
+    public void setUpdatePeriod(String updatePeriod) {
+        if (!PERIODS.contains(updatePeriod)) {
+            throw new IllegalArgumentException("Invalid period ["+updatePeriod+"]");
+        }
+        _updatePeriod = updatePeriod;
+    }
+
+    /**
+     * Returns the Syndication module update frequency.
+     * <p>
+     * @return the Syndication module update frequency, <b>null</b> if none.
+     *
+     */
+    public int getUpdateFrequency() {
+        return _updateFrequency;
+    }
+
+    /**
+     * Sets the Syndication module update frequency.
+     * <p>
+     * @param updateFrequency the Syndication module update frequency to set, <b>null</b> if none.
+     *
+     */
+    public void setUpdateFrequency(int updateFrequency) {
+        _updateFrequency = updateFrequency;
+    }
+
+    /**
+     * Returns the Syndication module update base date.
+     * <p>
+     * @return the Syndication module update base date, <b>null</b> if none.
+     *
+     */
+    public Date getUpdateBase() {
+        if (_updateBase != null) {
+        return new Date(_updateBase.getTime());
+        } else return null;
+    }
+
+    /**
+     * Sets the Syndication module update base date.
+     * <p>
+     * @param updateBase the Syndication module update base date to set, <b>null</b> if none.
+     *
+     */
+    public void setUpdateBase(Date updateBase) {
+        if (updateBase != null) {
+        _updateBase = new Date(updateBase.getTime());
+        } else _updateBase = null;
+    }
+
+    public Class<? extends Module> getInterface() {
+        return SyModule.class;
+    }
+
+    public void copyFrom(CopyFrom obj) {
+        COPY_FROM_HELPER.copy(this,obj);
+    }
+
+    private static final CopyFromHelper COPY_FROM_HELPER;
+
+    static {
+        Map basePropInterfaceMap = new HashMap();
+        basePropInterfaceMap.put("updatePeriod",String.class);
+        basePropInterfaceMap.put("updateFrequency",Integer.TYPE);
+        basePropInterfaceMap.put("updateBase",Date.class);
+
+        Map basePropClassImplMap = Collections.EMPTY_MAP;
+
+        COPY_FROM_HELPER = new CopyFromHelper(SyModule.class,basePropInterfaceMap,basePropClassImplMap);
+    }
+
+}

http://git-wip-us.apache.org/repos/asf/marmotta/blob/00c22e7c/commons/marmotta-sesame-tools/marmotta-rio-rss/src/ext/java/com/sun/syndication/feed/module/impl/ModuleUtils.java
----------------------------------------------------------------------
diff --git a/commons/marmotta-sesame-tools/marmotta-rio-rss/src/ext/java/com/sun/syndication/feed/module/impl/ModuleUtils.java b/commons/marmotta-sesame-tools/marmotta-rio-rss/src/ext/java/com/sun/syndication/feed/module/impl/ModuleUtils.java
new file mode 100644
index 0000000..ca1738c
--- /dev/null
+++ b/commons/marmotta-sesame-tools/marmotta-rio-rss/src/ext/java/com/sun/syndication/feed/module/impl/ModuleUtils.java
@@ -0,0 +1,65 @@
+/*
+ * Copyright 2004 Sun Microsystems, Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+package com.sun.syndication.feed.module.impl;
+
+import com.sun.syndication.feed.module.Module;
+
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ */
+public class ModuleUtils {
+
+    public static List<Module> cloneModules(List<Module> modules) {
+        List<Module> cModules = null;
+        if (modules!=null) {
+            cModules = new ArrayList<Module>();
+            for (Module module : modules) {
+                try {
+                    Module c = (Module) module.clone();
+                    cModules.add(c);
+                }
+                catch (Exception ex) {
+                    throw new RuntimeException("Cloning modules "+module.getUri(),ex);
+                }
+            }
+        }
+        return cModules;
+    }
+
+    /**
+     * 
+     *
+     * @since 1.5 Changed to return the first, not the last.
+     * 
+     * @param modules
+     * @param uri
+     * @return
+     */
+    public static Module getModule(List<Module> modules,String uri) {
+        Module module = null;
+        for (int i=0;  modules!=null && i<modules.size();i++) {
+            module = modules.get(i);
+            if (module.getUri().equals(uri)) {
+                return module;
+            }
+        }
+        return null;
+    }
+
+}

http://git-wip-us.apache.org/repos/asf/marmotta/blob/00c22e7c/commons/marmotta-sesame-tools/marmotta-rio-rss/src/ext/java/com/sun/syndication/feed/rss/Category.java
----------------------------------------------------------------------
diff --git a/commons/marmotta-sesame-tools/marmotta-rio-rss/src/ext/java/com/sun/syndication/feed/rss/Category.java b/commons/marmotta-sesame-tools/marmotta-rio-rss/src/ext/java/com/sun/syndication/feed/rss/Category.java
new file mode 100644
index 0000000..a74da9a
--- /dev/null
+++ b/commons/marmotta-sesame-tools/marmotta-rio-rss/src/ext/java/com/sun/syndication/feed/rss/Category.java
@@ -0,0 +1,134 @@
+/*
+ * Copyright 2004 Sun Microsystems, Inc.
+ * Copyright 2011 The ROME Team
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+package com.sun.syndication.feed.rss;
+
+import com.sun.syndication.feed.impl.ObjectBean;
+
+import java.io.Serializable;
+
+/**
+ * Bean for categories of RSS feeds.
+ * <p>
+ * @author Alejandro Abdelnur
+ *
+ */
+public class Category implements Cloneable,Serializable {
+    private ObjectBean _objBean;
+    private String _domain;
+    private String _value;
+
+    /**
+     * Default constructor. All properties are set to <b>null</b>.
+     * <p>
+     *
+     */
+    public Category() {
+        _objBean = new ObjectBean(this.getClass(),this);
+    }
+
+    /**
+     * Creates a deep 'bean' clone of the object.
+     * <p>
+     * @return a clone of the object.
+     * @throws CloneNotSupportedException thrown if an element of the object cannot be cloned.
+     *
+     */
+    @Override
+    public Object clone() throws CloneNotSupportedException {
+        return _objBean.clone();
+    }
+
+    /**
+     * Indicates whether some other object is "equal to" this one as defined by the Object equals() method.
+     * <p>
+     * @param other he reference object with which to compare.
+     * @return <b>true</b> if 'this' object is equal to the 'other' object.
+     *
+     */
+    @Override
+    public boolean equals(Object other) {
+        if(!(other instanceof Category)){
+            return false;
+        }
+        return _objBean.equals(other);
+    }
+
+    /**
+     * Returns a hashcode value for the object.
+     * <p>
+     * It follows the contract defined by the Object hashCode() method.
+     * <p>
+     * @return the hashcode of the bean object.
+     *
+     */
+    public int hashCode() {
+        return _objBean.hashCode();
+    }
+
+    /**
+     * Returns the String representation for the object.
+     * <p>
+     * @return String representation for the object.
+     *
+     */
+    @Override
+    public String toString() {
+        return _objBean.toString();
+    }
+
+    /**
+     * Returns the category domain.
+     * <p>
+     * @return the category domain, <b>null</b> if none.
+     *
+     */
+    public String getDomain() {
+        return _domain;
+    }
+
+    /**
+     * Sets the category domain.
+     * <p>
+     * @param domain the category domain to set, <b>null</b> if none.
+     *
+     */
+    public void setDomain(String domain) {
+        _domain = domain;
+    }
+
+    /**
+     * Returns the category value.
+     * <p>
+     * @return the category value, <b>null</b> if none.
+     *
+     */
+    public String getValue() {
+        return _value;
+    }
+
+    /**
+     * Sets the category value.
+     * <p>
+     * @param value the category value to set, <b>null</b> if none.
+     *
+     */
+    public void setValue(String value) {
+        _value = value;
+    }
+
+}