XmlReadSettings Class
- java.
lang. Object - com.
azure. analytics. synapse. artifacts. models. FormatReadSettings - com.
azure. analytics. synapse. artifacts. models. XmlReadSettings
- com.
- com.
public final class XmlReadSettings
extends FormatReadSettings
Xml read settings.
Constructor Summary
| Constructor | Description |
|---|---|
| XmlReadSettings() |
Creates an instance of Xml |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Xml |
fromJson(JsonReader jsonReader)
Reads an instance of Xml |
|
Compression |
getCompressionProperties()
Get the compression |
| Object |
getDetectDataType()
Get the detect |
| Object |
getNamespacePrefixes()
Get the namespace |
| Object |
getNamespaces()
Get the namespaces property: Indicates whether namespace is enabled when reading the xml files. |
| String |
getType()
Get the type property: The read setting type. |
| Object |
getValidationMode()
Get the validation |
|
Xml |
setCompressionProperties(CompressionReadSettings compressionProperties)
Set the compression |
|
Xml |
setDetectDataType(Object detectDataType)
Set the detect |
|
Xml |
setNamespacePrefixes(Object namespacePrefixes)
Set the namespace |
|
Xml |
setNamespaces(Object namespaces)
Set the namespaces property: Indicates whether namespace is enabled when reading the xml files. |
|
Xml |
setValidationMode(Object validationMode)
Set the validation |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from FormatReadSettings
Methods inherited from java.lang.Object
Constructor Details
XmlReadSettings
public XmlReadSettings()
Creates an instance of XmlReadSettings class.
Method Details
fromJson
public static XmlReadSettings fromJson(JsonReader jsonReader)
Reads an instance of XmlReadSettings from the JsonReader.
Parameters:
Returns:
Throws:
getCompressionProperties
public CompressionReadSettings getCompressionProperties()
Get the compressionProperties property: Compression settings.
Returns:
getDetectDataType
public Object getDetectDataType()
Get the detectDataType property: Indicates whether type detection is enabled when reading the xml files. Type: boolean (or Expression with resultType boolean).
Returns:
getNamespacePrefixes
public Object getNamespacePrefixes()
Get the namespacePrefixes property: Namespace uri to prefix mappings to override the prefixes in column names when namespace is enabled, if no prefix is defined for a namespace uri, the prefix of xml element/attribute name in the xml data file will be used. Example: "{"http://www.example.com/xml":"prefix"}" Type: object (or Expression with resultType object).
Returns:
getNamespaces
public Object getNamespaces()
Get the namespaces property: Indicates whether namespace is enabled when reading the xml files. Type: boolean (or Expression with resultType boolean).
Returns:
getType
public String getType()
Get the type property: The read setting type.
Overrides:
XmlReadSettings.getType()Returns:
getValidationMode
public Object getValidationMode()
Get the validationMode property: Indicates what validation method is used when reading the xml files. Allowed values: 'none', 'xsd', or 'dtd'. Type: string (or Expression with resultType string).
Returns:
setCompressionProperties
public XmlReadSettings setCompressionProperties(CompressionReadSettings compressionProperties)
Set the compressionProperties property: Compression settings.
Parameters:
Returns:
setDetectDataType
public XmlReadSettings setDetectDataType(Object detectDataType)
Set the detectDataType property: Indicates whether type detection is enabled when reading the xml files. Type: boolean (or Expression with resultType boolean).
Parameters:
Returns:
setNamespacePrefixes
public XmlReadSettings setNamespacePrefixes(Object namespacePrefixes)
Set the namespacePrefixes property: Namespace uri to prefix mappings to override the prefixes in column names when namespace is enabled, if no prefix is defined for a namespace uri, the prefix of xml element/attribute name in the xml data file will be used. Example: "{"http://www.example.com/xml":"prefix"}" Type: object (or Expression with resultType object).
Parameters:
Returns:
setNamespaces
public XmlReadSettings setNamespaces(Object namespaces)
Set the namespaces property: Indicates whether namespace is enabled when reading the xml files. Type: boolean (or Expression with resultType boolean).
Parameters:
Returns:
setValidationMode
public XmlReadSettings setValidationMode(Object validationMode)
Set the validationMode property: Indicates what validation method is used when reading the xml files. Allowed values: 'none', 'xsd', or 'dtd'. Type: string (or Expression with resultType string).
Parameters:
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
XmlReadSettings.toJson(JsonWriter jsonWriter)Parameters:
Throws: