public class

XmlFormatWriter

extends Object
java.lang.Object
   ↳ org.odata4j.format.xml.XmlFormatWriter
Known Direct Subclasses

Summary

Constants
String app
String atom
String atom_entry_content_type
String atom_feed_content_type
String d
String edm
String edmx
String m
String related
String scheme
Public Constructors
XmlFormatWriter()
Protected Methods
void writeElement(XMLWriter2 writer, String elementName, String elementText, String... attributes)
String writeEntry(XMLWriter2 writer, OEntity oe, List<OProperty<?>> entityProperties, List<OLink> entityLinks, String baseUri, String updated, EdmEntitySet ees, boolean isResponse)
void writeLinkInline(XMLWriter2 writer, OLink linkToInline, String href, String baseUri, String updated, boolean isResponse)
void writeProperties(XMLWriter2 writer, List<OProperty<?>> properties)
void writeProperty(XMLWriter2 writer, OProperty<?> prop, boolean isDocumentElement)
void writeProperty(XMLWriter2 writer, String name, EdmType type, Object value, boolean isDocumentElement, boolean writeType)
[Expand]
Inherited Methods
From class java.lang.Object

Constants

protected static final String app

Constant Value: "http://www.w3.org/2007/app"

protected static final String atom

Constant Value: "http://www.w3.org/2005/Atom"

public static final String atom_entry_content_type

Constant Value: "application/atom+xml;type=entry"

public static final String atom_feed_content_type

Constant Value: "application/atom+xml;type=feed"

protected static final String d

Constant Value: "http://schemas.microsoft.com/ado/2007/08/dataservices"

protected static final String edm

Constant Value: "http://schemas.microsoft.com/ado/2006/04/edm"

protected static final String edmx

Constant Value: "http://schemas.microsoft.com/ado/2007/06/edmx"

protected static final String m

Constant Value: "http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"

public static final String related

Constant Value: "http://schemas.microsoft.com/ado/2007/08/dataservices/related/"

protected static final String scheme

Constant Value: "http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"

Public Constructors

public XmlFormatWriter ()

Protected Methods

protected void writeElement (XMLWriter2 writer, String elementName, String elementText, String... attributes)

Parameters
writer
elementName
elementText
attributes

protected String writeEntry (XMLWriter2 writer, OEntity oe, List<OProperty<?>> entityProperties, List<OLink> entityLinks, String baseUri, String updated, EdmEntitySet ees, boolean isResponse)

Parameters
writer
oe
entityProperties
entityLinks
baseUri
updated
ees
isResponse

protected void writeLinkInline (XMLWriter2 writer, OLink linkToInline, String href, String baseUri, String updated, boolean isResponse)

Parameters
writer
linkToInline
href
baseUri
updated
isResponse

protected void writeProperties (XMLWriter2 writer, List<OProperty<?>> properties)

Parameters
writer
properties

protected void writeProperty (XMLWriter2 writer, OProperty<?> prop, boolean isDocumentElement)

Parameters
writer
prop
isDocumentElement

protected void writeProperty (XMLWriter2 writer, String name, EdmType type, Object value, boolean isDocumentElement, boolean writeType)

Parameters
writer
name
type
value
isDocumentElement
writeType