gist.protons
Class DefaultAtom

java.lang.Object
  extended by gist.protons.DefaultAtom

public class DefaultAtom
extends java.lang.Object

Class contains static methods for creating default Atom 1.0 feed and entry elements.

Author:
Grinnell Internet Syndication Team

Field Summary
private static java.lang.String[] monthName
           
 
Constructor Summary
DefaultAtom()
           
 
Method Summary
static XMLElem createDefaultFeed()
          Creates a feed as an XMlElem object with default information.
static int entryOrder(XMLElem entry)
          Returns the order of an entry tag.
static int feedOrder(XMLElem feed)
          Returns the order of a feed tag.
static java.lang.String getCreation(java.lang.String fileName)
          Returns entry's published field to the creation time of the file.
static java.lang.String getDate(java.lang.String timeStamp, java.lang.String feedType)
          Returns a common date string from a timeStamp.
static java.lang.String getID(XMLElem atom, java.lang.String fileName)
          Returns the ID of an element.
static java.lang.String getModified(java.lang.String fileName)
          Returns entry's updated field to the last modified time of the file.
static XMLElem refinedEntry(XMLElem initEntry, java.lang.String fileName)
           
static java.lang.String timeStamp(java.util.Date time)
          Returns a Date object in standard date-time format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

monthName

private static final java.lang.String[] monthName
Constructor Detail

DefaultAtom

public DefaultAtom()
Method Detail

feedOrder

public static int feedOrder(XMLElem feed)
Returns the order of a feed tag.


entryOrder

public static int entryOrder(XMLElem entry)
Returns the order of an entry tag.


getID

public static java.lang.String getID(XMLElem atom,
                                     java.lang.String fileName)
Returns the ID of an element.


getCreation

public static java.lang.String getCreation(java.lang.String fileName)
Returns entry's published field to the creation time of the file.


getModified

public static java.lang.String getModified(java.lang.String fileName)
Returns entry's updated field to the last modified time of the file.


timeStamp

public static java.lang.String timeStamp(java.util.Date time)
Returns a Date object in standard date-time format.


getDate

public static java.lang.String getDate(java.lang.String timeStamp,
                                       java.lang.String feedType)
Returns a common date string from a timeStamp.


createDefaultFeed

public static XMLElem createDefaultFeed()
Creates a feed as an XMlElem object with default information.


refinedEntry

public static XMLElem refinedEntry(XMLElem initEntry,
                                   java.lang.String fileName)