Package

com.lucidchart.open

xtract

Permalink

package xtract

Created by thayne on 2/2/15.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. xtract
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. case class AttributedXPathNode(attr: String, value: Option[String]) extends XPathNode with Product with Serializable

    Permalink
  2. final class CollectionFactory[-A, +C] extends AnyVal

    Permalink

    Shim for compatibility between scala 2.11/2.12 and 2.13

  3. trait DefaultXmlReaders extends AnyRef

    Permalink
  4. trait DoubleReaderExtensions extends AnyRef

    Permalink
  5. case class EmptyError(path: XPath = XPath) extends PathError with Product with Serializable

    Permalink

    A PathError indicating that the path was missing.

  6. case class IdxXPathNode(idx: Int) extends XPathNode with Product with Serializable

    Permalink
  7. trait IterableReaderExtensions extends AnyRef

    Permalink
  8. case class KeyXPathNode(key: String) extends XPathNode with Product with Serializable

    Permalink
  9. case class MinCountError(atLeast: Int) extends ValidationError with Product with Serializable

    Permalink

    A ValidationError indicating there weren't enough entries.

  10. case class MismatchedLabelError(label: String, path: XPath = XPath) extends PathError with Product with Serializable

    Permalink

    A PathError indicating that the node(s) at the specified path did not have the expected tag label.

  11. case class MultipleMatchesError(path: XPath = XPath) extends PathError with Product with Serializable

    Permalink

    A PathError indicating that the path matched multiple nodes, and only one was expected.

  12. trait ParseError extends AnyRef

    Permalink

    Top level types for errors encountered while reading xml with an XmlReader.

  13. case class ParseFailure(errors: Seq[ParseError]) extends ParseResult[Nothing] with Product with Serializable

    Permalink

    A ParseResult indicating a failed

  14. sealed trait ParseResult[+A] extends AnyRef

    Permalink

    Trait containing the result of an XmlReader.

    Trait containing the result of an XmlReader. It can contain one of the following:

    • ParseSuccess indicates a completely successful result
    • ParseFailure indicates a completely failed result
    • PartialParseSuccess indicates there were recoverable errors and contains both the result and a list of errors that occurred.
  15. case class ParseSuccess[+A](get: A) extends ParseResult[A] with Product with Serializable

    Permalink

    A ParseResult indicating a completely successful parse.

  16. case class PartialParseSuccess[+A](get: A, errors: Seq[ParseError]) extends ParseResult[A] with Product with Serializable

    Permalink

    A ParseResult indicating a successful parse that had recoverable errors.

    A ParseResult indicating a successful parse that had recoverable errors.

    Contains both a result value and a list of errors.

  17. trait PathError extends ValidationError

    Permalink

    A ValidationError indicating that the input NodeSeq didn't have the expected XPath.

  18. case class RangeError[T](min: T, max: T) extends ValidationError with Product with Serializable

    Permalink

    A ValidationError indicating the value was outside the expected range.

  19. case class RecursiveWildCardXPathNode(regex: Regex) extends XPathNode with Product with Serializable

    Permalink
  20. case class RecursiveXPathNode(key: String) extends XPathNode with Product with Serializable

    Permalink
  21. case class TypeError[A](tp: Class[A]) extends ValidationError with Product with Serializable

    Permalink

    A ValidationError indicating that the input wasn't the correct type.

    A ValidationError indicating that the input wasn't the correct type. For example, if an integer was expected, but the input text couldn't be parsed as an integer.

    tp

    The Class opject for the expected type.

  22. trait ValidationError extends ParseError

    Permalink

    A ParseError caused by some sort of failed validation.

  23. case class WildCardXPathNode(regex: Regex) extends XPathNode with Product with Serializable

    Permalink
  24. case class XPath(path: List[XPathNode] = Nil) extends Product with Serializable

    Permalink

    Class representing an xpath.

    Class representing an xpath. It can be applied to a NodeSeq to get a NodeSeq located at that path.

    path

    A sequence of XPathNodes to recursively walk down the XML tree to the location of the path.

  25. sealed trait XPathNode extends Function[NodeSeq, NodeSeq]

    Permalink
  26. trait XmlReader[+A] extends AnyRef

    Permalink

    An abstraction for a function that takes a NodeSeq and returns a ParseResult.

    An abstraction for a function that takes a NodeSeq and returns a ParseResult.

    It is used to parse XML to arbitrary scala objects, and supports combinatorial syntax to easily compose XmlReaders into new XmlReaders.

  27. trait XmlReaderExtensions extends IterableReaderExtensions with DoubleReaderExtensions

    Permalink

Value Members

  1. object CollectionFactory

    Permalink
  2. object ParseFailure extends Serializable

    Permalink
  3. object ParseResult

    Permalink
  4. object XPath extends XPath

    Permalink

    The root XPath path.

  5. object XmlReader extends DefaultXmlReaders with XmlReaderExtensions

    Permalink
  6. val __: XPath.type

    Permalink

    Alias for the root XPath

Inherited from AnyRef

Inherited from Any

Ungrouped