eu.cdevreeze.yaidom.convert

ScalaXmlToYaidomConversions

trait ScalaXmlToYaidomConversions extends ConverterToDocument[Document] with ConverterToElem[Elem]

Converter from Scala XML nodes to yaidom nodes, in particular from scala.xml.Elem to eu.cdevreeze.yaidom.simple.Elem and from scala.xml.Document to eu.cdevreeze.yaidom.simple.Document.

This converter is handy when one wants to use XML literals (as offered by standard Scala XML) in combination with yaidom.

This converter regards the input more like an "Elem" than an "ElemBuilder", in that scopes instead of namespace declarations are extracted from input "elements", and in that conversions to yaidom Elems do not take any additional parent scope parameter. On the other hand, Scala XML NamespaceBindings try to be a bit of both yaidom Scopes and yaidom Declarations.

Beware that conversions from Scala XML Elems to yaidom Elems will fail if the Scala XML Elem uses namespaces in element and/or attribute names that have not been declared!

Linear Supertypes
ConverterToElem[Elem], ConverterToDocument[Document], AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ScalaXmlToYaidomConversions
  2. ConverterToElem
  3. ConverterToDocument
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def convertToCData(v: PCData): Text

    Converts an scala.xml.PCData to a eu.cdevreeze.yaidom.simple.Text

  7. final def convertToComment(v: Comment): Comment

    Converts an scala.xml.Comment to a eu.cdevreeze.yaidom.simple.Comment

  8. final def convertToDocument(v: Document): Document

    Converts an scala.xml.Document to a eu.cdevreeze.yaidom.simple.Document.

    Converts an scala.xml.Document to a eu.cdevreeze.yaidom.simple.Document. The resulting yaidom Document has no document URI.

    If the input Scala XML Document is not namespace-valid, an exception will be thrown.

    Definition Classes
    ScalaXmlToYaidomConversionsConverterToDocument
  9. final def convertToElem(v: Elem): Elem

    Converts an scala.xml.Elem to an eu.cdevreeze.yaidom.simple.Elem.

    Converts an scala.xml.Elem to an eu.cdevreeze.yaidom.simple.Elem.

    If the input Scala XML Elem is not namespace-valid, an exception will be thrown.

    Definition Classes
    ScalaXmlToYaidomConversionsConverterToElem
  10. final def convertToEntityRef(v: EntityRef): EntityRef

    Converts an scala.xml.EntityRef to a eu.cdevreeze.yaidom.simple.EntityRef

  11. final def convertToNodeOption(v: Node): Option[Node]

    Converts an scala.xml.Node to an optional eu.cdevreeze.yaidom.simple.Node.

  12. final def convertToProcessingInstruction(v: ProcInstr): ProcessingInstruction

    Converts an scala.xml.ProcInstr to a eu.cdevreeze.yaidom.simple.ProcessingInstruction

  13. final def convertToText(v: Text): Text

    Converts an scala.xml.Text to a eu.cdevreeze.yaidom.simple.Text

  14. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  15. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  16. final def extractAttributes(attrs: MetaData): IndexedSeq[(QName, String)]

    Converts attributes, given as scala.xml.MetaData, to an immutable.IndexedSeq[(QName, String)].

  17. final def extractScope(scope: NamespaceBinding): Scope

    Converts the scala.xml.NamespaceBinding to a yaidom Scope.

    Converts the scala.xml.NamespaceBinding to a yaidom Scope.

    This implementation is brittle because of bug: SI 6939: Namespace binding (xmlns) is duplicated if a child redefines a prefix. (see https://issues.scala-lang.org/browse/SI-6939 and https://github.com/scala/scala/pull/1858). Still, this implementation tries to work around that bug.

  18. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  19. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  20. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  21. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  22. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  23. final def notify(): Unit

    Definition Classes
    AnyRef
  24. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  25. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  26. final def toQName(v: MetaData)(implicit qnameProvider: QNameProvider): QName

    Extracts the QName of an attribute as scala.xml.MetaData.

  27. final def toQName(v: Elem)(implicit qnameProvider: QNameProvider): QName

    Extracts the QName of an scala.xml.Elem

  28. def toString(): String

    Definition Classes
    AnyRef → Any
  29. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from ConverterToElem[Elem]

Inherited from ConverterToDocument[Document]

Inherited from AnyRef

Inherited from Any

Ungrouped