Options
All
  • Public
  • Public/Protected
  • All
Menu

XML writer

Hierarchy

  • EwsServiceXmlWriter

Index

Constructors

constructor

Properties

IsTimeZoneHeaderEmitted

IsTimeZoneHeaderEmitted: boolean

RequireWSSecurityUtilityNamespace

RequireWSSecurityUtilityNamespace: boolean

Private currentLevel

currentLevel: number

Private isDisposed

isDisposed: boolean

Private isTimeZoneHeaderEmitted

isTimeZoneHeaderEmitted: boolean

Private pendingElementData

pendingElementData: string

Private pendingXMLTagClosure

pendingXMLTagClosure: boolean

Private requireWSSecurityUtilityNamespace

requireWSSecurityUtilityNamespace: boolean

Private rootLevel

rootLevel: boolean

Private rootUris

rootUris: string[]

Private service

Private soapData

soapData: string

Private uriCache

uriCache: string[]

Private xmlElements

xmlElements: string[]

Private xmlWriter

xmlWriter: any

Static BufferSize

BufferSize: number

Buffer size for writing Base64 encoded content.

Static Private utf8Encoding

utf8Encoding: any

UTF-8 encoding that does not create leading Byte order marks

Accessors

Service

Methods

Private CheckRootUri

  • CheckRootUri(prefix: string, uri: string): boolean
  • check if an uri exist in internal tracker

    Parameters

    • prefix: string

      Prefix of uri.

    • uri: string

      uri itself.

    Returns boolean

Private CloseTag

  • CloseTag(): void
  • Closes XMl tag

    Returns void

ConvertObjectToString

  • ConvertObjectToString(value: any): string
  • convert object to a string. transformed TryConvertObjectToString metho from c#

    Parameters

    • value: any

      The value.

    Returns string

    The string representation of value.

Dispose

  • Dispose(): any
  • Returns any

Flush

  • Flush(): void
  • Returns void

GetXML

  • GetXML(keep?: boolean): string
  • Gets the xml created by EWS XMl Writer.

    Parameters

    • Default value keep: boolean = false

      removes internal cache of XML data if false, otherwise keep the data.

    Returns string

Private PushUris

  • PushUris(prefix: string, uri: string): void
  • Pushes xml uri to internal tracker of used xml uris

    Parameters

    • prefix: string

      Prefix of uri.

    • uri: string

      uri itself.

    Returns void

WriteAttributeString

  • WriteAttributeString(localName: string, stringValue: string): void
  • WriteAttributeString(namespacePrefix: string, localName: string, stringValue: string): void
  • Writes the attribute value.

    Parameters

    • localName: string

      The local name of the attribute.

    • stringValue: string

      The string value.

    Returns void

  • Writes the attribute value.

    Parameters

    • namespacePrefix: string

      The namespace prefix.

    • localName: string

      The local name of the attribute.

    • stringValue: string

      The string value.

    Returns void

WriteAttributeValue

  • WriteAttributeValue(localName: string, value: any): void
  • WriteAttributeValue(localName: string, alwaysWriteEmptyString: boolean, value: any): void
  • WriteAttributeValue(namespacePrefix: string, localName: string, value: any): void
  • Writes the attribute value. Does not emit empty string values.

    Parameters

    • localName: string

      The local name of the attribute.

    • value: any

      The value.

    Returns void

  • Writes the attribute value. Optionally emits empty string values.

    Parameters

    • localName: string

      The local name of the attribute.

    • alwaysWriteEmptyString: boolean

      Always emit the empty string as the value.

    • value: any

      The value.

    Returns void

  • Writes the attribute value.

    Parameters

    • namespacePrefix: string

      The namespace prefix.

    • localName: string

      The local name of the attribute.

    • value: any

      The value.

    Returns void

WriteBase64ElementValue

  • WriteBase64ElementValue(buffer: any): void
  • Writes the base64-encoded element value.

    Parameters

    • buffer: any

      The buffer.

    Returns void

WriteElementValue

  • WriteElementValue(xmlNamespace: XmlNamespace, localName: string, value: any): void
  • WriteElementValue(xmlNamespace: XmlNamespace, localName: string, displayName: string, value: any): void
  • Writes the element value.

    Parameters

    • xmlNamespace: XmlNamespace

      The XML namespace.

    • localName: string

      The local name of the element.

    • value: any

      The value.

    Returns void

  • Writes the element value.

    Parameters

    • xmlNamespace: XmlNamespace

      The XML namespace.

    • localName: string

      The local name of the element.

    • displayName: string
    • value: any

      The value.

    Returns void

WriteEndElement

  • WriteEndElement(): void
  • Writes the end element.

    Returns void

WriteStartElement

  • WriteStartElement(xmlNamespace: XmlNamespace, localName: string): void
  • Writes the start element.

    Parameters

    • xmlNamespace: XmlNamespace

      The XML namespace.

    • localName: string

      The local name of the element.

    Returns void

WriteValue

  • WriteValue(value: string, name: string): any
  • Writes string value.

    Parameters

    • value: string

      The value.

    • name: string

      Element name (used for error handling)

    Returns any

Generated using TypeDoc