org.apache.lucene.gdata.gom.core
Class GOMPersonImpl
java.lang.Object
org.apache.lucene.gdata.gom.core.AbstractGOMElement
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
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, 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 |
uri
protected String uri
email
protected String email
name
protected String name
GOMPersonImpl
public GOMPersonImpl()
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 outputaRssName
- -
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.