org.apache.commons.feedparser
Class FeedVersion

java.lang.Object
  |
  +--org.apache.commons.feedparser.FeedVersion

public class FeedVersion
extends java.lang.Object

Version:
$Id: FeedVersion.java 159215 2005-03-27 23:36:16Z burton $

Field Summary
 boolean isAtom
          True if this is an Atom feed.
 boolean isChanges
          True if this is a changes.xml file.
 boolean isFOAF
          True when this is a Friend of a Friend FOAF file.
 boolean isOPML
           
 boolean isRSS
          True if this is an RSS feed
 boolean isXFN
           
 java.lang.String version
          The version of this specification.
 int version_major
           
 int version_minor
           
 int version_sub
           
 
Constructor Summary
FeedVersion()
           
 
Method Summary
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

isAtom

public boolean isAtom
True if this is an Atom feed.


isRSS

public boolean isRSS
True if this is an RSS feed


isFOAF

public boolean isFOAF
True when this is a Friend of a Friend FOAF file.


isOPML

public boolean isOPML

isXFN

public boolean isXFN

isChanges

public boolean isChanges
True if this is a changes.xml file.


version

public java.lang.String version
The version of this specification. If this is RSS 1.0 the version will be "1.0". If this is Atom 0.5 the version will be "0.5" (and so forth). If the version is unknown the value is simply null. The format of this is unstructured text and in many situations is mirrored right form the 'version' attribute in some RSS/Atom specifications. See version_major, version_minor, and version_sub for more info.


version_major

public int version_major

version_minor

public int version_minor

version_sub

public int version_sub
Constructor Detail

FeedVersion

public FeedVersion()
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2004-2006 Apache Software Foundation. All Rights Reserved.