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

java.lang.Object
  extended by org.apache.lucene.gdata.gom.core.AbstractGOMElement
      extended by org.apache.lucene.gdata.gom.core.GOMTextContructImpl
          extended by org.apache.lucene.gdata.gom.core.GOMContentImpl
All Implemented Interfaces:
AtomParser, GOMContent, GOMElement, GOMTextConstruct, GOMXmlEntity

public class GOMContentImpl
extends GOMTextContructImpl
implements GOMContent

Author:
Simon Willnauer

Field Summary
 
Fields inherited from class org.apache.lucene.gdata.gom.core.GOMTextContructImpl
blobParser, contentType, htmlBuilder, rssLocalName
 
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.GOMContent
LOCAL_NAME_RSS, 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
GOMContentImpl()
           
 
Method Summary
 AtomMediaType getAtomMediaType()
           
 AtomParser getChildParser(javax.xml.namespace.QName aName)
          
 String getSrc()
          The src attribute value
 void processAttribute(javax.xml.namespace.QName aQName, String aValue)
          
 void processElementValue(String aValue)
          
 void processEndElement()
          
 void setAtomMediaType(AtomMediaType aMediaType)
          The contents abstract media type
 void setSrc(String aSrc)
          The src attribute value
 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.
 
Methods inherited from class org.apache.lucene.gdata.gom.core.GOMTextContructImpl
getContentType
 
Methods inherited from class org.apache.lucene.gdata.gom.core.AbstractGOMElement
addAttribute, getLocalName, getQname, getTextValue, getXmlBase, getXmlLang, getXmlNamespaceAttributes, setLocalName, setNamespacePrefix, setNamespaceUri, setTextValue, writeRssOutput
 
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, writeRssOutput
 
Methods inherited from interface org.apache.lucene.gdata.gom.GOMXmlEntity
getLocalName, getQname, getTextValue, setLocalName, setNamespacePrefix, setNamespaceUri, setTextValue
 

Constructor Detail

GOMContentImpl

public GOMContentImpl()
Method Detail

getSrc

public String getSrc()
Description copied from interface: GOMContent
The src attribute value

Specified by:
getSrc in interface GOMContent
Returns:
- the value of the src attribute
See Also:
GOMContent.getSrc()

setSrc

public void setSrc(String aSrc)
Description copied from interface: GOMContent
The src attribute value

Specified by:
setSrc in interface GOMContent
Parameters:
aSrc - - the src attribute value to set
See Also:
GOMContent.setSrc(java.lang.String)

processAttribute

public void processAttribute(javax.xml.namespace.QName aQName,
                             String aValue)
Description copied from class: AbstractGOMElement

Specified by:
processAttribute in interface AtomParser
Overrides:
processAttribute in class GOMTextContructImpl
See Also:
GOMTextContructImpl.processAttribute(javax.xml.namespace.QName, java.lang.String)

processElementValue

public void processElementValue(String aValue)
Description copied from class: AbstractGOMElement

Specified by:
processElementValue in interface AtomParser
Overrides:
processElementValue in class GOMTextContructImpl
See Also:
GOMTextContructImpl.processElementValue(java.lang.String)

processEndElement

public void processEndElement()
Description copied from class: AbstractGOMElement

Specified by:
processEndElement in interface AtomParser
Overrides:
processEndElement in class GOMTextContructImpl
See Also:
GOMTextContructImpl.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 GOMTextContructImpl
Returns:
See Also:
GOMTextContructImpl.getChildParser(javax.xml.namespace.QName)

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
Overrides:
writeAtomOutput in class GOMTextContructImpl
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
Overrides:
writeRssOutput in class GOMTextContructImpl
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.core.GOMTextContructImpl#writeRssOutput(org.apache.lucene.gdata.gom.writer.GOMStaxWriter)

setAtomMediaType

public void setAtomMediaType(AtomMediaType aMediaType)
Description copied from interface: GOMContent
The contents abstract media type

Specified by:
setAtomMediaType in interface GOMContent
Parameters:
aMediaType - -
See Also:
GOMContent.setAtomMediaType(org.apache.lucene.gdata.gom.AtomMediaType)

getAtomMediaType

public AtomMediaType getAtomMediaType()
Specified by:
getAtomMediaType in interface GOMContent
Returns:
- the atom media type of the content element
See Also:
GOMContent.getAtomMediaType()


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