axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chinth...@apache.org
Subject svn commit: r226929 [2/4] - in /webservices/axis/trunk/archive/java/scratch/Google_SoC: ./ FeedGenerator/ FeedGenerator/src/ FeedGenerator/src/org/ FeedGenerator/src/org/apache/ FeedGenerator/src/org/apache/axis/ FeedGenerator/src/org/apache/axis/feed/...
Date Tue, 02 Aug 2005 02:46:39 GMT
Added: webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/ATOMEntryElement.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/ATOMEntryElement.java?rev=226929&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/ATOMEntryElement.java (added)
+++ webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/ATOMEntryElement.java Mon Aug  1 19:43:54 2005
@@ -0,0 +1,141 @@
+package org.apache.axis.feed.feedmodel.atom.impl;
+
+import org.apache.axis.feed.feedmodel.atom.*;
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: INDIKA
+ * Date: Jul 19, 2005
+ * Time: 10:04:19 AM
+ * To change this template use File | Settings | File Templates.
+ */
+public class ATOMEntryElement implements ATOMEntry {
+
+    private ContentElement titleElement;
+    private DateElement modifiedElement;
+    private LinkElement linkElement;
+    private DateElement issuedElement;
+
+    private ContentElement atomSummaryElement = null;
+    private ContentElement atomContentElement = null;
+
+    private IDElement ATOMId = null;
+
+    public ATOMEntryElement(ContentElement titleElement, DateElement modifiedElement, LinkElement linkElement, DateElement issuedElement) {
+        this.titleElement = titleElement;
+        this.modifiedElement = modifiedElement;
+        this.linkElement = linkElement;
+        this.issuedElement = issuedElement;
+    }
+
+    public void serialize(XMLStreamWriter streamWriter) throws XMLStreamException {
+        streamWriter.writeStartElement(ATOMConstants.NAMWSPASE_PREFIX, ATOMConstants.ENTRY_ELEMENT_NAME, ATOMConstants.NAMESPASE_URL);
+
+        if (titleElement != null) {
+            titleElement.serialize(streamWriter);
+        }
+        if (linkElement != null) {
+            linkElement.serialize(streamWriter);
+        }
+        if (modifiedElement != null) {
+            modifiedElement.serialize(streamWriter);
+        }
+        if (issuedElement != null) {
+            issuedElement.serialize(streamWriter);
+        }
+        if (atomContentElement != null) {
+            atomContentElement.serialize(streamWriter);
+        }
+        if (atomSummaryElement != null) {
+            atomSummaryElement.serialize(streamWriter);
+        }
+        if (ATOMId != null) {
+            ATOMId.serialize(streamWriter);
+        }
+        streamWriter.writeEndElement();
+
+    }
+
+    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 DateElement getIssuedElement() {
+        return issuedElement;
+    }
+
+    public void setIssuedElement(DateElement issuedElement) {
+        this.issuedElement = issuedElement;
+    }
+
+    public ContentElement getAtomSummaryElement() {
+        return atomSummaryElement;
+    }
+
+    public void setAtomSummaryElement(ContentElement atomSummaryElement) {
+        this.atomSummaryElement = atomSummaryElement;
+    }
+
+    public ContentElement getAtomContentElement() {
+        return atomContentElement;
+    }
+
+    public void setAtomContentElement(ContentElement atomContentElement) {
+        this.atomContentElement = atomContentElement;
+    }
+
+    public IDElement getATOMId() {
+        return ATOMId;
+    }
+
+    public void setATOMId(IDElement ATOMId) {
+        this.ATOMId = ATOMId;
+    }
+
+
+    public boolean equals(Object o) {
+        if (this == o) return true;
+        if (!(o instanceof ATOMEntryElement)) return false;
+
+        final ATOMEntryElement atomEntryElement = (ATOMEntryElement) o;
+
+        if (atomContentElement != null ? !atomContentElement.equals(atomEntryElement.atomContentElement) : atomEntryElement.atomContentElement != null) return false;
+        if (atomSummaryElement != null ? !atomSummaryElement.equals(atomEntryElement.atomSummaryElement) : atomEntryElement.atomSummaryElement != null) return false;
+        if (linkElement != null ? !linkElement.equals(atomEntryElement.linkElement) : atomEntryElement.linkElement != null) return false;
+        if (titleElement != null ? !titleElement.equals(atomEntryElement.titleElement) : atomEntryElement.titleElement != null) return false;
+
+        return true;
+    }
+
+    public int hashCode() {
+        int result;
+        result = (titleElement != null ? titleElement.hashCode() : 0);
+        result = 29 * result + (linkElement != null ? linkElement.hashCode() : 0);
+        result = 29 * result + (atomSummaryElement != null ? atomSummaryElement.hashCode() : 0);
+        result = 29 * result + (atomContentElement != null ? atomContentElement.hashCode() : 0);
+        return result;
+    }
+}

