Trait

com.lucidchart.open.xtract

DefaultXmlReaders

Related Doc: package xtract

Permalink

trait DefaultXmlReaders extends AnyRef

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. DefaultXmlReaders
  2. AnyRef
  3. 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. def any[T](reader0: XmlReader[T], readers: XmlReader[T]*): XmlReader[T]

    Permalink

    An XmlReader that succeeds if any of the supplied readers succeeds with the input.

  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def at[A](path: XPath)(implicit reader: XmlReader[A]): XmlReader[A]

    Permalink

    An XmlReader that applies reader to the NodeSeq located at the XPath path.

  7. def attribute[A](name: String)(implicit reader: XmlReader[A]): XmlReader[A]

    Permalink

    An XmlReader that extracts a value from the attribute of the input NodeSeq.

  8. implicit val booleanReader: XmlReader[Boolean]

    Permalink

    XmlReader that gets the text of a single node as a boolean

  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. implicit val doubleReader: XmlReader[Double]

    Permalink

    XmlReader that gets the text of a single node as a double.

  11. implicit def enum[T <: Enumeration](e: T): XmlReader[enum.T.Value]

    Permalink

    XmlReader that extracts an enumeration value from a NodeSeq.

    XmlReader that extracts an enumeration value from a NodeSeq. It attempts to match the text of the node to the string value of one of the enumeration values.

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  14. def fail(error: ParseError): XmlReader[Nothing]

    Permalink

    returns

    An XmlReader that always fails with error

  15. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. def first[T](implicit reader: XmlReader[T]): XmlReader[T]

    Permalink

    An XmlReader that extracts the first node of the NodeSeq

  17. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  19. implicit val identityReader: XmlReader[NodeSeq]

    Permalink

    Identity XmlReader that just extracts the NodeSeq it is passed.

  20. implicit val intReader: XmlReader[Int]

    Permalink

    XmlReader that gets the text of a single node as an int

  21. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  22. def label[A](name: String)(implicit reader: XmlReader[A]): XmlReader[A]

    Permalink

    An XmlReader that extracts Nodes with a tag label of name and then applies reader.

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

    Permalink
    Definition Classes
    AnyRef
  24. implicit val nodeReader: XmlReader[Node]

    Permalink

    XmlReader that matches exactly one XML node.

    XmlReader that matches exactly one XML node.

    If the input NodeSeq is empty, return ParseFailure(EmptyError()), If the input NodeSeq contains multiple nodes return ParseFailure(MultipleMatchesError()).

  25. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  27. def nth[T](n: Int)(implicit reader: XmlReader[T]): XmlReader[T]

    Permalink

    An XmlReader that extracts the nth node of the NodeSeq

  28. implicit def optionReader[T](implicit reader: XmlReader[T]): XmlReader[Option[T]]

    Permalink

    Implicit XmlReader for an Option.

    Implicit XmlReader for an Option. This XmlReader will always succeed. If reader succeeds, the XmlReader will obtain a Some, otherwise it will be None

  29. def pure[A](a: ⇒ A): XmlReader[A]

    Permalink

    Wrap a value in an XmlReader.

    Wrap a value in an XmlReader.

    returns

    An XmlReader that always succeeds with a

  30. def seq[A](implicit reader: XmlReader[A]): XmlReader[Seq[A]]

    Permalink

    Read each node in the NodeSeq with reader, and succeeds with a PartialParseSuccess if any of the elements fails.

    Read each node in the NodeSeq with reader, and succeeds with a PartialParseSuccess if any of the elements fails.

    Use strictReadSeq if you want to fail on nodes that don't parse

  31. val spaceDelimitedArray: XmlReader[Array[String]]

    Permalink

    An XmlReader for extracting space delimited lists of values as an Array of strings.

  32. def strictReadSeq[A](implicit reader: XmlReader[A]): XmlReader[Seq[A]]

    Permalink

    Like seq but fail if any nodes fail the reader.

  33. implicit val stringReader: XmlReader[String]

    Permalink

    XmlReader matches the text of a single node.

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

    Permalink
    Definition Classes
    AnyRef
  35. def toString(): String

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

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped