org.apache.lucene.gdata.gom.core
Class GOMPersonImpl

java.lang.Object
  extended by org.apache.lucene.gdata.gom.core.AbstractGOMElement
      extended by org.apache.lucene.gdata.gom.core.GOMPersonImpl
All Implemented Interfaces:
AtomParser, GOMElement, GOMPerson, GOMXmlEntity
Direct Known Subclasses:
GOMAuthorImpl, GOMContributorImpl

public class GOMPersonImpl
extends AbstractGOMElement
implements GOMPerson

Author:
Simon Willnauer

Field Summary
protected  String email
           
protected  String name
           
protected  String uri
           
 
Fields inherited from class org.apache.lucene.gdata.gom.core.AbstractGOMElement
extensionAttributes, localName, nsPrefix, nsUri, qname, textValue, xmlBase, xmlLang
 
Fields inherited from interface org.apache.lucene.gdata.gom.GOMPerson
LOCALNAME
 
Fields inherited from interface org.apache.lucene.gdata.gom.GOMElement
XML_BASE, XML_LANG
 
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
 
Constructor Summary
GOMPersonImpl()
           
 
Method Summary
 AtomParser getChildParser(javax.xml.namespace.QName aName)
          
 String getEmail()
           
 String getName()
           
 String getUri()
           
 void processEndElement()
          
 void setEmail(String aEmail)
           
 void setName(String aName)
           
 void setUri(String aUri)
           
 void writeAtomOutput(GOMOutputWriter aStreamWriter)
          Generates the xml element represented by this class in the ATOM 1.0 formate.
 void writeRssOutput(GOMOutputWriter aStreamWriter)
          Generates the xml element represented by this class in the RSS 2.0 formate.
 void writeRssOutput(GOMOutputWriter aStreamWriter, String aRssName)
          Generates the xml element represented by this class in the RSS 2.0 formate using the parameter rssName as the element local name
 
Methods inherited from class org.apache.lucene.gdata.gom.core.AbstractGOMElement
addAttribute, getLocalName, getQname, getTextValue, getXmlBase, getXmlLang, getXmlNamespaceAttributes, processAttribute, processElementValue, setLocalName, setNamespacePrefix, setNamespaceUri, setTextValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.lucene.gdata.gom.GOMElement
getXmlBase, getXmlLang
 
Methods inherited from interface org.apache.lucene.gdata.gom.GOMXmlEntity
getLocalName, getQname, getTextValue, setLocalName, setNamespacePrefix, setNamespaceUri, setTextValue
 
Methods inherited from interface org.apache.lucene.gdata.gom.core.AtomParser
processAttribute, processElementValue
 

Field Detail

uri

protected String uri

email

protected String email

name

protected String name
Constructor Detail

GOMPersonImpl

public GOMPersonImpl()
Method Detail

setName

public void setName(String aName)
Specified by:
setName in interface GOMPerson
Parameters:
aName - - the person name value
See Also:
GOMPerson.setName(java.lang.String)

setEmail

public void setEmail(String aEmail)
Specified by:
setEmail in interface GOMPerson
Parameters:
aEmail - - the person email value
See Also:
GOMPerson.setEmail(java.lang.String)

setUri

public void setUri(String aUri)
Specified by:
setUri in interface GOMPerson
Parameters:
aUri - - the person uri value
See Also:
GOMPerson.setUri(java.lang.String)

getName

public String getName()
Specified by:
getName in interface GOMPerson
Returns:
- the person name value
See Also:
GOMPerson.getName()

getEmail

public String getEmail()
Specified by:
getEmail in interface GOMPerson
Returns:
- the person email value
See Also:
GOMPerson.getEmail()

getUri

public String getUri()
Specified by:
getUri in interface GOMPerson
Returns:
- the person uri value
See Also:
GOMPerson.getUri()

writeAtomOutput

public void writeAtomOutput(GOMOutputWriter aStreamWriter)
                     throws javax.xml.stream.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:
javax.xml.stream.XMLStreamException - - if the GOMOutputWriter throws an exception
See Also:
org.apache.lucene.gdata.gom.GOMElement#writeAtomOutput(org.apache.lucene.gdata.gom.writer.GOMStaxWriter)

writeRssOutput

public void writeRssOutput(GOMOutputWriter aStreamWriter)
                    throws javax.xml.stream.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:
javax.xml.stream.XMLStreamException - - if the GOMOutputWriter throws an exception
See Also:
org.apache.lucene.gdata.gom.GOMElement#writeRssOutput(org.apache.lucene.gdata.gom.writer.GOMStaxWriter)

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:
AbstractGOMElement.getChildParser(javax.xml.namespace.QName)

processEndElement

public void processEndElement()
Description copied from class: AbstractGOMElement

Specified by:
processEndElement in interface AtomParser
Overrides:
processEndElement in class AbstractGOMElement
See Also:
AbstractGOMElement.processEndElement()

writeRssOutput

public void writeRssOutput(GOMOutputWriter aStreamWriter,
                           String aRssName)
                    throws javax.xml.stream.XMLStreamException
Description copied from class: AbstractGOMElement
Generates the xml element represented by this class in the RSS 2.0 formate using the parameter rssName as the element local name

Specified by:
writeRssOutput in interface GOMElement
Overrides:
writeRssOutput in class AbstractGOMElement
Parameters:
aStreamWriter - - the GOMOutputWriter implementation to write the output
aRssName - - the local name to render the element
Throws:
javax.xml.stream.XMLStreamException - - if the GOMOutputWriter throws an exception
See Also:
AbstractGOMElement.writeRssOutput(org.apache.lucene.gdata.gom.writer.GOMOutputWriter, java.lang.String)


Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.