Added: webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/ATOMFeedImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/ATOMFeedImpl.java?rev=226929&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/ATOMFeedImpl.java (added)
+++ webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/ATOMFeedImpl.java Mon Aug  1 19:43:54 2005
@@ -0,0 +1,139 @@
+package org.apache.axis.feed.feedmodel.atom.impl;
+
+import org.apache.axis.feed.feedmodel.atom.*;
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+import java.util.ArrayList;
+import java.util.Iterator;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: INDIKA
+ * Date: Jul 19, 2005
+ * Time: 11:40:18 AM
+ * To change this template use File | Settings | File Templates.
+ */
+public class ATOMFeedImpl implements org.apache.axis.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.FEED_ELEMENT_NAME);
+        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);
+            }
+        }
+    }
+
+    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;
+    }
+}
+

Added: webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/ATOMID.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/ATOMID.java?rev=226929&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/ATOMID.java (added)
+++ webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/ATOMID.java Mon Aug  1 19:43:54 2005
@@ -0,0 +1,25 @@
+package org.apache.axis.feed.feedmodel.atom.impl;
+
+import org.apache.axis.feed.feedmodel.atom.ATOMConstants;
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: INDIKA
+ * Date: Jul 19, 2005
+ * Time: 11:06:21 AM
+ * To change this template use File | Settings | File Templates.
+ */
+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/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/ATOMIssuedElement.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/ATOMIssuedElement.java?rev=226929&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/ATOMIssuedElement.java (added)
+++ webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/ATOMIssuedElement.java Mon Aug  1 19:43:54 2005
@@ -0,0 +1,27 @@
+package org.apache.axis.feed.feedmodel.atom.impl;
+
+import org.apache.axis.feed.feedmodel.atom.ATOMConstants;
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+import java.util.Date;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: INDIKA
+ * Date: Jul 19, 2005
+ * Time: 10:08:31 AM
+ * To change this template use File | Settings | File Templates.
+ */
+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/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/ATOMLinkElement.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/ATOMLinkElement.java?rev=226929&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/ATOMLinkElement.java (added)
+++ webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/ATOMLinkElement.java Mon Aug  1 19:43:54 2005
@@ -0,0 +1,26 @@
+package org.apache.axis.feed.feedmodel.atom.impl;
+
+import org.apache.axis.feed.feedmodel.atom.ATOMConstants;
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: INDIKA
+ * Date: Jul 19, 2005
+ * Time: 9:57:53 AM
+ * To change this template use File | Settings | File Templates.
+ */
+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/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/ATOMModifiedElement.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/ATOMModifiedElement.java?rev=226929&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/ATOMModifiedElement.java (added)
+++ webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/ATOMModifiedElement.java Mon Aug  1 19:43:54 2005
@@ -0,0 +1,26 @@
+package org.apache.axis.feed.feedmodel.atom.impl;
+
+import org.apache.axis.feed.feedmodel.atom.ATOMConstants;
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+import java.util.Date;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: INDIKA
+ * Date: Jul 19, 2005
+ * Time: 10:03:42 AM
+ * To change this template use File | Settings | File Templates.
+ */
+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/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/ATOMSummaryElement.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/ATOMSummaryElement.java?rev=226929&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/ATOMSummaryElement.java (added)
+++ webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/ATOMSummaryElement.java Mon Aug  1 19:43:54 2005
@@ -0,0 +1,26 @@
+package org.apache.axis.feed.feedmodel.atom.impl;
+
+import org.apache.axis.feed.feedmodel.atom.ATOMConstants;
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: INDIKA
+ * Date: Jul 19, 2005
+ * Time: 10:09:03 AM
+ * To change this template use File | Settings | File Templates.
+ */
+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/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/ATOMTaglineElement.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/ATOMTaglineElement.java?rev=226929&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/ATOMTaglineElement.java (added)
+++ webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/ATOMTaglineElement.java Mon Aug  1 19:43:54 2005
@@ -0,0 +1,26 @@
+package org.apache.axis.feed.feedmodel.atom.impl;
+
+import org.apache.axis.feed.feedmodel.atom.ATOMConstants;
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: INDIKA
+ * Date: Jul 19, 2005
+ * Time: 10:01:44 AM
+ * To change this template use File | Settings | File Templates.
+ */
+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/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/ATOMTitleElement.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/ATOMTitleElement.java?rev=226929&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/ATOMTitleElement.java (added)
+++ webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/ATOMTitleElement.java Mon Aug  1 19:43:54 2005
@@ -0,0 +1,26 @@
+package org.apache.axis.feed.feedmodel.atom.impl;
+
+import org.apache.axis.feed.feedmodel.atom.ATOMConstants;
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: INDIKA
+ * Date: Jul 19, 2005
+ * Time: 9:56:47 AM
+ * To change this template use File | Settings | File Templates.
+ */
+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/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/ContentElementImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/ContentElementImpl.java?rev=226929&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/ContentElementImpl.java (added)
+++ webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/ContentElementImpl.java Mon Aug  1 19:43:54 2005
@@ -0,0 +1,86 @@
+package org.apache.axis.feed.feedmodel.atom.impl;
+
+import org.apache.axis.feed.feedmodel.atom.ContentElement;
+import org.apache.axis.feed.feedmodel.atom.ModeAttribute;
+import org.apache.axis.feed.feedmodel.atom.TypeAttribute;
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: INDIKA
+ * Date: Jul 19, 2005
+ * Time: 10:29:13 AM
+ * To change this template use File | Settings | File Templates.
+ */
+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/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/DateElementImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/DateElementImpl.java?rev=226929&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/DateElementImpl.java (added)
+++ webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/DateElementImpl.java Mon Aug  1 19:43:54 2005
@@ -0,0 +1,51 @@
+package org.apache.axis.feed.feedmodel.atom.impl;
+
+import org.apache.axis.feed.feedmodel.atom.DateElement;
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+import java.util.Date;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: INDIKA
+ * Date: Jul 19, 2005
+ * Time: 10:25:59 AM
+ * To change this template use File | Settings | File Templates.
+ */
+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/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/IDElementImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/IDElementImpl.java?rev=226929&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/IDElementImpl.java (added)
+++ webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/IDElementImpl.java Mon Aug  1 19:43:54 2005
@@ -0,0 +1,52 @@
+package org.apache.axis.feed.feedmodel.atom.impl;
+
+import org.apache.axis.feed.feedmodel.atom.IDElement;
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: INDIKA
+ * Date: Jul 19, 2005
+ * Time: 11:05:32 AM
+ * To change this template use File | Settings | File Templates.
+ */
+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/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/LinkElementImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/LinkElementImpl.java?rev=226929&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/LinkElementImpl.java (added)
+++ webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/LinkElementImpl.java Mon Aug  1 19:43:54 2005
@@ -0,0 +1,100 @@
+package org.apache.axis.feed.feedmodel.atom.impl;
+
+import org.apache.axis.feed.feedmodel.atom.ATOMConstants;
+import org.apache.axis.feed.feedmodel.atom.LinkElement;
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: INDIKA
+ * Date: Jul 19, 2005
+ * Time: 10:47:50 AM
+ * To change this template use File | Settings | File Templates.
+ */
+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/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/ModeAttributeImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/ModeAttributeImpl.java?rev=226929&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/ModeAttributeImpl.java (added)
+++ webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/ModeAttributeImpl.java Mon Aug  1 19:43:54 2005
@@ -0,0 +1,41 @@
+package org.apache.axis.feed.feedmodel.atom.impl;
+
+import org.apache.axis.feed.feedmodel.atom.ATOMConstants;
+import org.apache.axis.feed.feedmodel.atom.ModeAttribute;
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: INDIKA
+ * Date: Jul 19, 2005
+ * Time: 10:26:47 AM
+ * To change this template use File | Settings | File Templates.
+ */
+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/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/PersonalElementImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/PersonalElementImpl.java?rev=226929&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/PersonalElementImpl.java (added)
+++ webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/PersonalElementImpl.java Mon Aug  1 19:43:54 2005
@@ -0,0 +1,85 @@
+package org.apache.axis.feed.feedmodel.atom.impl;
+
+import org.apache.axis.feed.feedmodel.atom.PersonalElement;
+import org.apache.axis.feed.feedmodel.atom.PersonalEmailElement;
+import org.apache.axis.feed.feedmodel.atom.PersonalNameElement;
+import org.apache.axis.feed.feedmodel.atom.PersonalURLElement;
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: INDIKA
+ * Date: Jul 19, 2005
+ * Time: 10:28:21 AM
+ * To change this template use File | Settings | File Templates.
+ */
+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/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/PersonalEmailElementImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/PersonalEmailElementImpl.java?rev=226929&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/PersonalEmailElementImpl.java (added)
+++ webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/PersonalEmailElementImpl.java Mon Aug  1 19:43:54 2005
@@ -0,0 +1,37 @@
+package org.apache.axis.feed.feedmodel.atom.impl;
+
+import org.apache.axis.feed.feedmodel.atom.ATOMConstants;
+import org.apache.axis.feed.feedmodel.atom.PersonalEmailElement;
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: INDIKA
+ * Date: Jul 19, 2005
+ * Time: 10:27:42 AM
+ * To change this template use File | Settings | File Templates.
+ */
+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/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/PersonalNameElementImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/PersonalNameElementImpl.java?rev=226929&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/PersonalNameElementImpl.java (added)
+++ webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/PersonalNameElementImpl.java Mon Aug  1 19:43:54 2005
@@ -0,0 +1,54 @@
+package org.apache.axis.feed.feedmodel.atom.impl;
+
+import org.apache.axis.feed.feedmodel.atom.ATOMConstants;
+import org.apache.axis.feed.feedmodel.atom.PersonalNameElement;
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: INDIKA
+ * Date: Jul 19, 2005
+ * Time: 10:27:27 AM
+ * To change this template use File | Settings | File Templates.
+ */
+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/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/PersonalURLElementImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/PersonalURLElementImpl.java?rev=226929&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/PersonalURLElementImpl.java (added)
+++ webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/PersonalURLElementImpl.java Mon Aug  1 19:43:54 2005
@@ -0,0 +1,38 @@
+package org.apache.axis.feed.feedmodel.atom.impl;
+
+import org.apache.axis.feed.feedmodel.atom.ATOMConstants;
+import org.apache.axis.feed.feedmodel.atom.PersonalURLElement;
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+import java.net.URL;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: INDIKA
+ * Date: Jul 19, 2005
+ * Time: 10:27:13 AM
+ * To change this template use File | Settings | File Templates.
+ */
+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/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/TypeAttributeImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/TypeAttributeImpl.java?rev=226929&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/TypeAttributeImpl.java (added)
+++ webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/atom/impl/TypeAttributeImpl.java Mon Aug  1 19:43:54 2005
@@ -0,0 +1,37 @@
+package org.apache.axis.feed.feedmodel.atom.impl;
+
+import org.apache.axis.feed.feedmodel.atom.ATOMConstants;
+import org.apache.axis.feed.feedmodel.atom.TypeAttribute;
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: INDIKA
+ * Date: Jul 19, 2005
+ * Time: 10:27:01 AM
+ * To change this template use File | Settings | File Templates.
+ */
+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/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/CategoryElement.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/CategoryElement.java?rev=226929&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/CategoryElement.java (added)
+++ webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/CategoryElement.java Mon Aug  1 19:43:54 2005
@@ -0,0 +1,26 @@
+package org.apache.axis.feed.feedmodel.rss;
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: INDIKA
+ * Date: Jul 5, 2005
+ * Time: 10:19:39 AM
+ * To change this template use File | Settings | File Templates.
+ */
+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/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/Channel.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/Channel.java?rev=226929&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/Channel.java (added)
+++ webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/Channel.java Mon Aug  1 19:43:54 2005
@@ -0,0 +1,85 @@
+package org.apache.axis.feed.feedmodel.rss;
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+import java.net.URL;
+import java.util.Iterator;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: INDIKA
+ * Date: Jul 5, 2005
+ * Time: 10:19:50 AM
+ * To change this template use File | Settings | File Templates.
+ */
+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;
+
+}

