eu.cdevreeze.yaidom.convert

DomToYaidomConversions

trait DomToYaidomConversions extends ConverterToDocument[org.w3c.dom.Document]

Converter from DOM nodes to yaidom nodes, in particular from org.w3c.dom.Element to eu.cdevreeze.yaidom.Elem and from org.w3c.dom.Document to eu.cdevreeze.yaidom.Document.

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

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

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

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  8. final def convertToComment(v: org.w3c.dom.Comment): Comment

    Converts an org.w3c.dom.Comment to a eu.cdevreeze.yaidom.Comment

  9. final def convertToDocument(v: org.w3c.dom.Document): Document

    Converts an org.w3c.dom.Document to a eu.cdevreeze.yaidom.Document.

    Converts an org.w3c.dom.Document to a eu.cdevreeze.yaidom.Document.

    Definition Classes
    DomToYaidomConversionsConverterToDocument
  10. final def convertToElem(v: Element, parentScope: Scope): Elem

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

    Given a parent scope, converts an org.w3c.dom.Element to a eu.cdevreeze.yaidom.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.

  11. final def convertToEntityRef(v: EntityReference): EntityRef

    Converts an org.w3c.dom.EntityReference to a eu.cdevreeze.yaidom.EntityRef

  12. final def convertToNodeOption(v: org.w3c.dom.Node, parentScope: Scope): Option[Node]

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

    Given a parent scope, converts an org.w3c.dom.Node to an optional eu.cdevreeze.yaidom.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.

  13. final def convertToProcessingInstruction(v: org.w3c.dom.ProcessingInstruction): ProcessingInstruction

    Converts an org.w3c.dom.ProcessingInstruction to a eu.cdevreeze.yaidom.ProcessingInstruction

  14. final def convertToText(v: org.w3c.dom.Text): Text

    Converts an org.w3c.dom.Text to a eu.cdevreeze.yaidom.Text

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

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

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

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

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

  18. final def extractNamespaceDeclaration(v: Attr): (Option[String], String)

    Extracts (optional) prefix and namespace.

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

  19. final def extractNamespaceDeclarations(domAttributes: NamedNodeMap): Declarations

    Converts the namespace declarations in a NamedNodeMap to a Declarations

  20. def finalize(): Unit

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

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

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

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

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

  25. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  26. final def nodeListToIndexedSeq(nodeList: NodeList): IndexedSeq[org.w3c.dom.Node]

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

  27. final def notify(): Unit

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

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

    Definition Classes
    AnyRef
  30. final def toQName(v: Attr): QName

    Extracts the QName of an org.w3c.dom.Attr.

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

  31. final def toQName(v: Element): QName

    Extracts the QName of an org.w3c.dom.Element

  32. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from ConverterToDocument[org.w3c.dom.Document]

Inherited from AnyRef

Inherited from Any

Ungrouped