org.odata4j.format.xml
Class AtomFeedFormatParser

java.lang.Object
  extended by org.odata4j.format.xml.XmlFormatParser
      extended by org.odata4j.format.xml.AtomFeedFormatParser
All Implemented Interfaces:
FormatParser<Feed>

public class AtomFeedFormatParser
extends XmlFormatParser
implements FormatParser<Feed>


Nested Class Summary
static class AtomFeedFormatParser.AtomFeed
           
static class AtomFeedFormatParser.DataServicesAtomEntry
           
 
Field Summary
protected  OEntityKey entityKey
           
protected  String entitySetName
           
protected  FeedCustomizationMapping fcMapping
           
protected  EdmDataServices metadata
           
 
Fields inherited from class org.odata4j.format.xml.XmlFormatParser
APP_ACCEPT, APP_COLLECTION, APP_SERVICE, APP_WORKSPACE, ATOM_CATEGORY, ATOM_CONTENT, ATOM_ENTRY, ATOM_FEED, ATOM_ID, ATOM_LINK, ATOM_SUMMARY, ATOM_TITLE, ATOM_UPDATED, DATASERVICES_ELEMENT, EDM2006_ASSOCIATION, EDM2006_ASSOCIATIONSET, EDM2006_COMPLEXTYPE, EDM2006_END, EDM2006_ENTITYCONTAINER, EDM2006_ENTITYSET, EDM2006_ENTITYTYPE, EDM2006_FUNCTIONIMPORT, EDM2006_NAVIGATIONPROPERTY, EDM2006_PARAMETER, EDM2006_PROPERTY, EDM2006_PROPERTYREF, EDM2006_SCHEMA, EDM2007_ASSOCIATION, EDM2007_ASSOCIATIONSET, EDM2007_COMPLEXTYPE, EDM2007_END, EDM2007_ENTITYCONTAINER, EDM2007_ENTITYSET, EDM2007_ENTITYTYPE, EDM2007_FUNCTIONIMPORT, EDM2007_NAVIGATIONPROPERTY, EDM2007_PARAMETER, EDM2007_PROPERTY, EDM2007_PROPERTYREF, EDM2007_SCHEMA, EDM2008_1_ASSOCIATION, EDM2008_1_ASSOCIATIONSET, EDM2008_1_COMPLEXTYPE, EDM2008_1_END, EDM2008_1_ENTITYCONTAINER, EDM2008_1_ENTITYSET, EDM2008_1_ENTITYTYPE, EDM2008_1_FUNCTIONIMPORT, EDM2008_1_NAVIGATIONPROPERTY, EDM2008_1_PARAMETER, EDM2008_1_PROPERTY, EDM2008_1_PROPERTYREF, EDM2008_1_SCHEMA, EDM2008_9_ASSOCIATION, EDM2008_9_ASSOCIATIONSET, EDM2008_9_COMPLEXTYPE, EDM2008_9_END, EDM2008_9_ENTITYCONTAINER, EDM2008_9_ENTITYSET, EDM2008_9_ENTITYTYPE, EDM2008_9_FUNCTIONIMPORT, EDM2008_9_NAVIGATIONPROPERTY, EDM2008_9_PARAMETER, EDM2008_9_PROPERTY, EDM2008_9_PROPERTYREF, EDM2008_9_SCHEMA, EDM2009_ASSOCIATION, EDM2009_ASSOCIATIONSET, EDM2009_COMPLEXTYPE, EDM2009_END, EDM2009_ENTITYCONTAINER, EDM2009_ENTITYSET, EDM2009_ENTITYTYPE, EDM2009_FUNCTIONIMPORT, EDM2009_NAVIGATIONPROPERTY, EDM2009_PARAMETER, EDM2009_PROPERTY, EDM2009_PROPERTYREF, EDM2009_SCHEMA, EDMX_DATASERVICES, EDMX_EDMX, M_ETAG, M_FC_CONTENTKIND, M_FC_EPMCONTENTKIND, M_FC_EPMKEEPINCONTENT, M_FC_KEEPINCONTENT, M_FC_TARGETPATH, M_INLINE, M_NULL, M_PROPERTIES, M_TYPE, NS_APP, NS_ATOM, NS_DATASERVICES, NS_EDM2006, NS_EDM2007, NS_EDM2008_1, NS_EDM2008_9, NS_EDM2009, NS_EDMANNOTATION, NS_EDMX, NS_METADATA, NS_XML, XML_BASE
 
Constructor Summary
AtomFeedFormatParser(EdmDataServices metadata, String entitySetName, OEntityKey entityKey, FeedCustomizationMapping fcMapping)
           
 
Method Summary
 AtomFeedFormatParser.AtomFeed parse(Reader reader)
           
static OEntityKey parseEntityKey(String atomEntryId)
           
static Iterable<OProperty<?>> parseProperties(XMLEventReader2 reader, StartElement2 propertiesElement, EdmDataServices metadata, EdmStructuralType structuralType)
           
 
Methods inherited from class org.odata4j.format.xml.XmlFormatParser
getAttributeValueIfExists, getAttributeValueIfExists, isEndElement, isStartElement, urlCombine
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

entityKey

protected OEntityKey entityKey

entitySetName

protected String entitySetName

fcMapping

protected FeedCustomizationMapping fcMapping

metadata

protected EdmDataServices metadata
Constructor Detail

AtomFeedFormatParser

public AtomFeedFormatParser(EdmDataServices metadata,
                            String entitySetName,
                            OEntityKey entityKey,
                            FeedCustomizationMapping fcMapping)
Method Detail

parse

public AtomFeedFormatParser.AtomFeed parse(Reader reader)
Specified by:
parse in interface FormatParser<Feed>

parseEntityKey

public static OEntityKey parseEntityKey(String atomEntryId)

parseProperties

public static Iterable<OProperty<?>> parseProperties(XMLEventReader2 reader,
                                                     StartElement2 propertiesElement,
                                                     EdmDataServices metadata,
                                                     EdmStructuralType structuralType)


http://odata4j.org