You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by ch...@apache.org on 2005/09/09 09:25:01 UTC

svn commit: r279723 [3/7] - in /webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS: ./ Aggregator/ Aggregator/conf/ Aggregator/src/ Aggregator/src/org/ Aggregator/src/org/apache/ Aggregator/src/org/apache/axis2/ Aggregator/src/org/apache/axis2...

Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/ATOMFeedImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/ATOMFeedImpl.java?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/ATOMFeedImpl.java (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/ATOMFeedImpl.java Fri Sep  9 00:22:16 2005
@@ -0,0 +1,173 @@
+package org.apache.axis2.feed.feedmodel.atom.impl;
+
+/*
+* Copyright 2004,2005 The Apache Software Foundation.
+*
+* 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.
+*/
+
+import org.apache.axis2.feed.feedmodel.atom.*;
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+import java.util.ArrayList;
+import java.util.Iterator;
+
+
+public class ATOMFeedImpl implements org.apache.axis2.feed.feedmodel.atom.ATOMFeed {
+
+    private String versionAttr;
+    private ContentElement titleElement;
+    private DateElement modifiedElement;
+    private LinkElement linkElement;
+    private IDElement idElement = null;
+    private ATOMAuthorElement authorElement;
+    private ArrayList entryContainer = null;
+    private int count = 1;
+
+    public ATOMFeedImpl(String versionAttr, ContentElement titleElement, DateElement modifiedElement, LinkElement linkElement, ATOMAuthorElement authorElement) {
+        this.versionAttr = versionAttr;
+        this.titleElement = titleElement;
+        this.modifiedElement = modifiedElement;
+        this.linkElement = linkElement;
+        this.authorElement = authorElement;
+        entryContainer = new ArrayList();
+    }
+
+    public void serialize(XMLStreamWriter streamWriter) throws XMLStreamException {
+        streamWriter.writeStartDocument();
+        streamWriter.writeCharacters("\n");
+        streamWriter.writeStartElement(ATOMConstants.NAMWSPASE_PREFIX, ATOMConstants.FEED_ELEMENT_NAME, ATOMConstants.NAMESPASE_URL);
+        streamWriter.writeNamespace(ATOMConstants.NAMWSPASE_PREFIX, ATOMConstants.NAMESPASE_URL);
+        streamWriter.writeAttribute(ATOMConstants.FEED_VERSION_ATTR, versionAttr);
+
+        if (titleElement != null) {
+            titleElement.serialize(streamWriter);
+        }
+        if (linkElement != null) {
+            linkElement.serialize(streamWriter);
+        }
+        if (modifiedElement != null) {
+            modifiedElement.serialize(streamWriter);
+        }
+
+        if (authorElement != null) {
+            authorElement.serialize(streamWriter);
+
+        }
+        if (idElement != null) {
+            idElement.serialize(streamWriter);
+        }
+
+        Iterator enumeration = this.getEntries();
+        if (enumeration != null) {
+            while (enumeration.hasNext()) {
+
+                ((ATOMEntry) enumeration.next()).serialize(streamWriter);
+            }
+        }
+
+        streamWriter.writeEndElement();
+        streamWriter.writeEndDocument();
+    }
+
+    public void addEntry(ATOMEntry entryElement) {
+        if (entryElement != null) {
+            if (!entryContainer.contains(entryElement)) {
+                entryContainer.add(entryElement);
+            } else {
+                entryContainer.remove(entryElement);
+                entryContainer.add(entryElement);
+            }
+        }
+    }
+
+    public void remove(ATOMEntry atomEntry) {
+        if (atomEntry != null)
+            entryContainer.remove(atomEntry);
+    }
+
+    public Iterator getEntries() {
+        return entryContainer.iterator();
+    }
+
+    public ContentElement getTitleElement() {
+        return titleElement;
+    }
+
+    public void setTitleElement(ContentElement titleElement) {
+        this.titleElement = titleElement;
+    }
+
+    public DateElement getModifiedElement() {
+        return modifiedElement;
+    }
+
+    public void setModifiedElement(DateElement modifiedElement) {
+        this.modifiedElement = modifiedElement;
+    }
+
+    public LinkElement getLinkElement() {
+        return linkElement;
+    }
+
+    public void setLinkElement(LinkElement linkElement) {
+        this.linkElement = linkElement;
+    }
+
+    public IDElement getIdElement() {
+        return idElement;
+    }
+
+    public void setIdElement(IDElement idElement) {
+        this.idElement = idElement;
+    }
+
+    public ATOMAuthorElement getAuthorElement() {
+        return authorElement;
+    }
+
+    public void setAuthorElement(ATOMAuthorElement authorElement) {
+        this.authorElement = authorElement;
+    }
+
+    public String getVersionAttr() {
+        return versionAttr;
+    }
+
+    public void setVersionAttr(String versionAttr) {
+        this.versionAttr = versionAttr;
+    }
+
+    public boolean equals(Object o) {
+        if (this == o) return true;
+        if (!(o instanceof ATOMFeedImpl)) return false;
+
+        final ATOMFeedImpl atomFeed = (ATOMFeedImpl) o;
+
+        if (linkElement != null ? !linkElement.equals(atomFeed.linkElement) : atomFeed.linkElement != null) return false;
+        if (titleElement != null ? !titleElement.equals(atomFeed.titleElement) : atomFeed.titleElement != null) return false;
+        if (versionAttr != null ? !versionAttr.equals(atomFeed.versionAttr) : atomFeed.versionAttr != null) return false;
+
+        return true;
+    }
+
+    public int hashCode() {
+        int result;
+        result = (versionAttr != null ? versionAttr.hashCode() : 0);
+        result = 29 * result + (titleElement != null ? titleElement.hashCode() : 0);
+        result = 29 * result + (linkElement != null ? linkElement.hashCode() : 0);
+        return result;
+    }
+}
+

Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/ATOMID.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/ATOMID.java?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/ATOMID.java (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/ATOMID.java Fri Sep  9 00:22:16 2005
@@ -0,0 +1,35 @@
+package org.apache.axis2.feed.feedmodel.atom.impl;
+
+/*
+* Copyright 2004,2005 The Apache Software Foundation.
+*
+* 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.
+*/
+
+import org.apache.axis2.feed.feedmodel.atom.ATOMConstants;
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+
+
+public class ATOMID extends IDElementImpl {
+
+    public ATOMID(String id) {
+        super(id);
+    }
+
+    public void serialize(XMLStreamWriter streamWriter) throws XMLStreamException {
+        streamWriter.writeStartElement(ATOMConstants.NAMWSPASE_PREFIX, ATOMConstants.ID_ELEMENT_NAME, ATOMConstants.NAMESPASE_URL);
+        super.serialize(streamWriter);
+    }
+}

Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/ATOMIssuedElement.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/ATOMIssuedElement.java?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/ATOMIssuedElement.java (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/ATOMIssuedElement.java Fri Sep  9 00:22:16 2005
@@ -0,0 +1,36 @@
+package org.apache.axis2.feed.feedmodel.atom.impl;
+
+/*
+* Copyright 2004,2005 The Apache Software Foundation.
+*
+* 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.
+*/
+
+import org.apache.axis2.feed.feedmodel.atom.ATOMConstants;
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+import java.util.Date;
+
+public class ATOMIssuedElement extends DateElementImpl {
+
+    public ATOMIssuedElement(Date date) {
+        super(date);
+    }
+
+    public void serialize(XMLStreamWriter streamWriter) throws XMLStreamException {
+        streamWriter.writeStartElement(ATOMConstants.NAMWSPASE_PREFIX, ATOMConstants.ISSUED_DATE_ELEMET_NAME, ATOMConstants.NAMESPASE_URL);
+
+        super.serialize(streamWriter);
+    }
+}

Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/ATOMLinkElement.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/ATOMLinkElement.java?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/ATOMLinkElement.java (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/ATOMLinkElement.java Fri Sep  9 00:22:16 2005
@@ -0,0 +1,35 @@
+package org.apache.axis2.feed.feedmodel.atom.impl;
+
+/*
+* Copyright 2004,2005 The Apache Software Foundation.
+*
+* 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.
+*/
+
+import org.apache.axis2.feed.feedmodel.atom.ATOMConstants;
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+
+
+public class ATOMLinkElement extends LinkElementImpl {
+    public ATOMLinkElement(String relAttribute, String herfAttribute, String typeAttribute) {
+        super(relAttribute, herfAttribute, typeAttribute);
+    }
+
+    public void serialize(XMLStreamWriter streamWriter) throws XMLStreamException {
+        streamWriter.writeStartElement(ATOMConstants.NAMWSPASE_PREFIX, ATOMConstants.LINK_ELEMENT_NAME, ATOMConstants.NAMESPASE_URL);
+        super.serialize(streamWriter);
+
+    }
+}

Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/ATOMModifiedElement.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/ATOMModifiedElement.java?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/ATOMModifiedElement.java (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/ATOMModifiedElement.java Fri Sep  9 00:22:16 2005
@@ -0,0 +1,36 @@
+package org.apache.axis2.feed.feedmodel.atom.impl;
+
+/*
+* Copyright 2004,2005 The Apache Software Foundation.
+*
+* 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.
+*/
+
+import org.apache.axis2.feed.feedmodel.atom.ATOMConstants;
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+import java.util.Date;
+
+
+public class ATOMModifiedElement extends DateElementImpl {
+    public ATOMModifiedElement(Date date) {
+        super(date);
+    }
+
+    public void serialize(XMLStreamWriter streamWriter) throws XMLStreamException {
+        streamWriter.writeStartElement(ATOMConstants.NAMWSPASE_PREFIX, ATOMConstants.MODIFIED_DATE_ELEMET_NAME, ATOMConstants.NAMESPASE_URL);
+
+        super.serialize(streamWriter);
+    }
+}

Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/ATOMSummaryElement.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/ATOMSummaryElement.java?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/ATOMSummaryElement.java (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/ATOMSummaryElement.java Fri Sep  9 00:22:16 2005
@@ -0,0 +1,35 @@
+package org.apache.axis2.feed.feedmodel.atom.impl;
+
+/*
+* Copyright 2004,2005 The Apache Software Foundation.
+*
+* 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.
+*/
+
+import org.apache.axis2.feed.feedmodel.atom.ATOMConstants;
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+
+
+public class ATOMSummaryElement extends ContentElementImpl {
+    public ATOMSummaryElement(String content) {
+        super(content);
+    }
+
+
+    public void serialize(XMLStreamWriter streamWriter) throws XMLStreamException {
+        streamWriter.writeStartElement(ATOMConstants.NAMWSPASE_PREFIX, ATOMConstants.SUMMARY_ELEMENT_NAME, ATOMConstants.NAMESPASE_URL);
+        super.serialize(streamWriter);
+    }
+}

Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/ATOMTaglineElement.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/ATOMTaglineElement.java?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/ATOMTaglineElement.java (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/ATOMTaglineElement.java Fri Sep  9 00:22:16 2005
@@ -0,0 +1,35 @@
+package org.apache.axis2.feed.feedmodel.atom.impl;
+
+/*
+* Copyright 2004,2005 The Apache Software Foundation.
+*
+* 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.
+*/
+
+import org.apache.axis2.feed.feedmodel.atom.ATOMConstants;
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+
+
+public class ATOMTaglineElement extends ContentElementImpl {
+    public ATOMTaglineElement(String content) {
+        super(content);
+    }
+
+
+    public void serialize(XMLStreamWriter streamWriter) throws XMLStreamException {
+        streamWriter.writeStartElement(ATOMConstants.NAMWSPASE_PREFIX, ATOMConstants.TAGLINE_ELEMENT_NAME, ATOMConstants.NAMESPASE_URL);
+        super.serialize(streamWriter);
+    }
+}

Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/ATOMTitleElement.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/ATOMTitleElement.java?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/ATOMTitleElement.java (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/ATOMTitleElement.java Fri Sep  9 00:22:16 2005
@@ -0,0 +1,35 @@
+package org.apache.axis2.feed.feedmodel.atom.impl;
+
+/*
+* Copyright 2004,2005 The Apache Software Foundation.
+*
+* 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.
+*/
+
+import org.apache.axis2.feed.feedmodel.atom.ATOMConstants;
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+
+
+public class ATOMTitleElement extends ContentElementImpl {
+    public ATOMTitleElement(String content) {
+        super(content);
+    }
+
+
+    public void serialize(XMLStreamWriter streamWriter) throws XMLStreamException {
+        streamWriter.writeStartElement(ATOMConstants.NAMWSPASE_PREFIX, ATOMConstants.TITLE_ELEMENT_NAME, ATOMConstants.NAMESPASE_URL);
+        super.serialize(streamWriter);
+    }
+}

Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/ContentElementImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/ContentElementImpl.java?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/ContentElementImpl.java (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/ContentElementImpl.java Fri Sep  9 00:22:16 2005
@@ -0,0 +1,96 @@
+package org.apache.axis2.feed.feedmodel.atom.impl;
+
+/*
+* Copyright 2004,2005 The Apache Software Foundation.
+*
+* 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.
+*/
+
+import org.apache.axis2.feed.feedmodel.atom.ContentElement;
+import org.apache.axis2.feed.feedmodel.atom.ModeAttribute;
+import org.apache.axis2.feed.feedmodel.atom.TypeAttribute;
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+
+
+public abstract class ContentElementImpl implements ContentElement {
+
+    private TypeAttribute typeAttribute = null;
+    private ModeAttribute modeAttribute = null;
+    private String content;
+
+
+    protected ContentElementImpl(String content) {
+        this.content = content;
+    }
+
+
+    public void serialize(XMLStreamWriter streamWriter) throws XMLStreamException {
+        if (typeAttribute != null) {
+            typeAttribute.serialize(streamWriter);
+        }
+        if (modeAttribute != null) {
+            modeAttribute.serialize(streamWriter);
+        }
+        if (content != null)
+            streamWriter.writeCharacters(content);
+        streamWriter.writeEndElement();
+    }
+
+
+    public TypeAttribute getTypeAttribute() {
+        return typeAttribute;
+    }
+
+    public void setTypeAttribute(TypeAttribute typeAttribute) {
+        this.typeAttribute = typeAttribute;
+    }
+
+    public ModeAttribute getModeAttribute() {
+        return modeAttribute;
+    }
+
+    public void setModeAttribute(ModeAttribute modeAttribute) {
+        this.modeAttribute = modeAttribute;
+    }
+
+    public String getContent() {
+        return content;
+    }
+
+    public void setContent(String content) {
+        this.content = content;
+    }
+
+    public boolean equals(Object o) {
+        if (this == o) return true;
+        if (!(o instanceof ContentElementImpl)) return false;
+
+        final ContentElementImpl contentElement = (ContentElementImpl) o;
+
+        if (content != null ? !content.equals(contentElement.content) : contentElement.content != null) return false;
+        if (modeAttribute != null ? !modeAttribute.equals(contentElement.modeAttribute) : contentElement.modeAttribute != null) return false;
+        if (typeAttribute != null ? !typeAttribute.equals(contentElement.typeAttribute) : contentElement.typeAttribute != null) return false;
+
+        return true;
+    }
+
+    public int hashCode() {
+        int result;
+        result = (typeAttribute != null ? typeAttribute.hashCode() : 0);
+        result = 29 * result + (modeAttribute != null ? modeAttribute.hashCode() : 0);
+        result = 29 * result + (content != null ? content.hashCode() : 0);
+        return result;
+    }
+}

Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/DateElementImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/DateElementImpl.java?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/DateElementImpl.java (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/DateElementImpl.java Fri Sep  9 00:22:16 2005
@@ -0,0 +1,60 @@
+package org.apache.axis2.feed.feedmodel.atom.impl;
+
+/*
+* Copyright 2004,2005 The Apache Software Foundation.
+*
+* 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.
+*/
+
+import org.apache.axis2.feed.feedmodel.atom.DateElement;
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+import java.util.Date;
+
+public abstract class DateElementImpl implements DateElement {
+    private Date date;
+
+    public DateElementImpl(Date date) {
+        this.date = date;
+    }
+
+    public void serialize(XMLStreamWriter streamWriter) throws XMLStreamException {
+        if (date != null)
+            streamWriter.writeCharacters(date.toString());
+        streamWriter.writeEndElement();
+    }
+
+    public Date getDate() {
+        return date;
+    }
+
+    public void setDate(Date date) {
+        this.date = date;
+    }
+
+    public boolean equals(Object o) {
+        if (this == o) return true;
+        if (!(o instanceof DateElementImpl)) return false;
+
+        final DateElementImpl dateElement = (DateElementImpl) o;
+
+        if (date != null ? !date.equals(dateElement.date) : dateElement.date != null) return false;
+
+        return true;
+    }
+
+    public int hashCode() {
+        return (date != null ? date.hashCode() : 0);
+    }
+}

Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/IDElementImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/IDElementImpl.java?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/IDElementImpl.java (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/IDElementImpl.java Fri Sep  9 00:22:16 2005
@@ -0,0 +1,61 @@
+package org.apache.axis2.feed.feedmodel.atom.impl;
+
+/*
+* Copyright 2004,2005 The Apache Software Foundation.
+*
+* 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.
+*/
+
+import org.apache.axis2.feed.feedmodel.atom.IDElement;
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+
+public abstract class IDElementImpl implements IDElement {
+    private String id;
+
+    public IDElementImpl(String id) {
+        this.id = id;
+    }
+
+    public void serialize(XMLStreamWriter streamWriter) throws XMLStreamException {
+        if (id != null) {
+            streamWriter.writeCharacters(id);
+        }
+        streamWriter.writeEndElement();
+
+    }
+
+    public String getId() {
+        return id;
+    }
+
+    public void setId(String id) {
+        this.id = id;
+    }
+
+    public boolean equals(Object o) {
+        if (this == o) return true;
+        if (!(o instanceof IDElementImpl)) return false;
+
+        final IDElementImpl idElement = (IDElementImpl) o;
+
+        if (id != null ? !id.equals(idElement.id) : idElement.id != null) return false;
+
+        return true;
+    }
+
+    public int hashCode() {
+        return (id != null ? id.hashCode() : 0);
+    }
+}

Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/LinkElementImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/LinkElementImpl.java?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/LinkElementImpl.java (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/LinkElementImpl.java Fri Sep  9 00:22:16 2005
@@ -0,0 +1,109 @@
+package org.apache.axis2.feed.feedmodel.atom.impl;
+
+/*
+* Copyright 2004,2005 The Apache Software Foundation.
+*
+* 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.
+*/
+
+import org.apache.axis2.feed.feedmodel.atom.ATOMConstants;
+import org.apache.axis2.feed.feedmodel.atom.LinkElement;
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+
+public abstract class LinkElementImpl implements LinkElement {
+    private String relAttribute;
+    private String typeAttribute;
+    private String titleAttribute = null;
+    private String herfAttribute;
+
+    public LinkElementImpl(String relAttribute, String herfAttribute, String typeAttribute) {
+        this.relAttribute = relAttribute;
+        this.herfAttribute = herfAttribute;
+        this.typeAttribute = typeAttribute;
+    }
+
+    public void serialize(XMLStreamWriter streamWriter) throws XMLStreamException {
+        if (relAttribute != null) {
+            streamWriter.writeAttribute(ATOMConstants.NAMWSPASE_PREFIX, ATOMConstants.LINK_REL_ATTR, relAttribute);
+
+        }
+        if (typeAttribute != null) {
+            streamWriter.writeAttribute(ATOMConstants.NAMWSPASE_PREFIX, ATOMConstants.LINK_TYPE_ATTR, typeAttribute);
+
+        }
+        if (herfAttribute != null) {
+            streamWriter.writeAttribute(ATOMConstants.NAMWSPASE_PREFIX, ATOMConstants.LINK_HERF_ATTR, herfAttribute);
+
+        }
+        if (titleAttribute != null) {
+            streamWriter.writeAttribute(ATOMConstants.NAMWSPASE_PREFIX, ATOMConstants.LINK_TITLE_ATTR, titleAttribute);
+
+        }
+        streamWriter.writeEndElement();
+    }
+
+    public String getRelAttribute() {
+        return relAttribute;
+    }
+
+    public void setRelAttribute(String relAttribute) {
+        this.relAttribute = relAttribute;
+    }
+
+    public String getTypeAttribute() {
+        return typeAttribute;
+    }
+
+    public void setTypeAttribute(String typeAttribute) {
+        this.typeAttribute = typeAttribute;
+    }
+
+    public String getTitleAttribute() {
+        return titleAttribute;
+    }
+
+    public void setTitleAttribute(String titleAttribute) {
+        this.titleAttribute = titleAttribute;
+    }
+
+    public String getHerfAttribute() {
+        return herfAttribute;
+    }
+
+    public void setHerfAttribute(String herfAttribute) {
+        this.herfAttribute = herfAttribute;
+    }
+
+    public boolean equals(Object o) {
+        if (this == o) return true;
+        if (!(o instanceof LinkElementImpl)) return false;
+
+        final LinkElementImpl linkElement = (LinkElementImpl) o;
+
+        if (herfAttribute != null ? !herfAttribute.equals(linkElement.herfAttribute) : linkElement.herfAttribute != null) return false;
+        if (relAttribute != null ? !relAttribute.equals(linkElement.relAttribute) : linkElement.relAttribute != null) return false;
+        if (typeAttribute != null ? !typeAttribute.equals(linkElement.typeAttribute) : linkElement.typeAttribute != null) return false;
+
+        return true;
+    }
+
+    public int hashCode() {
+        int result;
+        result = (relAttribute != null ? relAttribute.hashCode() : 0);
+        result = 29 * result + (typeAttribute != null ? typeAttribute.hashCode() : 0);
+        result = 29 * result + (herfAttribute != null ? herfAttribute.hashCode() : 0);
+        return result;
+    }
+}

Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/ModeAttributeImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/ModeAttributeImpl.java?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/ModeAttributeImpl.java (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/ModeAttributeImpl.java Fri Sep  9 00:22:16 2005
@@ -0,0 +1,50 @@
+package org.apache.axis2.feed.feedmodel.atom.impl;
+
+/*
+* Copyright 2004,2005 The Apache Software Foundation.
+*
+* 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.
+*/
+
+import org.apache.axis2.feed.feedmodel.atom.ATOMConstants;
+import org.apache.axis2.feed.feedmodel.atom.ModeAttribute;
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+
+public class ModeAttributeImpl implements ModeAttribute {
+
+    private String mode = ATOMConstants.XML_MODE_ARRTIBUTE;
+
+    public ModeAttributeImpl(String mode) {
+        this.mode = mode;
+    }
+
+    public void serialize(XMLStreamWriter streamWriter) throws XMLStreamException {
+        if (mode != null) {
+            streamWriter.writeAttribute(ATOMConstants.NAMWSPASE_PREFIX, ATOMConstants.MODE_ARRTIBUTE, mode);
+
+        }
+    }
+
+    public String getMode() {
+        return mode;
+    }
+
+    public void setMode(String mode) {
+        if (mode != null)
+            if (mode.matches(ATOMConstants.BASE64_MODE_ARRTIBUTE) || mode.matches(ATOMConstants.ESCAPED_MODE_ARRTIBUTE) || mode.matches(ATOMConstants.XML_MODE_ARRTIBUTE)) {
+                this.mode = mode;
+            }
+    }
+}

Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/PersonalElementImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/PersonalElementImpl.java?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/PersonalElementImpl.java (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/PersonalElementImpl.java Fri Sep  9 00:22:16 2005
@@ -0,0 +1,94 @@
+package org.apache.axis2.feed.feedmodel.atom.impl;
+
+/*
+* Copyright 2004,2005 The Apache Software Foundation.
+*
+* 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.
+*/
+
+import org.apache.axis2.feed.feedmodel.atom.PersonalElement;
+import org.apache.axis2.feed.feedmodel.atom.PersonalEmailElement;
+import org.apache.axis2.feed.feedmodel.atom.PersonalNameElement;
+import org.apache.axis2.feed.feedmodel.atom.PersonalURLElement;
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+
+public abstract class PersonalElementImpl implements PersonalElement {
+
+    private PersonalNameElement name = null;
+    private PersonalURLElement URL = null;
+    private PersonalEmailElement email = null;
+
+    public PersonalElementImpl(PersonalNameElement name) {
+        this.name = name;
+    }
+
+
+    public void serialize(XMLStreamWriter streamWriter) throws XMLStreamException {
+        if (name != null) {
+            name.serialize(streamWriter);
+        }
+        if (email != null) {
+            email.serialize(streamWriter);
+        }
+        if (URL != null) {
+            URL.serialize(streamWriter);
+        }
+    }
+
+    public PersonalNameElement getName() {
+        return name;
+    }
+
+    public void setName(PersonalNameElement name) {
+        this.name = name;
+    }
+
+    public PersonalURLElement getURL() {
+        return URL;
+    }
+
+    public void setURL(PersonalURLElement URL) {
+        this.URL = URL;
+    }
+
+    public PersonalEmailElement getEmail() {
+        return email;
+    }
+
+    public void setEmail(PersonalEmailElement email) {
+        this.email = email;
+    }
+
+    public boolean equals(Object o) {
+        if (this == o) return true;
+        if (!(o instanceof PersonalElementImpl)) return false;
+
+        final PersonalElementImpl personalElement = (PersonalElementImpl) o;
+
+        if (URL != null ? !URL.equals(personalElement.URL) : personalElement.URL != null) return false;
+        if (email != null ? !email.equals(personalElement.email) : personalElement.email != null) return false;
+        if (name != null ? !name.equals(personalElement.name) : personalElement.name != null) return false;
+
+        return true;
+    }
+
+    public int hashCode() {
+        int result;
+        result = (name != null ? name.hashCode() : 0);
+        result = 29 * result + (URL != null ? URL.hashCode() : 0);
+        result = 29 * result + (email != null ? email.hashCode() : 0);
+        return result;
+    }
+}

Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/PersonalEmailElementImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/PersonalEmailElementImpl.java?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/PersonalEmailElementImpl.java (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/PersonalEmailElementImpl.java Fri Sep  9 00:22:16 2005
@@ -0,0 +1,46 @@
+package org.apache.axis2.feed.feedmodel.atom.impl;
+
+/*
+* Copyright 2004,2005 The Apache Software Foundation.
+*
+* 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.
+*/
+
+import org.apache.axis2.feed.feedmodel.atom.ATOMConstants;
+import org.apache.axis2.feed.feedmodel.atom.PersonalEmailElement;
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+
+public class PersonalEmailElementImpl implements PersonalEmailElement {
+    private String email;
+
+    public PersonalEmailElementImpl(String email) {
+        this.email = email;
+    }
+
+    public void serialize(XMLStreamWriter streamWriter) throws XMLStreamException {
+        streamWriter.writeStartElement(ATOMConstants.NAMWSPASE_PREFIX, ATOMConstants.PERSONAL_EMAIL_ELEMENT_NAME, ATOMConstants.NAMESPASE_URL);
+        if (email != null)
+            streamWriter.writeCharacters(email);
+        streamWriter.writeEndElement();
+    }
+
+    public String getEmail() {
+        return email;
+    }
+
+    public void setEmail(String email) {
+        this.email = email;
+    }
+}

Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/PersonalNameElementImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/PersonalNameElementImpl.java?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/PersonalNameElementImpl.java (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/PersonalNameElementImpl.java Fri Sep  9 00:22:16 2005
@@ -0,0 +1,64 @@
+package org.apache.axis2.feed.feedmodel.atom.impl;
+
+/*
+* Copyright 2004,2005 The Apache Software Foundation.
+*
+* 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.
+*/
+
+import org.apache.axis2.feed.feedmodel.atom.ATOMConstants;
+import org.apache.axis2.feed.feedmodel.atom.PersonalNameElement;
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+
+
+public class PersonalNameElementImpl implements PersonalNameElement {
+    private String name;
+
+    public PersonalNameElementImpl(String name) {
+        this.name = name;
+    }
+
+    public void serialize(XMLStreamWriter streamWriter) throws XMLStreamException {
+        streamWriter.writeStartElement(ATOMConstants.NAMWSPASE_PREFIX, ATOMConstants.PERSONAL_NAME_ELEMENT_NAME, ATOMConstants.NAMESPASE_URL);
+        if (name != null) {
+            streamWriter.writeCharacters(name);
+
+        }
+        streamWriter.writeEndElement();
+    }
+
+    public String getName() {
+        return name;
+    }
+
+    public void setName(String name) {
+        this.name = name;
+    }
+
+    public boolean equals(Object o) {
+        if (this == o) return true;
+        if (!(o instanceof PersonalNameElementImpl)) return false;
+
+        final PersonalNameElementImpl personalNameElement = (PersonalNameElementImpl) o;
+
+        if (name != null ? !name.equals(personalNameElement.name) : personalNameElement.name != null) return false;
+
+        return true;
+    }
+
+    public int hashCode() {
+        return (name != null ? name.hashCode() : 0);
+    }
+}

Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/PersonalURLElementImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/PersonalURLElementImpl.java?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/PersonalURLElementImpl.java (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/PersonalURLElementImpl.java Fri Sep  9 00:22:16 2005
@@ -0,0 +1,47 @@
+package org.apache.axis2.feed.feedmodel.atom.impl;
+
+/*
+* Copyright 2004,2005 The Apache Software Foundation.
+*
+* 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.
+*/
+
+import org.apache.axis2.feed.feedmodel.atom.ATOMConstants;
+import org.apache.axis2.feed.feedmodel.atom.PersonalURLElement;
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+import java.net.URL;
+
+public class PersonalURLElementImpl implements PersonalURLElement {
+    private URL url;
+
+    public PersonalURLElementImpl(URL url) {
+        this.url = url;
+    }
+
+    public void serialize(XMLStreamWriter streamWriter) throws XMLStreamException {
+        streamWriter.writeStartElement(ATOMConstants.NAMWSPASE_PREFIX, ATOMConstants.PERSONAL_URL_ELEMENT_NAME, ATOMConstants.NAMESPASE_URL);
+        if (url != null)
+            streamWriter.writeCharacters(url.toString());
+        streamWriter.writeEndElement();
+    }
+
+    public URL getUrl() {
+        return url;
+    }
+
+    public void setUrl(URL url) {
+        this.url = url;
+    }
+}

Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/TypeAttributeImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/TypeAttributeImpl.java?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/TypeAttributeImpl.java (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/atom/impl/TypeAttributeImpl.java Fri Sep  9 00:22:16 2005
@@ -0,0 +1,47 @@
+package org.apache.axis2.feed.feedmodel.atom.impl;
+
+/*
+* Copyright 2004,2005 The Apache Software Foundation.
+*
+* 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.
+*/
+
+import org.apache.axis2.feed.feedmodel.atom.ATOMConstants;
+import org.apache.axis2.feed.feedmodel.atom.TypeAttribute;
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+
+
+public class TypeAttributeImpl implements TypeAttribute {
+    private String mediaType = "text/plain";
+
+    public TypeAttributeImpl(String mediaType) {
+        this.mediaType = mediaType;
+    }
+
+    public void serialize(XMLStreamWriter streamWriter) throws XMLStreamException {
+        if (mediaType != null) {
+            streamWriter.writeAttribute(ATOMConstants.NAMWSPASE_PREFIX, ATOMConstants.TYPE_ARRTIBUTE, mediaType);
+
+        }
+    }
+
+    public String getMediaType() {
+        return mediaType;
+    }
+
+    public void setMediaType(String mediaType) {
+        this.mediaType = mediaType;
+    }
+}

Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/eprlist/builder/EPRListBuilder.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/eprlist/builder/EPRListBuilder.java?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/eprlist/builder/EPRListBuilder.java (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/eprlist/builder/EPRListBuilder.java Fri Sep  9 00:22:16 2005
@@ -0,0 +1,108 @@
+package org.apache.axis2.feed.feedmodel.eprlist.builder;
+
+/*
+* Copyright 2004,2005 The Apache Software Foundation.
+*
+* 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.
+*/
+
+import org.apache.axis2.feed.aggregrator.description.EPRDescription;
+
+import javax.xml.stream.XMLStreamConstants;
+import javax.xml.stream.XMLStreamReader;
+import java.net.URL;
+import java.util.ArrayList;
+
+
+public class EPRListBuilder {
+
+    private static String FEED_URL_ELMENT = "url";
+    public static String FEED_URL_HERF_ATTR = "href";
+
+    private boolean done = false;
+    private String currentElementName = null;
+
+    private ArrayList eprList;
+    private XMLStreamReader parser;
+
+
+    public EPRListBuilder(XMLStreamReader parser) {
+        this.parser = parser;
+        eprList = new ArrayList();
+    }
+
+    public int next() throws Exception {
+        try {
+            if (done) {
+                throw new Exception();
+            }
+            int token = parser.next();
+
+            switch (token) {
+                case XMLStreamConstants.START_ELEMENT:
+
+                    createFeed();
+                    break;
+                case XMLStreamConstants.CHARACTERS:
+
+                    break;
+                case XMLStreamConstants.END_ELEMENT:
+                    processEndEvent();
+                    break;
+                case XMLStreamConstants.END_DOCUMENT:
+                    done = true;
+                    break;
+                case XMLStreamConstants.SPACE:
+                    next();
+                    break;
+                default :
+                    throw new Exception();
+            }
+            return token;
+        } catch (Exception e) {
+            throw new Exception(e);
+        }
+    }
+
+    public ArrayList getFeedList() throws Exception {
+        while (!done) {
+            next();
+        }
+        return eprList;
+    }
+
+    private void processEndEvent() {
+
+        currentElementName = parser.getLocalName();
+
+    }
+
+
+    private void createFeed() throws Exception {
+        currentElementName = parser.getLocalName();
+        if (currentElementName.equalsIgnoreCase(FEED_URL_ELMENT)) {
+
+            for (int i = 0; i < parser.getAttributeCount(); i++) {
+                if (parser.getAttributeLocalName(i).equalsIgnoreCase(FEED_URL_HERF_ATTR)) {
+                    EPRDescription eprDescription = new EPRDescription(new URL(parser.getAttributeValue(i)));
+                    eprList.add(eprDescription);
+
+                }
+            }
+
+        }
+
+    }
+
+
+}

Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/eprlist/serialize/Serializer.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/eprlist/serialize/Serializer.java?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/eprlist/serialize/Serializer.java (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/eprlist/serialize/Serializer.java Fri Sep  9 00:22:16 2005
@@ -0,0 +1,55 @@
+package org.apache.axis2.feed.feedmodel.eprlist.serialize;
+
+/*
+* Copyright 2004,2005 The Apache Software Foundation.
+*
+* 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.
+*/
+
+import org.apache.axis2.feed.aggregrator.description.EPRDescription;
+import org.apache.axis2.feed.aggregrator.util.EndPointList;
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+import java.util.Iterator;
+
+
+public class Serializer {
+
+    private static String EPR_LIST_ELMENT = "EPRlist";
+    private static String EPR_URL_ELMENT = "url";
+    public static String EPR_URL_HERF_ATTR = "href";
+
+    private EndPointList endPointList;
+
+    public Serializer(EndPointList endPointList) {
+        this.endPointList = endPointList;
+    }
+
+    public void serialize(XMLStreamWriter streamWriter) throws XMLStreamException {
+        streamWriter.writeStartDocument();
+        streamWriter.writeCharacters("\n");
+        streamWriter.writeStartElement(EPR_LIST_ELMENT);
+        if (endPointList.iterator() != null) {
+            Iterator iterator = endPointList.iterator();
+            while (iterator.hasNext()) {
+                EPRDescription description = (EPRDescription) iterator.next();
+                streamWriter.writeStartElement(EPR_URL_ELMENT);
+                streamWriter.writeAttribute(EPR_URL_HERF_ATTR, description.getUrl().toString());
+                streamWriter.writeEndElement();
+            }
+        }
+        streamWriter.writeEndElement();
+    }
+
+}

Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/feedlist/builder/FeedListBuilder.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/feedlist/builder/FeedListBuilder.java?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/feedlist/builder/FeedListBuilder.java (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/feedlist/builder/FeedListBuilder.java Fri Sep  9 00:22:16 2005
@@ -0,0 +1,110 @@
+package org.apache.axis2.feed.feedmodel.feedlist.builder;
+
+/*
+* Copyright 2004,2005 The Apache Software Foundation.
+*
+* 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.
+*/
+
+import org.apache.axis2.feed.aggregrator.description.FeedDescription;
+
+import javax.xml.stream.XMLStreamConstants;
+import javax.xml.stream.XMLStreamReader;
+import java.net.MalformedURLException;
+import java.net.URL;
+import java.util.ArrayList;
+
+
+public class FeedListBuilder {
+
+    private static String FEED_LIST_ELMENT = "feedlist";
+    private static String FEED_URL_ELMENT = "url";
+    public static String FEED_URL_HERF_ATTR = "href";
+
+    private boolean done = false;
+    private String currentElementName = null;
+
+    private ArrayList feedList;
+    private XMLStreamReader parser;
+
+
+    public FeedListBuilder(XMLStreamReader parser) {
+        this.parser = parser;
+        feedList = new ArrayList();
+    }
+
+    public int next() throws Exception {
+        try {
+            if (done) {
+                throw new Exception();
+            }
+            int token = parser.next();
+
+            switch (token) {
+                case XMLStreamConstants.START_ELEMENT:
+
+                    createFeed();
+                    break;
+                case XMLStreamConstants.CHARACTERS:
+
+                    break;
+                case XMLStreamConstants.END_ELEMENT:
+                    processEndEvent();
+                    break;
+                case XMLStreamConstants.END_DOCUMENT:
+                    done = true;
+                    break;
+                case XMLStreamConstants.SPACE:
+                    next();
+                    break;
+                default :
+                    throw new Exception();
+            }
+            return token;
+        } catch (Exception e) {
+            throw new Exception(e);
+        }
+    }
+
+    public ArrayList getFeedList() throws Exception {
+        while (!done) {
+            next();
+        }
+        return feedList;
+    }
+
+    private void processEndEvent() {
+
+        currentElementName = parser.getLocalName();
+
+    }
+
+
+    private void createFeed() throws MalformedURLException {
+        currentElementName = parser.getLocalName();
+        if (currentElementName.equalsIgnoreCase(FEED_URL_ELMENT)) {
+
+            for (int i = 0; i < parser.getAttributeCount(); i++) {
+                if (parser.getAttributeLocalName(i).equalsIgnoreCase(FEED_URL_HERF_ATTR)) {
+                    FeedDescription feedDescription = new FeedDescription(new URL(parser.getAttributeValue(i)));
+                    feedList.add(feedDescription);
+
+                }
+            }
+
+        }
+
+    }
+
+
+}

Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/feedlist/serialize/Serializer.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/feedlist/serialize/Serializer.java?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/feedlist/serialize/Serializer.java (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/feedlist/serialize/Serializer.java Fri Sep  9 00:22:16 2005
@@ -0,0 +1,54 @@
+package org.apache.axis2.feed.feedmodel.feedlist.serialize;
+
+/*
+* Copyright 2004,2005 The Apache Software Foundation.
+*
+* 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.
+*/
+
+import org.apache.axis2.feed.aggregrator.description.FeedDescription;
+import org.apache.axis2.feed.aggregrator.util.FeedList;
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+import java.util.Iterator;
+
+
+public class Serializer {
+    private static String FEED_LIST_ELMENT = "feedlist";
+    private static String FEED_URL_ELMENT = "url";
+    public static String FEED_URL_HERF_ATTR = "href";
+
+    private FeedList feedList;
+
+    public Serializer(FeedList feedList) {
+        this.feedList = feedList;
+    }
+
+    public void serialize(XMLStreamWriter streamWriter) throws XMLStreamException {
+        streamWriter.writeStartDocument();
+        streamWriter.writeCharacters("\n");
+        streamWriter.writeStartElement(FEED_LIST_ELMENT);
+        if (feedList.iterator() != null) {
+            Iterator iterator = feedList.iterator();
+            while (iterator.hasNext()) {
+                FeedDescription description = (FeedDescription) iterator.next();
+                streamWriter.writeStartElement(FEED_URL_ELMENT);
+                streamWriter.writeAttribute(FEED_URL_HERF_ATTR, description.getFeedURL().toString());
+                streamWriter.writeEndElement();
+            }
+        }
+        streamWriter.writeEndElement();
+    }
+
+}

Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/CategoryElement.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/CategoryElement.java?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/CategoryElement.java (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/CategoryElement.java Fri Sep  9 00:22:16 2005
@@ -0,0 +1,36 @@
+package org.apache.axis2.feed.feedmodel.rss;
+
+/*
+* Copyright 2004,2005 The Apache Software Foundation.
+*
+* 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.
+*/
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+
+
+public interface CategoryElement {
+
+    public abstract void serialize(XMLStreamWriter streamWriter) throws XMLStreamException;
+
+    public String getCategoryName();
+
+    public void setCategoryName(String categoryName);
+
+    public String getDomain();
+
+    public void setDomain(String domain);
+
+
+}

Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/Channel.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/Channel.java?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/Channel.java (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/Channel.java Fri Sep  9 00:22:16 2005
@@ -0,0 +1,96 @@
+package org.apache.axis2.feed.feedmodel.rss;
+
+/*
+* Copyright 2004,2005 The Apache Software Foundation.
+*
+* 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.
+*/
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+import java.net.URL;
+import java.util.Iterator;
+
+
+public interface Channel {
+
+    public void addItem(Item item);
+
+    public void remove(Item item);
+
+    public void addImageElement(ImageElement imageElement);
+
+    public void addCloudElement(CloudElement cloudElement);
+
+    public void addPudDate(PubDate pubDate);
+
+    public void addLastBuildDate(LastBuildDate lastBuildDate);
+
+    public String getTitle();
+
+    public void setTitle(String title);
+
+    public URL getLink();
+
+    public void setLink(URL link);
+
+    public String getDescription();
+
+    public CategoryElement getCategoryElement();
+
+    public void addCategoryElement(CategoryElement categoryElement);
+
+    public Iterator getItems();
+
+
+    public void setDescription(String description);
+
+
+    public TtlElement getTtlElement();
+
+    public void setTtlElement(TtlElement ttlElement);
+
+    public ManagingEditorElement getManagingEditorElement();
+
+    public void setManagingEditorElement(ManagingEditorElement managingEditorElement);
+
+    public GeneratorElement getGeneratorElement();
+
+    public CloudElement getCloudElement();
+
+    public PubDate getPubDate();
+
+    public LastBuildDate getLastBuildDate();
+
+    public void setGeneratorElement(GeneratorElement generatorElement);
+
+    public WebMasterElement getWebMasterElement();
+
+    public void setWebMasterElement(WebMasterElement webMasterElement);
+
+    public DocsElement getDocsElement();
+
+    public void setDocsElement(DocsElement docsElement);
+
+    public LanguageElement getLanguageElement();
+
+    public void setLanguageElement(LanguageElement languageElement);
+
+    public CopyrightElement getCopyrightElement();
+
+    public void setCopyrightElement(CopyrightElement copyrightElement);
+
+    public abstract void serialize(XMLStreamWriter streamWriter) throws XMLStreamException;
+
+    public boolean isAllreadeyHasPubDate();
+}

Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/CloudElement.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/CloudElement.java?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/CloudElement.java (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/CloudElement.java Fri Sep  9 00:22:16 2005
@@ -0,0 +1,48 @@
+package org.apache.axis2.feed.feedmodel.rss;
+
+/*
+* Copyright 2004,2005 The Apache Software Foundation.
+*
+* 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.
+*/
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+
+
+public interface CloudElement {
+
+    public abstract void serialize(XMLStreamWriter streamWriter) throws XMLStreamException;
+
+    public String getDomain();
+
+    public void setDomain(String domain);
+
+    public int getPort();
+
+    public void setPort(int port);
+
+    public String getPath();
+
+    public void setPath(String path);
+
+    public String getRegisterProcedure();
+
+    public void setRegisterProcedure(String registerProcedure);
+
+    public String getProtocol();
+
+    public void setProtocol(String protocol);
+
+
+}

Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/Constants.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/Constants.java?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/Constants.java (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/Constants.java Fri Sep  9 00:22:16 2005
@@ -0,0 +1,71 @@
+package org.apache.axis2.feed.feedmodel.rss;
+
+
+/*
+* Copyright 2004,2005 The Apache Software Foundation.
+*
+* 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.
+*/
+
+public interface Constants {
+
+    public static String SOURCE_NAME = "source";
+    public static String PUB_DATE_NAME = "pubDate";
+    public static String LAST_BUILD_DATE_NAME = "lastBuildDate";
+
+    public static String RSS_NAMESPACE_URI = "";
+    public static String RSS_PREFIX = "";
+    public static String RSS_NAME = "rss";
+    public static String RSS_VERSION_ATTR = "version";
+
+    public static String CHANNEL_NAME = "channel";
+    public static String CHANNEL_TITLE_STRING = "title";
+    public static String CHANNEL_LINK_STRING = "link";
+    public static String CHANNEL_DESCRIPTON_STRING = "description";
+
+    public static String ITEM_NAME = "item";
+    public static String ITEM_TITLE_STRING = "title";
+    public static String ITEM_LINK_STRING = "link";
+    public static String ITEM_DESCRIPTON_STRING = "description";
+
+    public static String CLOUD_NAME = "cloud";
+    public static String CLOUD_DOMAIN_ATTR = "domain";
+    public static String CLOUD_REGPRO_ATTR = "registerProcedure";
+    public static String CLOUD_PORT_ATTR = "port";
+    public static String CLOUD_PATH_ATTR = "path";
+    public static String CLOUD_PROTOCOL_ATTR = "protocol";
+
+    public static String GUID_ID_STRING = "guid";
+    public static String GUID_ISPERMERLINK_ATTR = "isPermaLink";
+
+    public static String CATEGORY_STRING = "category";
+    public static String CATEGORY_DOMAIN_ATTR = "domain";
+
+    public static String IMAGE_NAME = "image";
+    public static String IMAGE_URL_STRING = "url";
+    public static String IMAGE_LINK_STRING = "link";
+    public static String IMAGE__DESCRIPTION_STRING = "description";
+    public static String IMAGE_TITLE_STRING = "title";
+    public static String IMAGE_HEIGHT_STRING = "height";
+    public static String IMAGE_WIDTH_STRING = "width";
+
+    public static String COPYRIGHT_ELEMNT_NAME = "copyright";
+    public static String WEBMASTER_ELEMNT_NAME = "webMaster";
+    public static String MANAGINGEDITOR_ELEMNT_NAME = "managingEditor";
+    public static String LANGUAGE_ELEMNT_NAME = "language";
+    public static String GENERATOR_ELEMT_NAME = "generator";
+    public static String DOCS_ELEMENT_NAME = "docs";
+    public static String TTL_ELEMENT_NAME = "ttl";
+
+
+}

Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/CopyrightElement.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/CopyrightElement.java?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/CopyrightElement.java (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/CopyrightElement.java Fri Sep  9 00:22:16 2005
@@ -0,0 +1,29 @@
+package org.apache.axis2.feed.feedmodel.rss;
+
+/*
+* Copyright 2004,2005 The Apache Software Foundation.
+*
+* 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.
+*/
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+
+
+public interface CopyrightElement {
+    public abstract void serialize(XMLStreamWriter streamWriter) throws XMLStreamException;
+
+    public String getCopyright();
+
+    public void setCopyright(String copyright);
+}

Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/DocsElement.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/DocsElement.java?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/DocsElement.java (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/DocsElement.java Fri Sep  9 00:22:16 2005
@@ -0,0 +1,30 @@
+package org.apache.axis2.feed.feedmodel.rss;
+
+/*
+* Copyright 2004,2005 The Apache Software Foundation.
+*
+* 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.
+*/
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+import java.net.URL;
+
+
+public interface DocsElement {
+    public abstract void serialize(XMLStreamWriter streamWriter) throws XMLStreamException;
+
+    public URL getDocsURL();
+
+    public void setDocsURL(URL docsURL);
+}

Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/EnclosureElement.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/EnclosureElement.java?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/EnclosureElement.java (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/EnclosureElement.java Fri Sep  9 00:22:16 2005
@@ -0,0 +1,41 @@
+package org.apache.axis2.feed.feedmodel.rss;
+
+/*
+* Copyright 2004,2005 The Apache Software Foundation.
+*
+* 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.
+*/
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+import java.net.URL;
+
+
+public interface EnclosureElement {
+
+    public abstract void serialize(XMLStreamWriter streamWriter) throws XMLStreamException;
+
+    public URL getUrl();
+
+    public void setUrl(URL url);
+
+    public int getLenght();
+
+    public void setLenght(int lenght);
+
+    public String getMIMEType();
+
+    public void setMIMEType(String MIMEType);
+
+
+}

Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/GeneratorElement.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/GeneratorElement.java?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/GeneratorElement.java (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/GeneratorElement.java Fri Sep  9 00:22:16 2005
@@ -0,0 +1,29 @@
+package org.apache.axis2.feed.feedmodel.rss;
+
+/*
+* Copyright 2004,2005 The Apache Software Foundation.
+*
+* 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.
+*/
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+
+
+public interface GeneratorElement {
+    public abstract void serialize(XMLStreamWriter streamWriter) throws XMLStreamException;
+
+    public String getGenerator();
+
+    public void setGenerator(String generator);
+}

Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/GuidElement.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/GuidElement.java?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/GuidElement.java (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/GuidElement.java Fri Sep  9 00:22:16 2005
@@ -0,0 +1,36 @@
+package org.apache.axis2.feed.feedmodel.rss;
+
+/*
+* Copyright 2004,2005 The Apache Software Foundation.
+*
+* 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.
+*/
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+
+
+public interface GuidElement {
+
+    public abstract void serialize(XMLStreamWriter streamWriter) throws XMLStreamException;
+
+    public String getGuid();
+
+    public void setGuid(String guid);
+
+    public boolean isPermaLink();
+
+    public void setPermaLink(boolean permaLink);
+
+
+}

Added: webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/ImageElement.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/ImageElement.java?rev=279723&view=auto
==============================================================================
--- webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/ImageElement.java (added)
+++ webservices/axis2/trunk/archive/java/scratch/Google_SoC/RSS/Aggregator/src/org/apache/axis2/feed/feedmodel/rss/ImageElement.java Fri Sep  9 00:22:16 2005
@@ -0,0 +1,53 @@
+package org.apache.axis2.feed.feedmodel.rss;
+
+/*
+* Copyright 2004,2005 The Apache Software Foundation.
+*
+* 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.
+*/
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+import java.net.URL;
+
+
+public interface ImageElement {
+
+    public abstract void serialize(XMLStreamWriter streamWriter) throws XMLStreamException;
+
+    public URL getUrl();
+
+    public void setUrl(URL url);
+
+    public URL getLink();
+
+    public void setLink(URL link);
+
+    public String getTitle();
+
+    public void setTitle(String title);
+
+    public String getDescription();
+
+    public void setDescription(String description);
+
+
+    public Integer getHeight();
+
+    public void setHeight(Integer height);
+
+    public Integer getWidth();
+
+    public void setWidth(Integer width);
+
+}