FileDocCategorySizeDatePackage
GOMElement.javaAPI DocApache Lucene 2.1.03010Wed Feb 14 10:46:00 GMT 2007org.apache.lucene.gdata.gom

GOMElement

public abstract interface GOMElement implements org.apache.lucene.gdata.gom.core.AtomParser, GOMXmlEntity
Abstract interface which should be assignable from all classes representing xml elements within the GData Object Model.
author
Simon Willnauer

Fields Summary
public static final String
XML_LANG
xml:lang attribute localpart
public static final String
XML_BASE
xml:base attribute localpart
Constructors Summary
Methods Summary
public abstract java.lang.StringgetXmlBase()

return
the xml:base attribute value

public abstract java.lang.StringgetXmlLang()

return
the xml:lang attribute value

public abstract voidwriteAtomOutput(org.apache.lucene.gdata.gom.writer.GOMOutputWriter aStreamWriter)
Generates the xml element represented by this class in the ATOM 1.0 formate.

param
aStreamWriter - the {@link GOMOutputWriter} implementation to write the output
throws
XMLStreamException - if the {@link GOMOutputWriter} throws an exception

public abstract voidwriteRssOutput(org.apache.lucene.gdata.gom.writer.GOMOutputWriter aStreamWriter)
Generates the xml element represented by this class in the RSS 2.0 formate.

param
aStreamWriter - the {@link GOMOutputWriter} implementation to write the output
throws
XMLStreamException - if the {@link GOMOutputWriter} throws an exception

public abstract voidwriteRssOutput(org.apache.lucene.gdata.gom.writer.GOMOutputWriter aStreamWriter, java.lang.String rssName)
Generates the xml element represented by this class in the RSS 2.0 formate using the parameter rssName as the element local name

param
rssName - the local name to render the element
param
aStreamWriter - the {@link GOMOutputWriter} implementation to write the output
throws
XMLStreamException - if the {@link GOMOutputWriter} throws an exception