org.odata4j.format.xml
Class XmlFormatParser

java.lang.Object
  extended by org.odata4j.format.xml.XmlFormatParser
Direct Known Subclasses:
AtomErrorFormatParser, AtomFeedFormatParser, AtomServiceDocumentFormatParser, AtomSingleLinkFormatParser, EdmxFormatParser

public class XmlFormatParser
extends Object


Field Summary
static QName2 APP_ACCEPT
           
static QName2 APP_COLLECTION
           
static QName2 APP_SERVICE
           
static QName2 APP_WORKSPACE
           
static QName2 ATOM_CATEGORY
           
static QName2 ATOM_CONTENT
           
static QName2 ATOM_ENTRY
           
static QName2 ATOM_FEED
           
static QName2 ATOM_ID
           
static QName2 ATOM_LINK
           
static QName2 ATOM_SUMMARY
           
static QName2 ATOM_TITLE
           
static QName2 ATOM_UPDATED
           
static QName2 DATASERVICES_ELEMENT
           
static QName2 EDM2006_ASSOCIATION
           
static QName2 EDM2006_ASSOCIATIONSET
           
static QName2 EDM2006_COMPLEXTYPE
           
static QName2 EDM2006_END
           
static QName2 EDM2006_ENTITYCONTAINER
           
static QName2 EDM2006_ENTITYSET
           
static QName2 EDM2006_ENTITYTYPE
           
static QName2 EDM2006_FUNCTIONIMPORT
           
static QName2 EDM2006_NAVIGATIONPROPERTY
           
static QName2 EDM2006_PARAMETER
           
static QName2 EDM2006_PROPERTY
           
static QName2 EDM2006_PROPERTYREF
           
static QName2 EDM2006_SCHEMA
           
static QName2 EDM2007_ASSOCIATION
           
static QName2 EDM2007_ASSOCIATIONSET
           
static QName2 EDM2007_COMPLEXTYPE
           
static QName2 EDM2007_END
           
static QName2 EDM2007_ENTITYCONTAINER
           
static QName2 EDM2007_ENTITYSET
           
static QName2 EDM2007_ENTITYTYPE
           
static QName2 EDM2007_FUNCTIONIMPORT
           
static QName2 EDM2007_NAVIGATIONPROPERTY
           
static QName2 EDM2007_PARAMETER
           
static QName2 EDM2007_PROPERTY
           
static QName2 EDM2007_PROPERTYREF
           
static QName2 EDM2007_SCHEMA
           
static QName2 EDM2008_1_ASSOCIATION
           
static QName2 EDM2008_1_ASSOCIATIONSET
           
static QName2 EDM2008_1_COMPLEXTYPE
           
static QName2 EDM2008_1_END
           
static QName2 EDM2008_1_ENTITYCONTAINER
           
static QName2 EDM2008_1_ENTITYSET
           
static QName2 EDM2008_1_ENTITYTYPE
           
static QName2 EDM2008_1_FUNCTIONIMPORT
           
static QName2 EDM2008_1_NAVIGATIONPROPERTY
           
static QName2 EDM2008_1_PARAMETER
           
static QName2 EDM2008_1_PROPERTY
           
static QName2 EDM2008_1_PROPERTYREF
           
static QName2 EDM2008_1_SCHEMA
           
static QName2 EDM2008_9_ASSOCIATION
           
static QName2 EDM2008_9_ASSOCIATIONSET
           
static QName2 EDM2008_9_COMPLEXTYPE
           
static QName2 EDM2008_9_END
           
static QName2 EDM2008_9_ENTITYCONTAINER
           
static QName2 EDM2008_9_ENTITYSET
           
static QName2 EDM2008_9_ENTITYTYPE
           
static QName2 EDM2008_9_FUNCTIONIMPORT
           
static QName2 EDM2008_9_NAVIGATIONPROPERTY
           
static QName2 EDM2008_9_PARAMETER
           
static QName2 EDM2008_9_PROPERTY
           
static QName2 EDM2008_9_PROPERTYREF
           
static QName2 EDM2008_9_SCHEMA
           
