org.apache.lucene.gdata.gom
Interface GOMContent

All Superinterfaces:
AtomParser, GOMElement, GOMTextConstruct, GOMXmlEntity
All Known Implementing Classes:
GOMContentImpl

public interface GOMContent
extends GOMTextConstruct

GOMContent represents the atom:content element.

The "atom:content" element either contains or links to the content of the entry. The content of atom:content is Language-Sensitive.
   atomInlineTextContent =
   element atom:content {
   atomCommonAttributes,
   attribute type { "text" | "html" }?,
   (text)*
   }
  
   atomInlineXHTMLContent =
   element atom:content {
   atomCommonAttributes,
   attribute type { "xhtml" },
   xhtmlDiv
   }
  
   atomInlineOtherContent =
   element atom:content {
   atomCommonAttributes,
   attribute type { atomMediaType }?,
   (text|anyElement)*
   }
  
  
   atomOutOfLineContent =
   element atom:content {
   atomCommonAttributes,
   attribute type { atomMediaType }?,
   attribute src { atomUri },
   empty
   }
  
   atomContent = atomInlineTextContent
   | atomInlineXHTMLContent
  
   | atomInlineOtherContent
   | atomOutOfLineContent
 

Author:
Simon Willnauer
See Also:
GOMTextConstruct

Field Summary
static String LOCAL_NAME_RSS
          RSS local name for the xml element
static String LOCALNAME
          Atom local name for the xml element
 
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
 
Method Summary
 AtomMediaType getAtomMediaType()
           
 String getSrc()
          The src attribute value
 void setAtomMediaType(AtomMediaType aMediaType)
          The contents abstract media type
 void setSrc(String aSrc)
          The src attribute value
 
Methods inherited from interface org.apache.lucene.gdata.gom.GOMElement
getXmlBase, getXmlLang, writeAtomOutput, writeRssOutput, writeRssOutput
 
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
getChildParser, processAttribute, processElementValue, processEndElement
 

Field Detail

LOCALNAME

static final String LOCALNAME
Atom local name for the xml element

See Also:
Constant Field Values

LOCAL_NAME_RSS

static final String LOCAL_NAME_RSS
RSS local name for the xml element

See Also:
Constant Field Values
Method Detail

getSrc

String getSrc()
The src attribute value

Returns:
- the value of the src attribute

setSrc

void setSrc(String aSrc)
The src attribute value

Parameters:
aSrc - - the src attribute value to set

setAtomMediaType

void setAtomMediaType(AtomMediaType aMediaType)
The contents abstract media type

Parameters:
aMediaType - -

getAtomMediaType

AtomMediaType getAtomMediaType()
Returns:
- the atom media type of the content element
See Also:
AtomMediaType


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