org.apache.lucene.gdata.gom.core
Class GOMSourceImpl
java.lang.Object
org.apache.lucene.gdata.gom.core.AbstractGOMElement
org.apache.lucene.gdata.gom.core.GOMSourceImpl
- All Implemented Interfaces:
- AtomParser, GOMElement, GOMSource, GOMXmlEntity
public class GOMSourceImpl
- extends AbstractGOMElement
- implements GOMSource
- Author:
- Simon Willnauer
| Fields inherited from interface org.apache.lucene.gdata.gom.core.AtomParser |
DUPLICATE_ATTRIBUTE, DUPLICATE_ELEMENT, DUPLICATE_ELEMENT_VALUE, INVALID_ATTRIBUTE, INVALID_ELEMENT_VALUE, MISSING_ELEMENT_ATTRIBUTE, MISSING_ELEMENT_CHILD, MISSING_ELEMENT_VALUE, MISSING_ELEMENT_VALUE_PLAIN, UNEXPECTED_ATTRIBUTE, UNEXPECTED_ELEMENT, UNEXPECTED_ELEMENT_CHILD, UNEXPECTED_ELEMENT_VALUE, URECOGNIZED_ELEMENT_CHILD |
| Methods inherited from class org.apache.lucene.gdata.gom.core.AbstractGOMElement |
addAttribute, getQname, getTextValue, getXmlBase, getXmlLang, getXmlNamespaceAttributes, processAttribute, setLocalName, setNamespacePrefix, setNamespaceUri, setTextValue, writeRssOutput |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
authors
protected List<GOMAuthor> authors
categories
protected List<GOMCategory> categories
links
protected List<GOMLink> links
contributors
protected List<GOMContributor> contributors
generator
protected GOMGenerator generator
id
protected GOMId id
logo
protected GOMLogo logo
rights
protected GOMRights rights
subtitle
protected GOMSubtitle subtitle
title
protected GOMTitle title
updated
protected GOMUpdated updated
icon
protected GOMIcon icon
getLocalName
public String getLocalName()
- Description copied from class:
AbstractGOMElement
-
- Specified by:
getLocalName in interface GOMXmlEntity- Overrides:
getLocalName in class AbstractGOMElement
- Returns:
- - the local name of the entitiy
- See Also:
AbstractGOMElement.getLocalName()
addAuthor
public void addAuthor(GOMAuthor aAuthor)
- Specified by:
addAuthor in interface GOMSource
- See Also:
GOMSource.addAuthor(org.apache.lucene.gdata.gom.GOMAuthor)
addCategory
public void addCategory(GOMCategory aCategory)
- Specified by:
addCategory in interface GOMSource
- See Also:
GOMSource.addCategory(org.apache.lucene.gdata.gom.GOMCategory)
addContributor
public void addContributor(GOMContributor aContributor)
- Specified by:
addContributor in interface GOMSource
- See Also:
GOMSource.addContributor(org.apache.lucene.gdata.gom.GOMContributor)
getAuthors
public List<GOMAuthor> getAuthors()
- Specified by:
getAuthors in interface GOMSource
- See Also:
GOMSource.getAuthors()
getCategories
public List<GOMCategory> getCategories()
- Specified by:
getCategories in interface GOMSource
- See Also:
GOMSource.getCategories()
getContributor
public List<GOMContributor> getContributor()
- Specified by:
getContributor in interface GOMSource
- See Also:
GOMSource.getContributor()
getGenerator
public GOMGenerator getGenerator()
- Specified by:
getGenerator in interface GOMSource
- See Also:
GOMSource.getGenerator()
getId
public GOMId getId()
- Specified by:
getId in interface GOMSource
- See Also:
GOMSource.getId()
setGenerator
public void setGenerator(GOMGenerator aGenerator)
- Specified by:
setGenerator in interface GOMSource
- See Also:
GOMSource.setGenerator(org.apache.lucene.gdata.gom.GOMGenerator)
setIcon
public void setIcon(GOMIcon aIcon)
- Specified by:
setIcon in interface GOMSource
- See Also:
GOMSource.setIcon(org.apache.lucene.gdata.gom.GOMIcon)
setId
public void setId(GOMId aId)
- Specified by:
setId in interface GOMSource
- See Also:
GOMSource.setId(org.apache.lucene.gdata.gom.GOMId)
getLogo
public GOMLogo getLogo()
- Specified by:
getLogo in interface GOMSource
- Returns:
- the logo
setLogo
public void setLogo(GOMLogo aLogo)
- Specified by:
setLogo in interface GOMSource
- Parameters:
aLogo - the logo to set
getRights
public GOMRights getRights()
- Specified by:
getRights in interface GOMSource
- Returns:
- the rights
setRights
public void setRights(GOMRights aRights)
- Specified by:
setRights in interface GOMSource
- Parameters:
aRights - the rights to set
getSubtitle
public GOMSubtitle getSubtitle()
- Specified by:
getSubtitle in interface GOMSource
- Returns:
- the subtitle
setSubtitle
public void setSubtitle(GOMSubtitle aSubtitle)
- Specified by:
setSubtitle in interface GOMSource
- Parameters:
aSubtitle - the subtitle to set
getTitle
public GOMTitle getTitle()
- Specified by:
getTitle in interface GOMSource
- Returns:
- the title
setTitle
public void setTitle(GOMTitle aTitle)
- Specified by:
setTitle in interface GOMSource
- Parameters:
aTitle - the title to set
getUpdated
public GOMUpdated getUpdated()
- Specified by:
getUpdated in interface GOMSource
- Returns:
- the updated
setUpdated
public void setUpdated(GOMUpdated aUpdated)
- Specified by:
setUpdated in interface GOMSource
- Parameters:
aUpdated - the updated to set
getIcon
public GOMIcon getIcon()
- Specified by:
getIcon in interface GOMSource
- Returns:
- the icon
getLinks
public List<GOMLink> getLinks()
- Specified by:
getLinks in interface GOMSource
- Returns:
- the links
addLink
public void addLink(GOMLink aLink)
- Specified by:
addLink in interface GOMSource
- See Also:
GOMSource.addLink(org.apache.lucene.gdata.gom.GOMLink)
processElementValue
public void processElementValue(String aValue)
- Description copied from class:
AbstractGOMElement
-
- Specified by:
processElementValue in interface AtomParser- Overrides:
processElementValue in class AbstractGOMElement
- See Also:
AtomParser.processElementValue(java.lang.String)
processEndElement
public void processEndElement()
- Description copied from class:
AbstractGOMElement
-
- Specified by:
processEndElement in interface AtomParser- Overrides:
processEndElement in class AbstractGOMElement
- See Also:
AtomParser.processEndElement()
getChildParser
public AtomParser getChildParser(javax.xml.namespace.QName aName)
- Description copied from class:
AbstractGOMElement
-
- Specified by:
getChildParser in interface AtomParser- Overrides:
getChildParser in class AbstractGOMElement
- Returns:
- See Also:
AtomParser.getChildParser(javax.xml.namespace.QName)
writeAtomOutput
public void writeAtomOutput(GOMOutputWriter aStreamWriter)
throws XMLStreamException
- Description copied from interface:
GOMElement
- Generates the xml element represented by this class in the ATOM 1.0
formate.
- Specified by:
writeAtomOutput in interface GOMElement
- Parameters:
aStreamWriter - -
the GOMOutputWriter implementation to write the output
- Throws:
XMLStreamException - -
if the GOMOutputWriter throws an exception- See Also:
org.apache.lucene.gdata.gom.GOMElement#writeAtomOutput(org.apache.lucene.gdata.gom.writer.GOMStaxWriter)
writeInnerAtomOutput
protected void writeInnerAtomOutput(GOMOutputWriter aStreamWriter)
throws XMLStreamException
- Parameters:
aStreamWriter -
- Throws:
XMLStreamException
writeRssOutput
public void writeRssOutput(GOMOutputWriter aStreamWriter)
throws XMLStreamException
- Description copied from interface:
GOMElement
- Generates the xml element represented by this class in the RSS 2.0
formate.
- Specified by:
writeRssOutput in interface GOMElement
- Parameters:
aStreamWriter - -
the GOMOutputWriter implementation to write the output
- Throws:
XMLStreamException - -
if the GOMOutputWriter throws an exception- See Also:
org.apache.lucene.gdata.gom.GOMElement#writeRssOutput(org.apache.lucene.gdata.gom.writer.GOMStaxWriter)
Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.