Added: webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/CloudElement.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/CloudElement.java?rev=226929&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/CloudElement.java (added)
+++ webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/CloudElement.java Mon Aug  1 19:43:54 2005
@@ -0,0 +1,38 @@
+package org.apache.axis.feed.feedmodel.rss;
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: INDIKA
+ * Date: Jul 5, 2005
+ * Time: 10:20:02 AM
+ * To change this template use File | Settings | File Templates.
+ */
+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/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/Constants.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/Constants.java?rev=226929&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/Constants.java (added)
+++ webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/Constants.java Mon Aug  1 19:43:54 2005
@@ -0,0 +1,62 @@
+package org.apache.axis.feed.feedmodel.rss;
+
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: INDIKA
+ * Date: Jul 6, 2005
+ * Time: 12:10:09 PM
+ * To change this template use File | Settings | File Templates.
+ */
+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/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/CopyrightElement.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/CopyrightElement.java?rev=226929&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/CopyrightElement.java (added)
+++ webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/CopyrightElement.java Mon Aug  1 19:43:54 2005
@@ -0,0 +1,19 @@
+package org.apache.axis.feed.feedmodel.rss;
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: INDIKA
+ * Date: Jul 22, 2005
+ * Time: 10:31:15 AM
+ * To change this template use File | Settings | File Templates.
+ */
+public interface CopyrightElement {
+    public abstract void serialize(XMLStreamWriter streamWriter) throws XMLStreamException;
+
+    public String getCopyright();
+
+    public void setCopyright(String copyright);
+}

