/// <summary> /// Constructor. /// </summary> /// <param name="atomOutputContext">The output context to write to.</param> internal ODataAtomServiceDocumentSerializer(ODataAtomOutputContext atomOutputContext) : base(atomOutputContext) { DebugUtils.CheckNoExternalCallers(); this.atomServiceDocumentMetadataSerializer = new ODataAtomServiceDocumentMetadataSerializer(atomOutputContext); }
/// <summary> /// Constructor. /// </summary> /// <param name="atomOutputContext">The output context to write to.</param> internal ODataAtomServiceDocumentSerializer(ODataAtomOutputContext atomOutputContext) : base(atomOutputContext) { DebugUtils.CheckNoExternalCallers(); this.atomServiceDocumentMetadataSerializer = new ODataAtomServiceDocumentMetadataSerializer(atomOutputContext); }
/// <summary> /// Constructor. /// </summary> /// <param name="atomOutputContext">The output context to write to.</param> internal ODataAtomSerializer(ODataAtomOutputContext atomOutputContext) : base(atomOutputContext) { DebugUtils.CheckNoExternalCallers(); Debug.Assert(atomOutputContext != null, "atomOutputContext != null"); this.atomOutputContext = atomOutputContext; }
/// <summary> /// Constructor. /// </summary> /// <param name="atomOutputContext">The output context to write to.</param> internal ODataAtomSerializer(ODataAtomOutputContext atomOutputContext) : base(atomOutputContext) { DebugUtils.CheckNoExternalCallers(); Debug.Assert(atomOutputContext != null, "atomOutputContext != null"); this.atomOutputContext = atomOutputContext; }
/// <summary> /// Constructor. /// </summary> /// <param name="atomOutputContext">The output context to write to.</param> internal ODataAtomEntryAndFeedSerializer(ODataAtomOutputContext atomOutputContext) : base(atomOutputContext) { DebugUtils.CheckNoExternalCallers(); this.atomEntryMetadataSerializer = new ODataAtomEntryMetadataSerializer(atomOutputContext); this.atomFeedMetadataSerializer = new ODataAtomFeedMetadataSerializer(atomOutputContext); }
/// <summary> /// Constructor. /// </summary> /// <param name="atomOutputContext">The output context to write to.</param> internal ODataAtomEntryAndFeedSerializer(ODataAtomOutputContext atomOutputContext) : base(atomOutputContext) { DebugUtils.CheckNoExternalCallers(); this.atomEntryMetadataSerializer = new ODataAtomEntryMetadataSerializer(atomOutputContext); this.atomFeedMetadataSerializer = new ODataAtomFeedMetadataSerializer(atomOutputContext); }
/// <summary> /// Constructor. /// </summary> /// <param name="atomOutputContext">The output context to write to.</param> /// <param name="expectedItemType">The type reference of the expected item type or null if no expected item type exists.</param> /// <param name="listener">If not null, the writer will notify the implementer of the interface of relevant state changes in the writer.</param> internal ODataAtomCollectionWriter(ODataAtomOutputContext atomOutputContext, IEdmTypeReference expectedItemType, IODataReaderWriterListener listener) : base(atomOutputContext, expectedItemType, listener) { DebugUtils.CheckNoExternalCallers(); Debug.Assert(atomOutputContext != null, "atomOutputContext != null"); this.atomOutputContext = atomOutputContext; this.atomCollectionSerializer = new ODataAtomCollectionSerializer(atomOutputContext); }
/// <summary> /// Constructor. /// </summary> /// <param name="atomOutputContext">The output context to write to.</param> /// <param name="expectedItemType">The type reference of the expected item type or null if no expected item type exists.</param> /// <param name="listener">If not null, the writer will notify the implementer of the interface of relevant state changes in the writer.</param> internal ODataAtomCollectionWriter(ODataAtomOutputContext atomOutputContext, IEdmTypeReference expectedItemType, IODataReaderWriterListener listener) : base(atomOutputContext, expectedItemType, listener) { DebugUtils.CheckNoExternalCallers(); Debug.Assert(atomOutputContext != null, "atomOutputContext != null"); this.atomOutputContext = atomOutputContext; this.atomCollectionSerializer = new ODataAtomCollectionSerializer(atomOutputContext); }
/// <summary> /// Constructor. /// </summary> /// <param name="atomOutputContext">The output context to write to.</param> /// <param name="itemTypeReference">The item type of the collection being written or null if no metadata is available.</param> internal ODataAtomCollectionWriter(ODataAtomOutputContext atomOutputContext, IEdmTypeReference itemTypeReference) : base(atomOutputContext, itemTypeReference) { DebugUtils.CheckNoExternalCallers(); Debug.Assert(atomOutputContext != null, "atomOutputContext != null"); this.atomOutputContext = atomOutputContext; this.atomCollectionSerializer = new ODataAtomCollectionSerializer(atomOutputContext); }
internal ODataAtomWriter(ODataAtomOutputContext atomOutputContext, bool writingFeed) : base(atomOutputContext, writingFeed) { this.updatedTime = ODataAtomConvert.ToAtomString(DateTimeOffset.UtcNow); this.atomOutputContext = atomOutputContext; if (this.atomOutputContext.MessageWriterSettings.WriterBehavior.StartEntryXmlCustomizationCallback != null) { this.atomOutputContext.InitializeWriterCustomization(); } this.atomEntryAndFeedSerializer = new ODataAtomEntryAndFeedSerializer(this.atomOutputContext); }
internal ODataAtomWriter(ODataAtomOutputContext atomOutputContext, bool writingFeed) : base(atomOutputContext, writingFeed) { this.updatedTime = ODataAtomConvert.ToAtomString(DateTimeOffset.UtcNow); this.atomOutputContext = atomOutputContext; if (this.atomOutputContext.MessageWriterSettings.WriterBehavior.StartEntryXmlCustomizationCallback != null) { this.atomOutputContext.InitializeWriterCustomization(); } this.atomEntryAndFeedSerializer = new ODataAtomEntryAndFeedSerializer(this.atomOutputContext); }
/// <summary> /// Writes the custom mapped EPM properties to an XML writer which is expected to be positioned such to write /// a child element of the entry element. /// </summary> /// <param name="writer">The XmlWriter to write to.</param> /// <param name="epmTargetTree">The EPM target tree to use.</param> /// <param name="epmValueCache">The entry properties value cache to use to access the properties.</param> /// <param name="entityType">The type of the entry.</param> /// <param name="atomOutputContext">The output context currently in use.</param> internal static void WriteEntryEpm( XmlWriter writer, EpmTargetTree epmTargetTree, EntryPropertiesValueCache epmValueCache, IEdmEntityTypeReference entityType, ODataAtomOutputContext atomOutputContext) { DebugUtils.CheckNoExternalCallers(); EpmCustomWriter epmWriter = new EpmCustomWriter(atomOutputContext); epmWriter.WriteEntryEpm(writer, epmTargetTree, epmValueCache, entityType); }
/// <summary> /// Writes the custom mapped EPM properties to an XML writer which is expected to be positioned such to write /// a child element of the entry element. /// </summary> /// <param name="writer">The XmlWriter to write to.</param> /// <param name="epmTargetTree">The EPM target tree to use.</param> /// <param name="epmValueCache">The entry properties value cache to use to access the properties.</param> /// <param name="entityType">The type of the entry.</param> /// <param name="atomOutputContext">The output context currently in use.</param> internal static void WriteEntryEpm( XmlWriter writer, EpmTargetTree epmTargetTree, EntryPropertiesValueCache epmValueCache, IEdmEntityTypeReference entityType, ODataAtomOutputContext atomOutputContext) { DebugUtils.CheckNoExternalCallers(); EpmCustomWriter epmWriter = new EpmCustomWriter(atomOutputContext); epmWriter.WriteEntryEpm(writer, epmTargetTree, epmValueCache, entityType); }
/// <summary> /// Writes the syndication part of EPM for an entry into ATOM metadata OM. /// </summary> /// <param name="epmTargetTree">The EPM target tree to use.</param> /// <param name="epmValueCache">The entry properties value cache to use to access the properties.</param> /// <param name="type">The type of the entry.</param> /// <param name="atomOutputContext">The output context currently in use.</param> /// <returns>The ATOM metadata OM with the EPM values populated.</returns> internal static AtomEntryMetadata WriteEntryEpm( EpmTargetTree epmTargetTree, EntryPropertiesValueCache epmValueCache, IEdmEntityTypeReference type, ODataAtomOutputContext atomOutputContext) { DebugUtils.CheckNoExternalCallers(); Debug.Assert(epmTargetTree != null, "epmTargetTree != null"); Debug.Assert(epmValueCache != null, "epmValueCache != null"); Debug.Assert(type != null, "For any EPM to exist the metadata must be available."); EpmSyndicationWriter epmWriter = new EpmSyndicationWriter(epmTargetTree, atomOutputContext); return epmWriter.WriteEntryEpm(epmValueCache, type); }
/// <summary> /// Writes the syndication part of EPM for an entry into ATOM metadata OM. /// </summary> /// <param name="epmTargetTree">The EPM target tree to use.</param> /// <param name="epmValueCache">The entry properties value cache to use to access the properties.</param> /// <param name="type">The type of the entry.</param> /// <param name="atomOutputContext">The output context currently in use.</param> /// <returns>The ATOM metadata OM with the EPM values populated.</returns> internal static AtomEntryMetadata WriteEntryEpm( EpmTargetTree epmTargetTree, EntryPropertiesValueCache epmValueCache, IEdmEntityTypeReference type, ODataAtomOutputContext atomOutputContext) { DebugUtils.CheckNoExternalCallers(); Debug.Assert(epmTargetTree != null, "epmTargetTree != null"); Debug.Assert(epmValueCache != null, "epmValueCache != null"); Debug.Assert(type != null, "For any EPM to exist the metadata must be available."); EpmSyndicationWriter epmWriter = new EpmSyndicationWriter(epmTargetTree, atomOutputContext); return(epmWriter.WriteEntryEpm(epmValueCache, type)); }
/// <summary> /// Constructor creating an OData writer using the ATOM format. /// </summary> /// <param name="atomOutputContext">The output context to write to.</param> /// <param name="writingFeed">True if the writer is created for writing a feed; false when it is created for writing an entry.</param> internal ODataAtomWriter(ODataAtomOutputContext atomOutputContext, bool writingFeed) : base(atomOutputContext, writingFeed) { DebugUtils.CheckNoExternalCallers(); Debug.Assert(atomOutputContext != null, "atomOutputContext != null"); this.atomOutputContext = atomOutputContext; if (this.atomOutputContext.MessageWriterSettings.AtomStartEntryXmlCustomizationCallback != null) { Debug.Assert( this.atomOutputContext.MessageWriterSettings.AtomEndEntryXmlCustomizationCallback != null, "We should have verified that both start end end XML customization callbacks are specified."); this.atomOutputContext.InitializeWriterCustomization(); } this.atomEntryAndFeedSerializer = new ODataAtomEntryAndFeedSerializer(this.atomOutputContext); }
/// <summary> /// Constructor creating an OData writer using the ATOM format. /// </summary> /// <param name="atomOutputContext">The output context to write to.</param> /// <param name="writingFeed">True if the writer is created for writing a feed; false when it is created for writing an entry.</param> internal ODataAtomWriter(ODataAtomOutputContext atomOutputContext, bool writingFeed) : base(atomOutputContext, writingFeed) { DebugUtils.CheckNoExternalCallers(); Debug.Assert(atomOutputContext != null, "atomOutputContext != null"); this.atomOutputContext = atomOutputContext; if (this.atomOutputContext.MessageWriterSettings.AtomStartEntryXmlCustomizationCallback != null) { Debug.Assert( this.atomOutputContext.MessageWriterSettings.AtomEndEntryXmlCustomizationCallback != null, "We should have verified that both start end end XML customization callbacks are specified."); this.atomOutputContext.InitializeWriterCustomization(); } this.atomEntryAndFeedSerializer = new ODataAtomEntryAndFeedSerializer(this.atomOutputContext); }
/// <summary> /// Constructor. /// </summary> /// <param name="epmTargetTree">The EPM target tree to use.</param> /// <param name="atomOutputContext">The output context currently in use.</param> private EpmSyndicationWriter(EpmTargetTree epmTargetTree, ODataAtomOutputContext atomOutputContext) : base(atomOutputContext) { this.epmTargetTree = epmTargetTree; this.entryMetadata = new AtomEntryMetadata(); }
internal ODataAtomCollectionWriter(ODataAtomOutputContext atomOutputContext, IEdmTypeReference expectedItemType, IODataReaderWriterListener listener) : base(atomOutputContext, expectedItemType, listener) { this.atomOutputContext = atomOutputContext; this.atomCollectionSerializer = new ODataAtomCollectionSerializer(atomOutputContext); }
/// <summary> /// Constructor. /// </summary> /// <param name="atomOutputContext">The output context currently in use.</param> private EpmCustomWriter(ODataAtomOutputContext atomOutputContext) : base(atomOutputContext) { }
internal static AtomEntryMetadata WriteEntryEpm(EpmTargetTree epmTargetTree, EntryPropertiesValueCache epmValueCache, IEdmEntityTypeReference type, ODataAtomOutputContext atomOutputContext) { EpmSyndicationWriter writer = new EpmSyndicationWriter(epmTargetTree, atomOutputContext); return(writer.WriteEntryEpm(epmValueCache, type)); }
internal ODataAtomServiceDocumentSerializer(ODataAtomOutputContext atomOutputContext) : base(atomOutputContext) { this.atomServiceDocumentMetadataSerializer = new ODataAtomServiceDocumentMetadataSerializer(atomOutputContext); }
internal ODataAtomEntityReferenceLinkSerializer(ODataAtomOutputContext atomOutputContext) : base(atomOutputContext) { }
internal ODataAtomCollectionWriter(ODataAtomOutputContext atomOutputContext, IEdmTypeReference expectedItemType, IODataReaderWriterListener listener) : base(atomOutputContext, expectedItemType, listener) { this.atomOutputContext = atomOutputContext; this.atomCollectionSerializer = new ODataAtomCollectionSerializer(atomOutputContext); }
internal ODataAtomServiceDocumentSerializer(ODataAtomOutputContext atomOutputContext) : base(atomOutputContext) { this.atomServiceDocumentMetadataSerializer = new ODataAtomServiceDocumentMetadataSerializer(atomOutputContext); }
/// <summary> /// Constructor. /// </summary> /// <param name="atomOutputContext">The output context currently in use.</param> protected EpmWriter(ODataAtomOutputContext atomOutputContext) { Debug.Assert(atomOutputContext != null, "atomOutputContext != null"); this.atomOutputContext = atomOutputContext; }
internal ODataAtomServiceDocumentMetadataSerializer(ODataAtomOutputContext atomOutputContext) : base(atomOutputContext) { }
/// <summary> /// Constructor. /// </summary> /// <param name="epmTargetTree">The EPM target tree to use.</param> /// <param name="atomOutputContext">The output context currently in use.</param> private EpmSyndicationWriter(EpmTargetTree epmTargetTree, ODataAtomOutputContext atomOutputContext) : base(atomOutputContext) { this.epmTargetTree = epmTargetTree; this.entryMetadata = new AtomEntryMetadata(); }
internal ODataAtomEntryAndFeedSerializer(ODataAtomOutputContext atomOutputContext) : base(atomOutputContext) { this.atomEntryMetadataSerializer = new ODataAtomEntryMetadataSerializer(atomOutputContext); this.atomFeedMetadataSerializer = new ODataAtomFeedMetadataSerializer(atomOutputContext); }
/// <summary> /// Constructor. /// </summary> /// <param name="atomOutputContext">The output context currently in use.</param> protected EpmWriter(ODataAtomOutputContext atomOutputContext) { Debug.Assert(atomOutputContext != null, "atomOutputContext != null"); this.atomOutputContext = atomOutputContext; }
/// <summary> /// Constructor. /// </summary> /// <param name="atomOutputContext">The output context to write to.</param> internal ODataAtomPropertyAndValueSerializer(ODataAtomOutputContext atomOutputContext) : base(atomOutputContext) { DebugUtils.CheckNoExternalCallers(); }
internal static void WriteEntryEpm(XmlWriter writer, EpmTargetTree epmTargetTree, EntryPropertiesValueCache epmValueCache, IEdmEntityTypeReference entityType, ODataAtomOutputContext atomOutputContext) { new EpmCustomWriter(atomOutputContext).WriteEntryEpm(writer, epmTargetTree, epmValueCache, entityType); }
internal ODataAtomCollectionSerializer(ODataAtomOutputContext atomOutputContext) : base(atomOutputContext) { }
internal static AtomEntryMetadata WriteEntryEpm(EpmTargetTree epmTargetTree, EntryPropertiesValueCache epmValueCache, IEdmEntityTypeReference type, ODataAtomOutputContext atomOutputContext) { EpmSyndicationWriter writer = new EpmSyndicationWriter(epmTargetTree, atomOutputContext); return writer.WriteEntryEpm(epmValueCache, type); }
internal ODataAtomEntityReferenceLinkSerializer(ODataAtomOutputContext atomOutputContext) : base(atomOutputContext) { }
internal ODataAtomCollectionSerializer(ODataAtomOutputContext atomOutputContext) : base(atomOutputContext) { }
internal ODataAtomSerializer(ODataAtomOutputContext atomOutputContext) : base(atomOutputContext) { this.atomOutputContext = atomOutputContext; }
internal ODataAtomEntryAndFeedSerializer(ODataAtomOutputContext atomOutputContext) : base(atomOutputContext) { this.atomEntryMetadataSerializer = new ODataAtomEntryMetadataSerializer(atomOutputContext); this.atomFeedMetadataSerializer = new ODataAtomFeedMetadataSerializer(atomOutputContext); }
internal ODataAtomServiceDocumentMetadataSerializer(ODataAtomOutputContext atomOutputContext) : base(atomOutputContext) { }
internal ODataAtomPropertyAndValueSerializer(ODataAtomOutputContext atomOutputContext) : base(atomOutputContext) { }
/// <summary> /// Constructor. /// </summary> /// <param name="atomOutputContext">The output context to write to.</param> internal ODataAtomPropertyAndValueSerializer(ODataAtomOutputContext atomOutputContext) : base(atomOutputContext) { DebugUtils.CheckNoExternalCallers(); }
internal ODataAtomSerializer(ODataAtomOutputContext atomOutputContext) : base(atomOutputContext) { this.atomOutputContext = atomOutputContext; }
/// <summary> /// Constructor. /// </summary> /// <param name="atomOutputContext">The output context to write to.</param> internal ODataAtomMetadataSerializer(ODataAtomOutputContext atomOutputContext) : base(atomOutputContext) { DebugUtils.CheckNoExternalCallers(); }
internal static void WriteEntryEpm(XmlWriter writer, EpmTargetTree epmTargetTree, EntryPropertiesValueCache epmValueCache, IEdmEntityTypeReference entityType, ODataAtomOutputContext atomOutputContext) { new EpmCustomWriter(atomOutputContext).WriteEntryEpm(writer, epmTargetTree, epmValueCache, entityType); }
protected EpmWriter(ODataAtomOutputContext atomOutputContext) { this.atomOutputContext = atomOutputContext; }
private EpmCustomWriter(ODataAtomOutputContext atomOutputContext) : base(atomOutputContext) { }
internal ODataAtomPropertyAndValueSerializer(ODataAtomOutputContext atomOutputContext) : base(atomOutputContext) { }
/// <summary> /// Constructor. /// </summary> /// <param name="atomOutputContext">The output context to write to.</param> internal ODataAtomEntityReferenceLinkSerializer(ODataAtomOutputContext atomOutputContext) : base(atomOutputContext) { DebugUtils.CheckNoExternalCallers(); }
internal ODataAtomFeedMetadataSerializer(ODataAtomOutputContext atomOutputContext) : base(atomOutputContext) { }
internal ODataAtomFeedMetadataSerializer(ODataAtomOutputContext atomOutputContext) : base(atomOutputContext) { }
/// <summary> /// Constructor. /// </summary> /// <param name="atomOutputContext">The output context to write to.</param> internal ODataAtomEntryMetadataSerializer(ODataAtomOutputContext atomOutputContext) : base(atomOutputContext) { DebugUtils.CheckNoExternalCallers(); }
protected EpmWriter(ODataAtomOutputContext atomOutputContext) { this.atomOutputContext = atomOutputContext; }