final class RichXMLStreamReader2 extends AnyVal

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RichXMLStreamReader2
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new RichXMLStreamReader2(sr: XMLStreamReader2)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##(): Int
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def foreach[U](path: String)(f: ⇒ U): Unit

    Call f() for every START_ELEMENT that satisfies the XPath-like path.

    Call f() for every START_ELEMENT that satisfies the XPath-like path.

    Annotations
    @inline()
  6. def getAttributeValue(name: String): String
  7. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  8. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  9. def readChildElementText(name: String): String
  10. def readElementAsXMLString(): String
  11. def readElementText(): String

    Read the contents of an Element.

    Read the contents of an Element. Only works at the START_ELEMENT and if the element has no other nested elements

  12. def require(cond: Boolean, msg: ⇒ String): Unit
    Annotations
    @inline()
  13. def requireEither(one: Int, two: Int): Unit
  14. def requireNot(tpe: Int): Unit

    Opposite of XMLStreamReader.require()

  15. def seekFirstEventPastRootElement(expectedName: String): Unit

    Seek to the first parsing event after the START_ELEMENT of the root tag after verifying the root tag name

  16. def seekFirstEventPastRootElement(): Unit

    Seek to the first parsing event after the START_ELEMENT of the root tag

  17. def seekToAnyMatching(name: String): Int

    Seek to the first element with name (at any depth)

    Seek to the first element with name (at any depth)

    Returns the depth that the element was found at

  18. def seekToChildElement(name: String): Unit
  19. def seekToChildElement(): Unit
  20. def seekToEndOfParentElement(): Unit
  21. def seekToRootElement(expectedName: String): Unit

    Given a freshly opened XMLStreamReader2, move to the START_ELEMENT of the ROOT element (skipping stuff like DTDs) and require that the root name be the expectedName

  22. def seekToRootElement(): Unit

    Given a freshly opened XMLStreamReader2, move to the START_ELEMENT of the ROOT element (skipping stuff like DTDs)

  23. def seekToSiblingElement(name: String): Unit

    Seek to the first sibling element (the first START_ELEMENT at the current depth) that matching name

    Seek to the first sibling element (the first START_ELEMENT at the current depth) that matching name

    e.g.

    <root> <foo> <bar></bar> <target>We don't want this</target> </foo> <target>This is what we want</target> </root>

    A call to seekFirstEventPastRootElement leaves us just after the <root> element. Then a call to seekToSiblingElement("target") will skip <foo> and the nested <bar> and <target> elements and end up on the second <target> element that is a sibling to <foo>

  24. def seekToSiblingElement(): Unit
  25. val sr: XMLStreamReader2
  26. def toString(): String
    Definition Classes
    Any
  27. def tryReadChildElementText(name: String): Option[String]
  28. def trySeekToChildElement(name: String): Boolean
  29. def trySeekToChildElement(): Boolean
  30. def trySeekToSiblingElement(name: String): Boolean
  31. def trySeekToSiblingElement(): Boolean

Inherited from AnyVal

Inherited from Any

Ungrouped