Added: webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/DocsElement.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/DocsElement.java?rev=226929&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/DocsElement.java (added)
+++ webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/DocsElement.java Mon Aug  1 19:43:54 2005
@@ -0,0 +1,20 @@
+package org.apache.axis.feed.feedmodel.rss;
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+import java.net.URL;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: INDIKA
+ * Date: Jul 22, 2005
+ * Time: 10:29:26 AM
+ * To change this template use File | Settings | File Templates.
+ */
+public interface DocsElement {
+    public abstract void serialize(XMLStreamWriter streamWriter) throws XMLStreamException;
+
+    public URL getDocsURL();
+
+    public void setDocsURL(URL docsURL);
+}

Added: webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/EnclosureElement.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/EnclosureElement.java?rev=226929&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/EnclosureElement.java (added)
+++ webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/EnclosureElement.java Mon Aug  1 19:43:54 2005
@@ -0,0 +1,31 @@
+package org.apache.axis.feed.feedmodel.rss;
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+import java.net.URL;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: INDIKA
+ * Date: Jul 5, 2005
+ * Time: 10:20:12 AM
+ * To change this template use File | Settings | File Templates.
+ */
+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/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/GeneratorElement.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/GeneratorElement.java?rev=226929&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/GeneratorElement.java (added)
+++ webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/GeneratorElement.java Mon Aug  1 19:43:54 2005
@@ -0,0 +1,19 @@
+package org.apache.axis.feed.feedmodel.rss;
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: INDIKA
+ * Date: Jul 22, 2005
+ * Time: 10:30:51 AM
+ * To change this template use File | Settings | File Templates.
+ */
+public interface GeneratorElement {
+    public abstract void serialize(XMLStreamWriter streamWriter) throws XMLStreamException;
+
+    public String getGenerator();
+
+    public void setGenerator(String generator);
+}

