Class SerializationParameters

java.lang.Object
org.rumbledb.serialization.SerializationParameters
All Implemented Interfaces:
com.esotericsoftware.kryo.KryoSerializable, Serializable

public class SerializationParameters extends Object implements Serializable, com.esotericsoftware.kryo.KryoSerializable
Default serialization parameters stored in the XQuery static context. Specification references: - XQuery 3.1 Static Context Components — default serialization parameters (link: https://www.w3.org/TR/xquery-31/#id-xq-static-context-components) - XSLT and XQuery Serialization 3.1 — Serialization Parameters (link: https://www.w3.org/TR/xslt-xquery-serialization-31/#serparam)
See Also:
  • Constructor Details

    • SerializationParameters

      public SerializationParameters()
  • Method Details

    • defaults

      public static SerializationParameters defaults()
    • getMethod

      public String getMethod()
    • setMethod

      public void setMethod(String method)
    • getEncoding

      public String getEncoding()
    • setEncoding

      public void setEncoding(String encoding)
    • getOmitXmlDeclaration

      public boolean getOmitXmlDeclaration()
    • setOmitXmlDeclaration

      public void setOmitXmlDeclaration(boolean omitXmlDeclaration)
    • getStandalone

      public SerializationParameters.Standalone getStandalone()
    • setStandalone

      public void setStandalone(SerializationParameters.Standalone standalone)
    • getDoctypeSystem

      public String getDoctypeSystem()
    • setDoctypeSystem

      public void setDoctypeSystem(String doctypeSystem)
    • getDoctypePublic

      public String getDoctypePublic()
    • setDoctypePublic

      public void setDoctypePublic(String doctypePublic)
    • getMediaType

      public String getMediaType()
    • setMediaType

      public void setMediaType(String mediaType)
    • getNormalizationForm

      public SerializationParameters.NormalizationForm getNormalizationForm()
    • setNormalizationForm

      public void setNormalizationForm(SerializationParameters.NormalizationForm normalizationForm)
    • getUndeclarePrefixes

      public boolean getUndeclarePrefixes()
    • setUndeclarePrefixes

      public void setUndeclarePrefixes(boolean undeclarePrefixes)
    • getCharacterMaps

      public Map<String,String> getCharacterMaps()
    • setCharacterMaps

      public void setCharacterMaps(Map<String,String> characterMaps)
    • getCdataSectionElements

      public Set<String> getCdataSectionElements()
    • setCdataSectionElements

      public void setCdataSectionElements(Set<String> cdataSectionElements)
    • getIncludeContentType

      public boolean getIncludeContentType()
    • setIncludeContentType

      public void setIncludeContentType(boolean includeContentType)
    • getEscapeUriAttributes

      public boolean getEscapeUriAttributes()
    • setEscapeUriAttributes

      public void setEscapeUriAttributes(boolean escapeUriAttributes)
    • getHtmlVersion

      public String getHtmlVersion()
    • setHtmlVersion

      public void setHtmlVersion(String htmlVersion)
    • getByteOrderMark

      public boolean getByteOrderMark()
    • setByteOrderMark

      public void setByteOrderMark(boolean byteOrderMark)
    • getIndent

      public boolean getIndent()
    • setIndent

      public void setIndent(boolean indent)
    • getIndentSpaces

      public int getIndentSpaces()
    • setIndentSpaces

      public void setIndentSpaces(int indentSpaces)
    • getSuppressIndentation

      public Set<String> getSuppressIndentation()
    • setSuppressIndentation

      public void setSuppressIndentation(Set<String> suppressIndentation)
    • getItemSeparator

      public String getItemSeparator()
    • setItemSeparator

      public void setItemSeparator(String itemSeparator)
    • getAllowDuplicateNames

      public boolean getAllowDuplicateNames()
    • setAllowDuplicateNames

      public void setAllowDuplicateNames(boolean allowDuplicateNames)
    • getJsonNodeOutputMethod

      public SerializationParameters.JsonNodeOutputMethod getJsonNodeOutputMethod()
    • setJsonNodeOutputMethod

      public void setJsonNodeOutputMethod(SerializationParameters.JsonNodeOutputMethod jsonNodeOutputMethod)
    • getExtensionParameters

      public Map<String,String> getExtensionParameters()
    • setExtensionParameters

      public void setExtensionParameters(Map<String,String> extensionParameters)
    • getSparkOptions

      public Map<String,String> getSparkOptions()
    • setSparkOptions

      public void setSparkOptions(Map<String,String> sparkOptions)
    • write

      public void write(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output)
      Specified by:
      write in interface com.esotericsoftware.kryo.KryoSerializable
    • read

      public void read(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input)
      Specified by:
      read in interface com.esotericsoftware.kryo.KryoSerializable
    • copy

      public static SerializationParameters copy(SerializationParameters parameters)
      Returns a copy of the SerializationParameters instance.
      Parameters:
      parameters - the SerializationParameters instance to copy
      Returns:
      a copy of the SerializationParameters instance