static QName2 EDM2009_ASSOCIATION
           
static QName2 EDM2009_ASSOCIATIONSET
           
static QName2 EDM2009_COMPLEXTYPE
           
static QName2 EDM2009_END
           
static QName2 EDM2009_ENTITYCONTAINER
           
static QName2 EDM2009_ENTITYSET
           
static QName2 EDM2009_ENTITYTYPE
           
static QName2 EDM2009_FUNCTIONIMPORT
           
static QName2 EDM2009_NAVIGATIONPROPERTY
           
static QName2 EDM2009_PARAMETER
           
static QName2 EDM2009_PROPERTY
           
static QName2 EDM2009_PROPERTYREF
           
static QName2 EDM2009_SCHEMA
           
static QName2 EDMX_DATASERVICES
           
static QName2 EDMX_EDMX
           
static QName2 M_ETAG
           
static QName2 M_FC_CONTENTKIND
           
static QName2 M_FC_EPMCONTENTKIND
           
static QName2 M_FC_EPMKEEPINCONTENT
           
static QName2 M_FC_KEEPINCONTENT
           
static QName2 M_FC_TARGETPATH
           
static QName2 M_INLINE
           
static QName2 M_NULL
           
static QName2 M_PROPERTIES
           
static QName2 M_TYPE
           
static String NS_APP
           
static String NS_ATOM
           
static String NS_DATASERVICES
           
static String NS_EDM2006
           
static String NS_EDM2007
           
static String NS_EDM2008_1
           
static String NS_EDM2008_9
           
static String NS_EDM2009
           
static String NS_EDMANNOTATION
           
static String NS_EDMX
           
static String NS_METADATA
           
static String NS_XML
           
static QName2 XML_BASE
           
 
Constructor Summary
XmlFormatParser()
           
 
Method Summary
protected static String getAttributeValueIfExists(StartElement2 element, QName2 attName)
           
protected static String getAttributeValueIfExists(StartElement2 element, String localName)
           
protected static boolean isEndElement(XMLEvent2 event, QName2 qname)
           
protected static boolean isStartElement(XMLEvent2 event, QName2... names)
           
protected static String urlCombine(String base, String rel)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

APP_ACCEPT

public static final QName2 APP_ACCEPT

APP_COLLECTION

public static final QName2 APP_COLLECTION

APP_SERVICE

public static final QName2 APP_SERVICE

APP_WORKSPACE

public static final QName2 APP_WORKSPACE

ATOM_CATEGORY

public static final QName2 ATOM_CATEGORY

ATOM_CONTENT

public static final QName2 ATOM_CONTENT

ATOM_ENTRY

public static final QName2 ATOM_ENTRY

ATOM_FEED

public static final QName2 ATOM_FEED

ATOM_ID

public static final QName2 ATOM_ID

ATOM_LINK

public static final QName2 ATOM_LINK

ATOM_SUMMARY

public static final QName2 ATOM_SUMMARY

ATOM_TITLE

public static final QName2 ATOM_TITLE

ATOM_UPDATED

public static final QName2 ATOM_UPDATED

DATASERVICES_ELEMENT

public static final QName2 DATASERVICES_ELEMENT

EDM2006_ASSOCIATION

public static final QName2 EDM2006_ASSOCIATION

EDM2006_ASSOCIATIONSET

public static final QName2 EDM2006_ASSOCIATIONSET

EDM2006_COMPLEXTYPE

public static final QName2 EDM2006_COMPLEXTYPE

EDM2006_END

public static final QName2 EDM2006_END

EDM2006_ENTITYCONTAINER

public static final QName2 EDM2006_ENTITYCONTAINER

EDM2006_ENTITYSET

public static final QName2 EDM2006_ENTITYSET

EDM2006_ENTITYTYPE

public static final QName2 EDM2006_ENTITYTYPE

EDM2006_FUNCTIONIMPORT

public static final QName2 EDM2006_FUNCTIONIMPORT

EDM2006_NAVIGATIONPROPERTY

public static final QName2 EDM2006_NAVIGATIONPROPERTY

EDM2006_PARAMETER

