public void append(final XMLStreamWriter writer, final EntityInfoAggregator entityInfo, final List<Map<String, Object>> data) throws EntityProviderException { try { writer.writeStartElement(FormatXml.D_LINKS); writer.writeDefaultNamespace(Edm.NAMESPACE_D_2007_08); if (properties.getInlineCount() != null) { writer.writeStartElement(Edm.PREFIX_M, FormatXml.M_COUNT, Edm.NAMESPACE_M_2007_08); writer.writeNamespace(Edm.PREFIX_M, Edm.NAMESPACE_M_2007_08); writer.writeCharacters(properties.getInlineCount().toString()); writer.writeEndElement(); } XmlLinkEntityProducer provider = new XmlLinkEntityProducer(properties); for (final Map<String, Object> entityData : data) { provider.append(writer, entityInfo, entityData, false); } writer.writeEndElement(); writer.flush(); } catch (final XMLStreamException e) { throw new EntityProviderProducerException(EntityProviderException.COMMON, e); } } }
public ODataEntityProviderPropertiesBuilder fromProperties(final EntityProviderWriteProperties properties) { this.properties.mediaResourceMimeType = properties.getMediaResourceMimeType(); this.properties.inlineCountType = properties.getInlineCountType(); this.properties.inlineCount = properties.getInlineCount(); this.properties.nextLink = properties.getNextLink(); this.properties.expandSelectTree = properties.getExpandSelectTree(); this.properties.callbacks = properties.getCallbacks(); this.properties.selfLink = properties.getSelfLink(); this.properties.includeSimplePropertyType = properties.includeSimplePropertyType; return this; } }
public ODataEntityProviderPropertiesBuilder fromProperties(final EntityProviderWriteProperties properties) { this.properties.inlineCountType = properties.getInlineCountType(); this.properties.inlineCount = properties.getInlineCount(); this.properties.nextLink = properties.getNextLink(); this.properties.expandSelectTree = properties.getExpandSelectTree(); this.properties.callbacks = properties.getCallbacks(); this.properties.selfLink = properties.getSelfLink(); this.properties.includeSimplePropertyType = properties.includeSimplePropertyType; this.properties.additionalLinks = properties.additionalLinks; this.properties.omitJsonWrapper = properties.omitJsonWrapper; this.properties.contentOnly = properties.contentOnly; this.properties.omitETag = properties.omitETag; this.properties.validatingFacets = properties.validatingFacets; this.properties.isResponsePayload = properties.isResponsePayload; this.properties.includeMetadataInContentOnly = properties.includeMetadataInContentOnly; this.properties.isDataBasedPropertySerialization = properties.isDataBasedPropertySerialization; this.properties.omitInlineForNullData = properties.omitInlineForNullData; return this; }
public void append(final XMLStreamWriter writer, final EntityInfoAggregator entityInfo, final List<Map<String, Object>> data) throws EntityProviderException { try { writer.writeStartElement(FormatXml.D_LINKS); writer.writeDefaultNamespace(Edm.NAMESPACE_D_2007_08); if (properties.getInlineCount() != null) { writer.writeStartElement(Edm.PREFIX_M, FormatXml.M_COUNT, Edm.NAMESPACE_M_2007_08); writer.writeNamespace(Edm.PREFIX_M, Edm.NAMESPACE_M_2007_08); writer.writeCharacters(properties.getInlineCount().toString()); writer.writeEndElement(); } XmlLinkEntityProducer provider = new XmlLinkEntityProducer(properties); for (final Map<String, Object> entityData : data) { provider.append(writer, entityInfo, entityData, false); } writer.writeEndElement(); writer.flush(); } catch (final XMLStreamException e) { throw new EntityProviderProducerException(EntityProviderException.COMMON, e); } } }
public ODataEntityProviderPropertiesBuilder fromProperties(final EntityProviderWriteProperties properties) { this.properties.inlineCountType = properties.getInlineCountType(); this.properties.inlineCount = properties.getInlineCount(); this.properties.nextLink = properties.getNextLink(); this.properties.expandSelectTree = properties.getExpandSelectTree(); this.properties.callbacks = properties.getCallbacks(); this.properties.selfLink = properties.getSelfLink(); this.properties.includeSimplePropertyType = properties.includeSimplePropertyType; this.properties.additionalLinks = properties.additionalLinks; this.properties.omitJsonWrapper = properties.omitJsonWrapper; this.properties.contentOnly = properties.contentOnly; this.properties.omitETag = properties.omitETag; this.properties.validatingFacets = properties.validatingFacets; this.properties.isResponsePayload = properties.isResponsePayload; this.properties.includeMetadataInContentOnly = properties.includeMetadataInContentOnly; this.properties.isDataBasedPropertySerialization = properties.isDataBasedPropertySerialization; this.properties.omitInlineForNullData = properties.omitInlineForNullData; return this; }
public void append(final XMLStreamWriter writer, final EntityInfoAggregator entityInfo, final List<Map<String, Object>> data) throws EntityProviderException { try { writer.writeStartElement(FormatXml.D_LINKS); writer.writeDefaultNamespace(Edm.NAMESPACE_D_2007_08); if (properties.getInlineCount() != null) { writer.writeStartElement(Edm.PREFIX_M, FormatXml.M_COUNT, Edm.NAMESPACE_M_2007_08); writer.writeNamespace(Edm.PREFIX_M, Edm.NAMESPACE_M_2007_08); writer.writeCharacters(properties.getInlineCount().toString()); writer.writeEndElement(); } XmlLinkEntityProducer provider = new XmlLinkEntityProducer(properties); for (final Map<String, Object> entityData : data) { provider.append(writer, entityInfo, entityData, false); } writer.writeEndElement(); writer.flush(); } catch (final XMLStreamException e) { throw new EntityProviderException(EntityProviderException.COMMON, e); } } }
public ODataEntityProviderPropertiesBuilder fromProperties(final EntityProviderWriteProperties properties) { this.properties.inlineCountType = properties.getInlineCountType(); this.properties.inlineCount = properties.getInlineCount(); this.properties.callback = properties.getCallback(); this.properties.nextLink = properties.getNextLink(); this.properties.expandSelectTree = properties.getExpandSelectTree(); this.properties.callbacks = properties.getCallbacks(); this.properties.selfLink = properties.getSelfLink(); this.properties.includeSimplePropertyType = properties.includeSimplePropertyType; this.properties.additionalLinks = properties.additionalLinks; this.properties.omitJsonWrapper = properties.omitJsonWrapper; this.properties.contentOnly = properties.contentOnly; this.properties.omitETag = properties.omitETag; this.properties.validatingFacets = properties.validatingFacets; this.properties.isResponsePayload = properties.isResponsePayload; this.properties.includeMetadataInContentOnly = properties.includeMetadataInContentOnly; this.properties.isDataBasedPropertySerialization = properties.isDataBasedPropertySerialization; this.properties.omitInlineForNullData = properties.omitInlineForNullData; return this; }
appendAtomSelfLink(writer, eia); if (properties.getInlineCountType() == InlineCount.ALLPAGES) { appendInlineCount(writer, properties.getInlineCount());
appendAtomSelfLink(writer, eia); if (properties.getInlineCountType() == InlineCount.ALLPAGES) { appendInlineCount(writer, properties.getInlineCount());
appendAtomSelfLink(writer, eia); if (properties.getInlineCountType() == InlineCount.ALLPAGES) { appendInlineCount(writer, properties.getInlineCount());
final int inlineCount = properties.getInlineCount() == null ? 0 : properties.getInlineCount(); jsonStreamWriter.beginObject() .namedStringValueRaw(FormatJson.COUNT, String.valueOf(inlineCount)).separator()
final int inlineCount = properties.getInlineCount() == null ? 0 : properties.getInlineCount(); jsonStreamWriter.beginObject() .namedStringValueRaw(FormatJson.COUNT, String.valueOf(inlineCount)).separator()
final int inlineCount = properties.getInlineCount() == null ? 0 : properties.getInlineCount(); jsonStreamWriter.beginObject() .namedStringValueRaw(FormatJson.COUNT, String.valueOf(inlineCount)).separator()
final int inlineCount = properties.getInlineCount() == null ? 0 : properties.getInlineCount(); jsonStreamWriter.namedStringValueRaw(FormatJson.COUNT, String.valueOf(inlineCount)).separator();
final int inlineCount = properties.getInlineCount() == null ? 0 : properties.getInlineCount(); jsonStreamWriter.namedStringValueRaw(FormatJson.COUNT, String.valueOf(inlineCount)).separator();
final int inlineCount = properties.getInlineCount() == null ? 0 : properties.getInlineCount(); jsonStreamWriter.namedStringValueRaw(FormatJson.COUNT, String.valueOf(inlineCount)).separator();