com.codecommit.antixml

XMLConvertable

object XMLConvertable extends SecondPrecedenceConvertables

Contains the built-in explicit conversions into Anti-XML. Currently, these conversions only cover types in scala.xml. This may be expanded in future.

All of the members in this object are implicit, and thus it is rare for a user to need to access them directly. The membership is contrived in such a way that the implicit resolution will use the following precedence order:

This corresponds with the roughly-intuitive conversion precedence. Thus, if we have a value of type scala.xml.Elem and we invoke the convert method on that value, the result will be of type com.codecommit.antixml.Elem. However, if we take that same value and ascribe it the type of scala.xml.Node, the convert method will return a value of type com.codecommit.antixml.Node. Finally, we can take this same value and ascribe it the even less-specific type of scala.xml.NodeSeq (or even scala.Seq[scala.xml.Node], for that matter). Invoking the convert method on this maximally-widened type will produce a value of type com.codecommit.antixml.Group[com.codecommit.antixml.Node]. Thus, the most specific conversion is chosen in all cases.

Source
conversion.scala
Linear Supertypes
SecondPrecedenceConvertables, ThirdPrecedenceConvertables, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. XMLConvertable
  2. SecondPrecedenceConvertables
  3. ThirdPrecedenceConvertables
  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. implicit object ElemConvertable extends XMLConvertable[scala.xml.Elem, Elem]

  5. implicit object EntityRefConvertable extends XMLConvertable[scala.xml.EntityRef, EntityRef]

  6. implicit object NodeConvertable extends XMLConvertable[scala.xml.Node, Node]

    Definition Classes
    SecondPrecedenceConvertables
  7. implicit object NodeSeqConvertable extends XMLConvertable[Seq[scala.xml.Node], Group[Node]]

    Definition Classes
    ThirdPrecedenceConvertables
  8. implicit object TextConvertable extends XMLConvertable[Atom[String], Text]

  9. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  10. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  13. def finalize(): Unit

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

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

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

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

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

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

    Definition Classes
    AnyRef
  20. def scope2stream(nb: scala.xml.NamespaceBinding): Stream[scala.xml.NamespaceBinding]

  21. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  22. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from SecondPrecedenceConvertables

Inherited from ThirdPrecedenceConvertables

Inherited from AnyRef

Inherited from Any

Ungrouped