public static final QName2 EDM2006_PARAMETER

EDM2006_PROPERTY

public static final QName2 EDM2006_PROPERTY

EDM2006_PROPERTYREF

public static final QName2 EDM2006_PROPERTYREF

EDM2006_SCHEMA

public static final QName2 EDM2006_SCHEMA

EDM2007_ASSOCIATION

public static final QName2 EDM2007_ASSOCIATION

EDM2007_ASSOCIATIONSET

public static final QName2 EDM2007_ASSOCIATIONSET

EDM2007_COMPLEXTYPE

public static final QName2 EDM2007_COMPLEXTYPE

EDM2007_END

public static final QName2 EDM2007_END

EDM2007_ENTITYCONTAINER

public static final QName2 EDM2007_ENTITYCONTAINER

EDM2007_ENTITYSET

public static final QName2 EDM2007_ENTITYSET

EDM2007_ENTITYTYPE

public static final QName2 EDM2007_ENTITYTYPE

EDM2007_FUNCTIONIMPORT

public static final QName2 EDM2007_FUNCTIONIMPORT

EDM2007_NAVIGATIONPROPERTY

public static final QName2 EDM2007_NAVIGATIONPROPERTY

EDM2007_PARAMETER

public static final QName2 EDM2007_PARAMETER

EDM2007_PROPERTY

public static final QName2 EDM2007_PROPERTY

EDM2007_PROPERTYREF

public static final QName2 EDM2007_PROPERTYREF

EDM2007_SCHEMA

public static final QName2 EDM2007_SCHEMA

EDM2008_1_ASSOCIATION

public static final QName2 EDM2008_1_ASSOCIATION

EDM2008_1_ASSOCIATIONSET

public static final QName2 EDM2008_1_ASSOCIATIONSET

EDM2008_1_COMPLEXTYPE

public static final QName2 EDM2008_1_COMPLEXTYPE

EDM2008_1_END

public static final QName2 EDM2008_1_END

EDM2008_1_ENTITYCONTAINER

public static final QName2 EDM2008_1_ENTITYCONTAINER

EDM2008_1_ENTITYSET

public static final QName2 EDM2008_1_ENTITYSET

EDM2008_1_ENTITYTYPE

public static final QName2 EDM2008_1_ENTITYTYPE

EDM2008_1_FUNCTIONIMPORT

public static final QName2 EDM2008_1_FUNCTIONIMPORT

EDM2008_1_NAVIGATIONPROPERTY

public static final QName2 EDM2008_1_NAVIGATIONPROPERTY

EDM2008_1_PARAMETER

public static final QName2 EDM2008_1_PARAMETER

EDM2008_1_PROPERTY

public static final QName2 EDM2008_1_PROPERTY

EDM2008_1_PROPERTYREF

public static final QName2 EDM2008_1_PROPERTYREF

EDM2008_1_SCHEMA

public static final QName2 EDM2008_1_SCHEMA

EDM2008_9_ASSOCIATION

public static final QName2 EDM2008_9_ASSOCIATION

EDM2008_9_ASSOCIATIONSET

public static final QName2 EDM2008_9_ASSOCIATIONSET

EDM2008_9_COMPLEXTYPE

public static final QName2 EDM2008_9_COMPLEXTYPE

EDM2008_9_END

public static final QName2 EDM2008_9_END

EDM2008_9_ENTITYCONTAINER

public static final QName2 EDM2008_9_ENTITYCONTAINER

EDM2008_9_ENTITYSET

public static final QName2 EDM2008_9_ENTITYSET

EDM2008_9_ENTITYTYPE

public static final QName2 EDM2008_9_ENTITYTYPE

EDM2008_9_FUNCTIONIMPORT

public static final QName2 EDM2008_9_FUNCTIONIMPORT

EDM2008_9_NAVIGATIONPROPERTY

public static final QName2 EDM2008_9_NAVIGATIONPROPERTY

EDM2008_9_PARAMETER

public static final QName2 EDM2008_9_PARAMETER

EDM2008_9_PROPERTY

public static final QName2 EDM2008_9_PROPERTY

