org.apache.commons.feedparser
Class FeedVersion

java.lang.Object
  extended by org.apache.commons.feedparser.FeedVersion

public class FeedVersion
extends Object

Version:
$Id: FeedVersion.java 373614 2006-01-30 22:31:21Z mvdb $
Author:
Kevin A. Burton (burtonator)

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
           
 String version
          The version of this specification.
 int version_major
           
 int version_minor
           
 int version_sub
           
 
Constructor Summary
FeedVersion()
           
 
Method Summary
 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 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 String toString()
Overrides:
toString in class Object


Copyright © 2001-2010 The Apache Software Foundation. All Rights Reserved.