Added: webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/GuidElement.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/GuidElement.java?rev=226929&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/GuidElement.java (added)
+++ webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/GuidElement.java Mon Aug  1 19:43:54 2005
@@ -0,0 +1,26 @@
+package org.apache.axis.feed.feedmodel.rss;
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: INDIKA
+ * Date: Jul 5, 2005
+ * Time: 10:20:30 AM
+ * To change this template use File | Settings | File Templates.
+ */
+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/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/ImageElement.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/ImageElement.java?rev=226929&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/ImageElement.java (added)
+++ webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/ImageElement.java Mon Aug  1 19:43:54 2005
@@ -0,0 +1,43 @@
+package org.apache.axis.feed.feedmodel.rss;
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+import java.net.URL;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: INDIKA
+ * Date: Jul 5, 2005
+ * Time: 10:20:44 AM
+ * To change this template use File | Settings | File Templates.
+ */
+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);
+
+}

Added: webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/Item.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/Item.java?rev=226929&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/Item.java (added)
+++ webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/Item.java Mon Aug  1 19:43:54 2005
@@ -0,0 +1,51 @@
+package org.apache.axis.feed.feedmodel.rss;
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+import java.net.URL;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: INDIKA
+ * Date: Jul 5, 2005
+ * Time: 10:20:55 AM
+ * To change this template use File | Settings | File Templates.
+ */
+public interface Item {
+
+    public abstract void serialize(XMLStreamWriter streamWriter) throws XMLStreamException;
+
+    public void addSourceElement(SourceElement sourceElement);
+
+    public void addEnclosureElement(EnclosureElement enclosureElement);
+
+    public void addGuidElement(GuidElement guidElement);
+
+    public void addPubDate(PubDate pubDate);
+
+    public void addCategoryElement(CategoryElement categoryElement);
+
+    public String getTitle();
+
+    public void setTitle(String title);
+
+    public URL getLink();
+
+    public void setLink(URL link);
+
+    public String getDescription();
+
+    public void setDescription(String description);
+
+    public EnclosureElement getEnclosureElement();
+
+    public GuidElement getGuidElement();
+
+    public PubDate getPubDate();
+
+    public SourceElement getSourceElement();
+
+    public CategoryElement getCategoryElement();
+
+
+}

Added: webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/LanguageElement.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/LanguageElement.java?rev=226929&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/LanguageElement.java (added)
+++ webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/LanguageElement.java Mon Aug  1 19:43:54 2005
@@ -0,0 +1,20 @@
+package org.apache.axis.feed.feedmodel.rss;
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: INDIKA
+ * Date: Jul 22, 2005
+ * Time: 10:31:52 AM
+ * To change this template use File | Settings | File Templates.
+ */
+public interface LanguageElement {
+    public abstract void serialize(XMLStreamWriter streamWriter) throws XMLStreamException;
+
+    public String getLanguage();
+
+    public void setLanguage(String language);
+
+}

Added: webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/LastBuildDate.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/LastBuildDate.java?rev=226929&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/LastBuildDate.java (added)
+++ webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/LastBuildDate.java Mon Aug  1 19:43:54 2005
@@ -0,0 +1,23 @@
+package org.apache.axis.feed.feedmodel.rss;
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+import java.util.Date;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: INDIKA
+ * Date: Jul 5, 2005
+ * Time: 10:23:12 AM
+ * To change this template use File | Settings | File Templates.
+ */
+public interface LastBuildDate {
+
+    public abstract void serialize(XMLStreamWriter streamWriter) throws XMLStreamException;
+
+    public Date getLastBuildDate();
+
+    public void setLastBuildDate(Date lastBuildDate);
+
+
+}

