class XerDecoder extends AnyRef
Schema-driven XER decoder using StAX pull parsing.
Both Basic XER (BXER) and Canonical XER (CXER) are supported — the only difference visible at the record level is whitespace handling, which StAX normalises for us.
Mapping summary (X.693):
- NULL → empty element, produces null
- BOOLEAN → <true/> or <false/>
- INTEGER → element text content parsed as Long
- ENUMERATED → element text is the symbolic name
- OCTET STRING → hex-encoded text (pairs of hex digits)
- BIT STRING (unnamed) → hex-encoded text of the padded bytes
- BIT STRING (named) → named-bit list struct (_bytes + _namedBits)
- String types → element text content
- OBJECT IDENTIFIER → dot-notation text (e.g. "1.2.840.10045.2.1")
- SEQUENCE / SET → child elements keyed by field name
- SEQUENCE OF / SET OF → repeated child elements of any tag
- CHOICE → single child element whose tag names the active alternative
- Tagged types → inner type decoded (tags invisible in XER)
- Source
- XerDecoder.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- XerDecoder
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new XerDecoder(registry: SchemaRegistry, moduleName: String, enumeratedAsInt: Boolean = false)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def decodeXml(xml: String, schema: Asn1Type, requiredNames: Set[String] = Set.empty): InternalRow
Decode one XER record supplied as an XML string (the full element, e.g.
Decode one XER record supplied as an XML string (the full element, e.g.
<MyMessage>...</MyMessage>). - final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)