Object

eu.cdevreeze.yaidom.convert

JsDomConversions

Related Doc: package convert

Permalink

object JsDomConversions extends JsDomToYaidomConversions

Conversions between yaidom nodes and JS DOM nodes.

TODO Conversion from yaidom to JS DOM.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. JsDomConversions
  2. JsDomToYaidomConversions
  3. ConverterToDocument
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

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

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

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

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

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def convertToComment(v: Comment): Comment

    Permalink

    Converts an org.scalajs.dom.raw.Comment to a eu.cdevreeze.yaidom.simple.Comment

    Converts an org.scalajs.dom.raw.Comment to a eu.cdevreeze.yaidom.simple.Comment

    Definition Classes
    JsDomToYaidomConversions
  7. final def convertToDocument(v: Document): Document

    Permalink

    Converts an org.scalajs.dom.raw.Document to a eu.cdevreeze.yaidom.simple.Document.

    Converts an org.scalajs.dom.raw.Document to a eu.cdevreeze.yaidom.simple.Document.

    Definition Classes
    JsDomToYaidomConversionsConverterToDocument
  8. final def convertToElem(v: Element, parentScope: Scope): Elem

    Permalink

    Given a parent scope, converts an org.scalajs.dom.raw.Element to a eu.cdevreeze.yaidom.simple.Elem.

    Given a parent scope, converts an org.scalajs.dom.raw.Element to a eu.cdevreeze.yaidom.simple.Elem.

    The result Elem gets Scope parentScope.resolve(extractNamespaceDeclarations(v.getAttributes)).

    Be careful: the namespaces inherited by the passed DOM element, if any, are ignored! In other words, the ancestry of the passed DOM element is entirely ignored. This may cause an exception to be thrown, if there are indeed such namespaces, unless they are a subset of the passed parent scope.

    Definition Classes
    JsDomToYaidomConversions
  9. final def convertToNodeOption(v: Node, parentScope: Scope): Option[Node]

    Permalink

    Given a parent scope, converts an org.scalajs.dom.raw.Node to an optional eu.cdevreeze.yaidom.simple.Node.

    Given a parent scope, converts an org.scalajs.dom.raw.Node to an optional eu.cdevreeze.yaidom.simple.Node.

    In case of an element, the result Elem (wrapped in an Option) gets Scope parentScope.resolve(extractNamespaceDeclarations(v.getAttributes)).

    Be careful: the namespaces inherited by the passed DOM node, if any, are ignored! In other words, the ancestry of the passed DOM node is entirely ignored. This may cause an exception to be thrown, if there are indeed such namespaces, unless they are a subset of the passed parent scope.

    Definition Classes
    JsDomToYaidomConversions
  10. final def convertToProcessingInstruction(v: ProcessingInstruction): ProcessingInstruction

    Permalink

    Converts an org.scalajs.dom.raw.ProcessingInstruction to a eu.cdevreeze.yaidom.simple.ProcessingInstruction

    Converts an org.scalajs.dom.raw.ProcessingInstruction to a eu.cdevreeze.yaidom.simple.ProcessingInstruction

    Definition Classes
    JsDomToYaidomConversions
  11. final def convertToText(v: Text): Text

    Permalink

    Converts an org.scalajs.dom.raw.Text to a eu.cdevreeze.yaidom.simple.Text

    Converts an org.scalajs.dom.raw.Text to a eu.cdevreeze.yaidom.simple.Text

    Definition Classes
    JsDomToYaidomConversions
  12. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  14. final def extractAttributes(domAttributes: NamedNodeMap): IndexedSeq[(QName, String)]

    Permalink

    Converts a NamedNodeMap to an immutable.IndexedSeq[(QName, String)].

    Converts a NamedNodeMap to an immutable.IndexedSeq[(QName, String)]. Namespace declarations are skipped.

    Definition Classes
    JsDomToYaidomConversions
  15. final def extractNamespaceDeclaration(v: Attr): (Option[String], String)

    Permalink

    Extracts (optional) prefix and namespace.

    Extracts (optional) prefix and namespace. Call only if isNamespaceDeclaration(v), since otherwise an exception is thrown.

    Definition Classes
    JsDomToYaidomConversions
  16. final def extractNamespaceDeclarations(domAttributes: NamedNodeMap): Declarations

    Permalink

    Converts the namespace declarations in a NamedNodeMap to a Declarations

    Converts the namespace declarations in a NamedNodeMap to a Declarations

    Definition Classes
    JsDomToYaidomConversions
  17. final def extractResolvedAttributes(domAttributes: NamedNodeMap): IndexedSeq[(EName, String)]

    Permalink

    Converts a NamedNodeMap to an immutable.IndexedSeq[(EName, String)].

    Converts a NamedNodeMap to an immutable.IndexedSeq[(EName, String)]. Namespace declarations are skipped.

    Definition Classes
    JsDomToYaidomConversions
  18. def finalize(): Unit

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

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

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

    Permalink
    Definition Classes
    Any
  22. final def isNamespaceDeclaration(v: Attr): Boolean

    Permalink

    Returns true if the org.scalajs.dom.raw.Attr is a namespace declaration

    Returns true if the org.scalajs.dom.raw.Attr is a namespace declaration

    Definition Classes
    JsDomToYaidomConversions
  23. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  24. final def nodeListToIndexedSeq(nodeList: NodeList): IndexedSeq[Node]

    Permalink

    Helper method that converts a NodeList to an IndexedSeq[org.scalajs.dom.raw.Node]

    Helper method that converts a NodeList to an IndexedSeq[org.scalajs.dom.raw.Node]

    Definition Classes
    JsDomToYaidomConversions
  25. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  26. final def notifyAll(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  28. final def toEName(v: Attr)(implicit enameProvider: ENameProvider): EName

    Permalink

    Extracts the EName of an org.scalajs.dom.raw.Attr.

    Extracts the EName of an org.scalajs.dom.raw.Attr. If the Attr is a namespace declaration, an exception is thrown.

    Definition Classes
    JsDomToYaidomConversions
  29. final def toEName(v: Element)(implicit enameProvider: ENameProvider): EName

    Permalink

    Extracts the EName of an org.scalajs.dom.raw.Element

    Extracts the EName of an org.scalajs.dom.raw.Element

    Definition Classes
    JsDomToYaidomConversions
  30. final def toQName(v: Attr)(implicit qnameProvider: QNameProvider): QName

    Permalink

    Extracts the QName of an org.scalajs.dom.raw.Attr.

    Extracts the QName of an org.scalajs.dom.raw.Attr. If the Attr is a namespace declaration, an exception is thrown.

    Definition Classes
    JsDomToYaidomConversions
  31. final def toQName(v: Element)(implicit qnameProvider: QNameProvider): QName

    Permalink

    Extracts the QName of an org.scalajs.dom.raw.Element

    Extracts the QName of an org.scalajs.dom.raw.Element

    Definition Classes
    JsDomToYaidomConversions
  32. def toString(): String

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from JsDomToYaidomConversions

Inherited from ConverterToDocument[Document]

Inherited from AnyRef

Inherited from Any

Ungrouped