Added: webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/ManagingEditorElement.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/ManagingEditorElement.java?rev=226929&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/ManagingEditorElement.java (added)
+++ webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/ManagingEditorElement.java Mon Aug  1 19:43:54 2005
@@ -0,0 +1,19 @@
+package org.apache.axis.feed.feedmodel.rss;
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: INDIKA
+ * Date: Jul 22, 2005
+ * Time: 10:30:25 AM
+ * To change this template use File | Settings | File Templates.
+ */
+public interface ManagingEditorElement {
+    public abstract void serialize(XMLStreamWriter streamWriter) throws XMLStreamException;
+
+    public String getManagingEditor();
+
+    public void setManagingEditor(String managingEditor);
+}

Added: webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/PubDate.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/PubDate.java?rev=226929&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/PubDate.java (added)
+++ webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/PubDate.java Mon Aug  1 19:43:54 2005
@@ -0,0 +1,23 @@
+package org.apache.axis.feed.feedmodel.rss;
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+import java.util.Date;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: INDIKA
+ * Date: Jul 5, 2005
+ * Time: 10:22:57 AM
+ * To change this template use File | Settings | File Templates.
+ */
+public interface PubDate {
+
+    public abstract void serialize(XMLStreamWriter streamWriter) throws XMLStreamException;
+
+    public Date getPubDate();
+
+    public void setPubDate(Date pubDate);
+
+
+}

Added: webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/SourceElement.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/SourceElement.java?rev=226929&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/SourceElement.java (added)
+++ webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/SourceElement.java Mon Aug  1 19:43:54 2005
@@ -0,0 +1,26 @@
+package org.apache.axis.feed.feedmodel.rss;
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: INDIKA
+ * Date: Jul 5, 2005
+ * Time: 10:21:06 AM
+ * To change this template use File | Settings | File Templates.
+ */
+public interface SourceElement {
+
+    public abstract void serialize(XMLStreamWriter streamWriter) throws XMLStreamException;
+
+    public String getSourcename();
+
+    public void setSourcename(String sourcename);
+
+    public String getLinkOfSource();
+
+    public void setLinkOfSource(String linkOfSource);
+
+
+}

Added: webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/TextInputElement.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/TextInputElement.java?rev=226929&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/TextInputElement.java (added)
+++ webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/TextInputElement.java Mon Aug  1 19:43:54 2005
@@ -0,0 +1,18 @@
+package org.apache.axis.feed.feedmodel.rss;
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: INDIKA
+ * Date: Jul 5, 2005
+ * Time: 11:33:03 AM
+ * To change this template use File | Settings | File Templates.
+ */
+public interface TextInputElement {
+
+    public abstract void serialize(XMLStreamWriter streamWriter) throws XMLStreamException;
+
+
+}

Added: webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/TtlElement.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/TtlElement.java?rev=226929&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/TtlElement.java (added)
+++ webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/TtlElement.java Mon Aug  1 19:43:54 2005
@@ -0,0 +1,19 @@
+package org.apache.axis.feed.feedmodel.rss;
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: INDIKA
+ * Date: Jul 22, 2005
+ * Time: 10:33:03 AM
+ * To change this template use File | Settings | File Templates.
+ */
+public interface TtlElement {
+    public abstract void serialize(XMLStreamWriter streamWriter) throws XMLStreamException;
+
+    public int getTtl();
+
+    public void setTtl(int ttl);
+}

Added: webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/WebMasterElement.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/WebMasterElement.java?rev=226929&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/WebMasterElement.java (added)
+++ webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/WebMasterElement.java Mon Aug  1 19:43:54 2005
@@ -0,0 +1,20 @@
+package org.apache.axis.feed.feedmodel.rss;
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: INDIKA
+ * Date: Jul 22, 2005
+ * Time: 10:30:03 AM
+ * To change this template use File | Settings | File Templates.
+ */
+public interface WebMasterElement {
+    public abstract void serialize(XMLStreamWriter streamWriter) throws XMLStreamException;
+
+    public String getWebMaster();
+
+    public void setWebMaster(String webMaster);
+
+}

Added: webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/factory/RSSFactory.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/factory/RSSFactory.java?rev=226929&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/factory/RSSFactory.java (added)
+++ webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/factory/RSSFactory.java Mon Aug  1 19:43:54 2005
@@ -0,0 +1,64 @@
+package org.apache.axis.feed.feedmodel.rss.factory;
+
+import org.apache.axis.feed.feedmodel.FeedFactory;
+import org.apache.axis.feed.feedmodel.rss.*;
+
+import java.net.URL;
+import java.util.Date;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: INDIKA
+ * Date: Jul 5, 2005
+ * Time: 9:24:45 AM
+ * To change this template use File | Settings | File Templates.
+ */
+public interface RSSFactory extends FeedFactory {
+
+    public Channel createChannel(String title, URL link, String description);
+
+    public Item createItem();
+
+    public Item createItem(String title, URL link, String description);
+
+    // link of source = links to the XMLization of the source
+    public SourceElement createSourceElement(String sourcename, String linkOfSource);
+
+    public SourceElement createSourceElement(String sourcename);
+
+    /*
+    */
+    public GuidElement createGuidElement(String guid);
+
+    public GuidElement createGuidElement(String guid, boolean isPermaLink);
+
+    public ImageElement createImageElement(URL URlofImage, String title, URL linkOfSite);
+
+    public EnclosureElement createEnclosureElement(URL url, int lenght, String MIMEType);
+
+    public CategoryElement createCategoryElement(String categoryName);
+
+    public CategoryElement createCategoryElement(String categoryName, String domain);
+
+    public CloudElement createCloudElement(int port, String path, String registerProcedure, String protocol, String domain);
+
+    public LastBuildDate createLastBuildDate(Date lastBuilddate);
+
+    public PubDate createPubDate(Date pubDate);
+
+    public WebMasterElement createWebMaserElement(String webmaster);
+
+    public DocsElement createDocsElement(URL docsURl);
+
+    public ManagingEditorElement createManagingEditorElement(String managingEditorEmail);
+
+    public CopyrightElement createCopyrightElement(String copyRight);
+
+    public TtlElement createTtlElement(int ttl);
+
+    public GeneratorElement createGeneratorElement(String generator);
+
+    public LanguageElement createLanguageElement(String langauge);
+
+
+}

