org.intabulas.sandler.elements.impl
Class GeneratorImpl

java.lang.Object
  extended by org.intabulas.sandler.elements.impl.GeneratorImpl
All Implemented Interfaces:
AtomElement, Generator, ParseableEntity

public class GeneratorImpl
extends Object
implements Generator, AtomElement

GeneratorImpl

Version:
$Id: GeneratorImpl.java,v 1.6 2004/01/02 01:43:57 intabulas Exp $
Author:
Mark Lussier

Field Summary
 
Fields inherited from interface org.intabulas.sandler.elements.AtomElement
ATOM_NAMESPACE, ATOM_VERSION, ATTRIBUTE_HREF, ATTRIBUTE_LANG, ATTRIBUTE_LANG_NP, ATTRIBUTE_MODE, ATTRIBUTE_NAME, ATTRIBUTE_REL, ATTRIBUTE_TITLE, ATTRIBUTE_TYPE, ATTRIBUTE_URL, ATTRIBUTE_VERSION, ATTRIBUTE_XMLNS, CDATA_END, CDATA_START, ELEMENT_AUTHOR, ELEMENT_CONTENT, ELEMENT_CONTRIBUTOR, ELEMENT_COPYRIGHT, ELEMENT_CREATED, ELEMENT_EMAIL, ELEMENT_ENTRY, ELEMENT_FEED, ELEMENT_GENERATOR, ELEMENT_HOMEPAGE, ELEMENT_ID, ELEMENT_INFO, ELEMENT_ISSUED, ELEMENT_LINK, ELEMENT_MODIFIED, ELEMENT_NAME, ELEMENT_SUMMARY, ELEMENT_TAGLINE, ELEMENT_TITLE, ELEMENT_URL, FORMAT_COMMENT, FORMAT_ENDELEMENT, FORMAT_FEEDATTRIBUTES, FORMAT_NAMEATTRIBUTE, FORMAT_STARTELEMENT, FORMAT_STRINGELEMENT, HTMLTAG_BEGIN, HTMLTAG_CLOSE, HTMLTAG_END, HTMLTAG_START, SPACE, XML_STARTDOC
 
Constructor Summary
GeneratorImpl()
           
GeneratorImpl(String name, String url, String version)
           
 
Method Summary
 String getName()
          Returns the human readable name of the tooklit that generated the feed
 String getUri()
          Returns the URI of the toolkit that generated the feed
 String getVersion()
          Returns the version of the toolkit that generated the feed
 void loadDocument(org.xmlpull.v1.XmlPullParser parser)
          Extract relevant content from the parser stream
 void setName(String name)
          Set'sthe human readable name of the tooklit that generated the feed
 void setUri(String uri)
          Set' the URI of the toolkit that generated the feed
 void setVersion(String version)
          Set the version of the toolkit that generated the feed
 String toString()
          Returns a string representation of the object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GeneratorImpl

public GeneratorImpl()

GeneratorImpl

public GeneratorImpl(String name,
                     String url,
                     String version)
Method Detail

setName

public void setName(String name)
Set'sthe human readable name of the tooklit that generated the feed

Specified by:
setName in interface Generator
Parameters:
name - a String containg the Generator's Name

getName

public String getName()
Returns the human readable name of the tooklit that generated the feed

Specified by:
getName in interface Generator
Returns:
a String containing the name

setUri

public void setUri(String uri)
Set' the URI of the toolkit that generated the feed

Specified by:
setUri in interface Generator
Parameters:
uri - a String containg the Generator's URI

getUri

public String getUri()
Returns the URI of the toolkit that generated the feed

Specified by:
getUri in interface Generator
Returns:
a String containing the URI

getVersion

public String getVersion()
Returns the version of the toolkit that generated the feed

Returns:
a String containing the version

setVersion

public void setVersion(String version)
Set the version of the toolkit that generated the feed

Parameters:
version - a String containing the Generator's version

toString

public String toString()
Returns a string representation of the object.

Overrides:
toString in class Object
Returns:
a String representation of the object.

loadDocument

public void loadDocument(org.xmlpull.v1.XmlPullParser parser)
                  throws org.xmlpull.v1.XmlPullParserException
Extract relevant content from the parser stream

Specified by:
loadDocument in interface ParseableEntity
Parameters:
parser - the XML Pull Parser instabce
Throws:
org.xmlpull.v1.XmlPullParserException


Copyright © 2003-2004 Mark Lussier. All Rights Reserved.