commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bur...@apache.org
Subject cvs commit: jakarta-commons-sandbox/feedparser/src/java/org/apache/commons/feedparser AtomFeedParser.java FeedParser.java MetaFeedParserListener.java
Date Sat, 13 Mar 2004 07:05:58 GMT
burton      2004/03/12 23:05:58

  Modified:    feedparser/src/java/org/apache/commons/feedparser
                        AtomFeedParser.java FeedParser.java
                        MetaFeedParserListener.java
  Log:
  documentation for element names
  
  Revision  Changes    Path
  1.5       +22 -1     jakarta-commons-sandbox/feedparser/src/java/org/apache/commons/feedparser/AtomFeedParser.java
  
  Index: AtomFeedParser.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/feedparser/src/java/org/apache/commons/feedparser/AtomFeedParser.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- AtomFeedParser.java	28 Feb 2004 03:35:21 -0000	1.4
  +++ AtomFeedParser.java	13 Mar 2004 07:05:57 -0000	1.5
  @@ -104,7 +104,28 @@
               Element child = (Element)i.next();
   
               String title = selectText( "atom:title", child );
  +
  +            // The "atom:link" element is a Link construct that conveys a URI
  +            // associated with the entry. The nature of the relationship as well
  +            // as the link itself is determined by the element's content.
  +
  +            // atom:entry elements MUST contain at least one atom:link element
  +            // with a rel attribute value of "alternate".
  +
  +            // atom:entry elements MUST NOT contain more than one atom:link
  +            // element with a rel attribute value of "alternate" that has the
  +            // same type attribute value.
  +
  +            // atom:entry elements MAY contain additional atom:link elements
  +            // beyond those described above.
  +            
               String link = selectSingleAttribute( "atom:link[@rel='alternate'][@type='text/html']/@href",
child );
  +
  +            // The "atom:summary" element is a Content construct that conveys a
  +            // short summary, abstract or excerpt of the entry. atom:entry
  +            // elements MAY contain an atom:created element, but MUST NOT
  +            // contain more than one.
  +                
               String description = selectText( "atom:summary[@type='text/plain']", child
);
   
               listener.onItem( state, title, link, description, link );
  
  
  
  1.3       +1 -3      jakarta-commons-sandbox/feedparser/src/java/org/apache/commons/feedparser/FeedParser.java
  
  Index: FeedParser.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/feedparser/src/java/org/apache/commons/feedparser/FeedParser.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- FeedParser.java	28 Feb 2004 03:35:21 -0000	1.2
  +++ FeedParser.java	13 Mar 2004 07:05:57 -0000	1.3
  @@ -95,8 +95,6 @@
               }
   
               if ( "feed".equals( doc.getRootElement().getName() ) ) {
  -
  -                System.out.println( " FIXME: (debug): asdfasdf" );
                   AtomFeedParser.parse( listener, doc );
                   return;
               }
  
  
  
  1.4       +2 -2      jakarta-commons-sandbox/feedparser/src/java/org/apache/commons/feedparser/MetaFeedParserListener.java
  
  Index: MetaFeedParserListener.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/feedparser/src/java/org/apache/commons/feedparser/MetaFeedParserListener.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- MetaFeedParserListener.java	28 Feb 2004 03:35:22 -0000	1.3
  +++ MetaFeedParserListener.java	13 Mar 2004 07:05:57 -0000	1.4
  @@ -65,7 +65,7 @@
        * 
        * --- RSS 1.0 SUPPORT ---
        * 
  -     * dc:date
  +     * We use dc:date which is ISO 8601 compliant.
        * 
        * http://www.w3.org/TR/NOTE-datetime
        * http://web.resource.org/rss/1.0/modules/dc/
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message