Added: webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/factory/impl/RSSFactoryImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/factory/impl/RSSFactoryImpl.java?rev=226929&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/factory/impl/RSSFactoryImpl.java (added)
+++ webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/factory/impl/RSSFactoryImpl.java Mon Aug  1 19:43:54 2005
@@ -0,0 +1,112 @@
+package org.apache.axis.feed.feedmodel.rss.factory.impl;
+
+
+import org.apache.axis.feed.feedmodel.Feed;
+import org.apache.axis.feed.feedmodel.rss.*;
+import org.apache.axis.feed.feedmodel.rss.factory.RSSFactory;
+import org.apache.axis.feed.feedmodel.rss.impl.*;
+
+import java.net.URL;
+import java.util.Date;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: INDIKA
+ * Date: Jul 5, 2005
+ * Time: 9:29:48 AM
+ * To change this template use File | Settings | File Templates.
+ */
+public class RSSFactoryImpl implements RSSFactory {
+
+    public Feed createFeed(String version) {
+        return new RSSFeed(version);  //To change body of implemented methods use File | Settings | File Templates.
+    }
+
+
+    public Channel createChannel(String title, URL link, String description) {
+        return new RSSChannel(title, link, description);  //To change body of implemented methods use File | Settings | File Templates.
+    }
+
+    public Item createItem() {
+        return new RSSItem();  //To change body of implemented methods use File | Settings | File Templates.
+    }
+
+    public Item createItem(String title, URL link, String description) {
+        return new RSSItem(title, link, description);  //To change body of implemented methods use File | Settings | File Templates.
+    }
+
+    // link of source = links to the XMLization of the source
+    public SourceElement createSourceElement(String sourcename, String linkOfSource) {
+        return new RSSSourceElement(sourcename, linkOfSource);  //To change body of implemented methods use File | Settings | File Templates.
+    }
+
+    public SourceElement createSourceElement(String sourcename) {
+        return new RSSSourceElement(sourcename);  //To change body of implemented methods use File | Settings | File Templates.
+    }
+
+    /*
+    */
+    public GuidElement createGuidElement(String guid) {
+        return new RSSGuidElement(guid);  //To change body of implemented methods use File | Settings | File Templates.
+    }
+
+    public GuidElement createGuidElement(String guid, boolean isPermaLink) {
+        return new RSSGuidElement(guid, isPermaLink);  //To change body of implemented methods use File | Settings | File Templates.
+    }
+
+    public ImageElement createImageElement(URL URlofImage, String title, URL linkOfSite) {
+        return new RSSImageElement(URlofImage, title, linkOfSite);  //To change body of implemented methods use File | Settings | File Templates.
+    }
+
+    public EnclosureElement createEnclosureElement(URL url, int lenght, String MIMEType) {
+        return new RSSEnclosureElement(url, lenght, MIMEType);  //To change body of implemented methods use File | Settings | File Templates.
+    }
+
+    public CategoryElement createCategoryElement(String categoryName) {
+        return new RSSCategoryElement(categoryName);  //To change body of implemented methods use File | Settings | File Templates.
+    }
+
+    public CategoryElement createCategoryElement(String categoryName, String domain) {
+        return new RSSCategoryElement(categoryName, domain);  //To change body of implemented methods use File | Settings | File Templates.
+    }
+
+    public CloudElement createCloudElement(int port, String path, String registerProcedure, String protocol, String domain) {
+        return new RSSCloudElement(port, path, registerProcedure, protocol, domain);  //To change body of implemented methods use File | Settings | File Templates.
+    }
+
+    public LastBuildDate createLastBuildDate(Date lastBuilddate) {
+        return new LastBuildDateImpl(lastBuilddate);  //To change body of implemented methods use File | Settings | File Templates.
+    }
+
+    public PubDate createPubDate(Date pubDate) {
+        return new PubDateImpl(pubDate);  //To change body of implemented methods use File | Settings | File Templates.
+    }
+
+    public WebMasterElement createWebMaserElement(String webmaster) {
+        return new RSSWebMasterElement(webmaster);
+    }
+
+    public DocsElement createDocsElement(URL docsURl) {
+        return new RSSDocsElement(docsURl);
+    }
+
+    public ManagingEditorElement createManagingEditorElement(String managingEditorEmail) {
+        return new RSSManagingEditorElement(managingEditorEmail);
+    }
+
+    public CopyrightElement createCopyrightElement(String copyRight) {
+        return new RSSCopyrightElement(copyRight);
+    }
+
+    public TtlElement createTtlElement(int ttl) {
+        return new RSSTtlElement(ttl);
+    }
+
+    public GeneratorElement createGeneratorElement(String generator) {
+        return new RSSGeneratorElement(generator);
+    }
+
+    public LanguageElement createLanguageElement(String langauge) {
+        return new RSSLanguageElement(langauge);
+    }
+}