EDM2008_9_PROPERTYREF

public static final QName2 EDM2008_9_PROPERTYREF

EDM2008_9_SCHEMA

public static final QName2 EDM2008_9_SCHEMA

EDM2009_ASSOCIATION

public static final QName2 EDM2009_ASSOCIATION

EDM2009_ASSOCIATIONSET

public static final QName2 EDM2009_ASSOCIATIONSET

EDM2009_COMPLEXTYPE

public static final QName2 EDM2009_COMPLEXTYPE

EDM2009_END

public static final QName2 EDM2009_END

EDM2009_ENTITYCONTAINER

public static final QName2 EDM2009_ENTITYCONTAINER

EDM2009_ENTITYSET

public static final QName2 EDM2009_ENTITYSET

EDM2009_ENTITYTYPE

public static final QName2 EDM2009_ENTITYTYPE

EDM2009_FUNCTIONIMPORT

public static final QName2 EDM2009_FUNCTIONIMPORT

EDM2009_NAVIGATIONPROPERTY

public static final QName2 EDM2009_NAVIGATIONPROPERTY

EDM2009_PARAMETER

public static final QName2 EDM2009_PARAMETER

EDM2009_PROPERTY

public static final QName2 EDM2009_PROPERTY

EDM2009_PROPERTYREF

public static final QName2 EDM2009_PROPERTYREF

EDM2009_SCHEMA

public static final QName2 EDM2009_SCHEMA

EDMX_DATASERVICES

public static final QName2 EDMX_DATASERVICES

EDMX_EDMX

public static final QName2 EDMX_EDMX

M_ETAG

public static final QName2 M_ETAG

M_FC_CONTENTKIND

public static final QName2 M_FC_CONTENTKIND

M_FC_EPMCONTENTKIND

public static final QName2 M_FC_EPMCONTENTKIND

M_FC_EPMKEEPINCONTENT

public static final QName2 M_FC_EPMKEEPINCONTENT

M_FC_KEEPINCONTENT

public static final QName2 M_FC_KEEPINCONTENT

M_FC_TARGETPATH

public static final QName2 M_FC_TARGETPATH

M_INLINE

public static final QName2 M_INLINE

M_NULL

public static final QName2 M_NULL

M_PROPERTIES

public static final QName2 M_PROPERTIES

M_TYPE

public static final QName2 M_TYPE

NS_APP

public static final String NS_APP
See Also:
Constant Field Values

NS_ATOM

public static final String NS_ATOM
See Also:
Constant Field Values

NS_DATASERVICES

public static final String NS_DATASERVICES
See Also:
Constant Field Values

NS_EDM2006

public static final String NS_EDM2006
See Also:
Constant Field Values

NS_EDM2007

public static final String NS_EDM2007
See Also:
Constant Field Values

NS_EDM2008_1

public static final String NS_EDM2008_1
See Also:
Constant Field Values

NS_EDM2008_9

public static final String NS_EDM2008_9
See Also:
Constant Field Values

NS_EDM2009

public static final String NS_EDM2009
See Also:
Constant Field Values

NS_EDMANNOTATION

public static final String NS_EDMANNOTATION
See Also:
Constant Field Values

NS_EDMX

public static final String NS_EDMX
See Also:
Constant Field Values

NS_METADATA

public static final String NS_METADATA
See Also:
Constant Field Values

NS_XML

public static final String NS_XML
See Also:
Constant Field Values

XML_BASE

public static final QName2 XML_BASE
Constructor Detail

XmlFormatParser

public XmlFormatParser()
Method Detail

getAttributeValueIfExists

protected static String getAttributeValueIfExists(StartElement2 element,
                                                  QName2 attName)

getAttributeValueIfExists

protected static String getAttributeValueIfExists(StartElement2 element,
                                                  String localName)

isEndElement

protected static boolean isEndElement(XMLEvent2 event,
                                      QName2 qname)

isStartElement

protected static boolean isStartElement(XMLEvent2 event,
                                        QName2... names)

urlCombine

protected static String urlCombine(String base,
                                   String rel)


http://odata4j.org