SerializationOptions

#include </home/jenkins/.jenkins/ubuntu-remote-queue/jenkins-BuildZorbaUbuntu-462/source/zorba/swig/SerializationOptions.h>

This class defines a set of values used to define the way a serialization can be made over Items or Collections collections. Default values:
  • Serialization method: XML
  • Byte order mark: NO
  • Escape uri attributes: NO
  • Include content type: NO
  • Indent: NO
  • Normalization form: none
  • Omit xml declaration: NO
  • Standalone: omit
  • Undeclare prefixes: NO

Friend Classes

friend class

Item

friend class

XQuery

Private Attributes

Zorba_SerializerOptions_t

lOptions

Public Functions

void

setByteOrderMark(ByteOrderMark aByteOrderMark)

void

setEscapeUriAttributes(EscapeUriAttributes aEscapeUriAttributes)

void

setIncludeContentType(IncludeContentType aIncludeContentType)

void

setIndent(Indent aIndent)

void

setNormalizationForm(NormalizationForm aNormalizationForm)

void

setOmitXMLDeclaration(OmitXMLDeclaration aOmitXMLDeclaration)

void

setSerializationMethod(SerializationMethod aSerializationMethod)

void

setSerializerOption(const std::string &parameter, const std::string &value)

/brief Set the serialization options given a string parameter and a string value

void

setStandalone(Standalone aStandalone)

void

setUndeclarePrefixes(UndeclarePrefixes aUndeclarePrefixes)

Public Types

ByteOrderMark

 ByteOrderMark

EscapeUriAttributes

 EscapeUriAttributes

IncludeContentType

 IncludeContentType

Indent

 Indent

NormalizationForm

 NormalizationForm

OmitXMLDeclaration

 OmitXMLDeclaration

SerializationMethod

 SerializationMethod

Standalone

 Standalone

UndeclarePrefixes

 UndeclarePrefixes

Friend Classes

Item

friend class Item

XQuery

friend class XQuery

Private Attributes

lOptions

Zorba_SerializerOptions_t lOptions

Public Functions

setByteOrderMark

void setByteOrderMark(ByteOrderMark aByteOrderMark)

setEscapeUriAttributes

void setEscapeUriAttributes(EscapeUriAttributes aEscapeUriAttributes)

setIncludeContentType

void setIncludeContentType(IncludeContentType aIncludeContentType)

setIndent

void setIndent(Indent aIndent)

setNormalizationForm

void setNormalizationForm(NormalizationForm aNormalizationForm)

setOmitXMLDeclaration

void setOmitXMLDeclaration(OmitXMLDeclaration aOmitXMLDeclaration)

setSerializationMethod

void setSerializationMethod(SerializationMethod aSerializationMethod)

setSerializerOption

void setSerializerOption(const std::string &parameter, const std::string &value)

/brief Set the serialization options given a string parameter and a string value

Parameters

parameter The parameter to be changed
value The value to be assigned in a string form

setStandalone

void setStandalone(Standalone aStandalone)

setUndeclarePrefixes

void setUndeclarePrefixes(UndeclarePrefixes aUndeclarePrefixes)