Added: webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/impl/LastBuildDateImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/impl/LastBuildDateImpl.java?rev=226929&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/impl/LastBuildDateImpl.java (added)
+++ webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/impl/LastBuildDateImpl.java Mon Aug  1 19:43:54 2005
@@ -0,0 +1,55 @@
+package org.apache.axis.feed.feedmodel.rss.impl;
+
+import org.apache.axis.feed.feedmodel.rss.Constants;
+import org.apache.axis.feed.feedmodel.rss.LastBuildDate;
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+import java.util.Date;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: INDIKA
+ * Date: Jul 5, 2005
+ * Time: 10:24:16 AM
+ * To change this template use File | Settings | File Templates.
+ */
+public class LastBuildDateImpl implements LastBuildDate, Constants {
+
+    private Date lastBuildDate = null;
+
+    public LastBuildDateImpl(Date lastBuildDate) {
+        this.lastBuildDate = lastBuildDate;
+    }
+
+    public Date getLastBuildDate() {
+        return lastBuildDate;
+    }
+
+    public void setLastBuildDate(Date lastBuildDate) {
+        this.lastBuildDate = lastBuildDate;
+    }
+
+
+    public void serialize(XMLStreamWriter streamWriter) throws XMLStreamException {
+        streamWriter.writeStartElement(Constants.RSS_PREFIX, Constants.LAST_BUILD_DATE_NAME, Constants.RSS_NAMESPACE_URI);
+        if (lastBuildDate != null)
+            streamWriter.writeCharacters(lastBuildDate.toString());
+        streamWriter.writeEndElement();
+    }
+
+    public boolean equals(Object o) {
+        if (this == o) return true;
+        if (!(o instanceof LastBuildDateImpl)) return false;
+
+        final LastBuildDateImpl lastBuildDate1 = (LastBuildDateImpl) o;
+
+        if (lastBuildDate != null ? !lastBuildDate.equals(lastBuildDate1.lastBuildDate) : lastBuildDate1.lastBuildDate != null) return false;
+
+        return true;
+    }
+
+    public int hashCode() {
+        return (lastBuildDate != null ? lastBuildDate.hashCode() : 0);
+    }
+}

Added: webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/impl/PubDateImpl.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/impl/PubDateImpl.java?rev=226929&view=auto
==============================================================================
--- webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/impl/PubDateImpl.java (added)
+++ webservices/axis/trunk/archive/java/scratch/Google_SoC/FeedGenerator/src/org/apache/axis/feed/feedmodel/rss/impl/PubDateImpl.java Mon Aug  1 19:43:54 2005
@@ -0,0 +1,41 @@
+package org.apache.axis.feed.feedmodel.rss.impl;
+
+import org.apache.axis.feed.feedmodel.rss.Constants;
+import org.apache.axis.feed.feedmodel.rss.PubDate;
+
+import javax.xml.stream.XMLStreamException;
+import javax.xml.stream.XMLStreamWriter;
+import java.util.Date;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: INDIKA
+ * Date: Jul 5, 2005
+ * Time: 10:23:56 AM
+ * To change this template use File | Settings | File Templates.
+ */
+public class PubDateImpl implements PubDate {
+
+    private Date pubDate = null;
+
+
+    public PubDateImpl(Date pubDate) {
+        this.pubDate = pubDate;
+    }
+
+    public Date getPubDate() {
+        return pubDate;
+    }
+
+    public void setPubDate(Date pubDate) {
+        this.pubDate = pubDate;
+    }
+
+
+    public void serialize(XMLStreamWriter streamWriter) throws XMLStreamException {
+        streamWriter.writeStartElement(Constants.RSS_PREFIX, Constants.PUB_DATE_NAME, Constants.RSS_NAMESPACE_URI);
+        if (pubDate != null)
+            streamWriter.writeCharacters(pubDate.toString());
+        streamWriter.writeEndElement();
+    }
+}



Mime
View raw message