Packages

object ContentParsers

An object containing functions for parsing extracted content. They can be used together with the DSL extractor method or by calling map on a HtmlExtractor with them.

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

Type Members

  1. class AsDateTime extends AsJodaTime[DateTime]

    A content parser with extra options for parsing DateTimes.

  2. class AsJodaTime[A] extends (String) => A

    A content parser with extra options for parsing joda-time models.

  3. class AsLocalDate extends AsJodaTime[LocalDate]

    A content parser with extra options for parsing LocalDates.

  4. class RegexMatch extends (String) => String

    A content parser with extra options for the retrieval of the first match of a regex.

  5. class RegexMatches extends (String) => Iterator[String]

    A content parser with extra options for the retrieval of all the matches of a regex.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def asDateTime(formats: String*): AsDateTime

    Parses text content as a DateTime using one of a list of formats.

    Parses text content as a DateTime using one of a list of formats.

    formats

    the list of possible date formats

    returns

    a content parser for parsing text content as a DateTime.

  5. val asDouble: (String) => Double

    Parses text content as a Double value.

  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. val asInt: (String) => Int

    Parses text content as an Int value.

  8. def asIs[C]: (C) => C

    Leaves the extracted content as is.

  9. def asLocalDate(formats: String*): AsLocalDate

    Parses text content as a LocalDate using one of a list of formats.

    Parses text content as a LocalDate using one of a list of formats.

    formats

    the list of possible date formats

    returns

    a content parser for parsing text content as a DateTime.

  10. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  13. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  14. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @native()
  19. def regexMatch(regex: Regex): RegexMatch

    Matches text content against a regex and returns the first match.

    Matches text content against a regex and returns the first match.

    regex

    the regex to match the text content against

    returns

    a content parser for matching text content against a regex and returning the first match.

  20. def regexMatch(regex: String): RegexMatch

    Matches text content against a regex and returns the first match.

    Matches text content against a regex and returns the first match.

    regex

    the regex to match the text content against

    returns

    a content parser for matching text content against a regex and returning the first match.

  21. def regexMatches(regex: Regex): RegexMatches

    Matches text content against a regex and returns all the matches.

    Matches text content against a regex and returns all the matches.

    regex

    the regex to match the text content against

    returns

    a content parser for matching text content against a regex and returning all the matches.

  22. def regexMatches(regex: String): RegexMatches

    Matches text content against a regex and returns all the matches.

    Matches text content against a regex and returns all the matches.

    regex

    the regex to match the text content against

    returns

    a content parser for matching text content against a regex and returning all the matches.

  23. def seq[C, A](parser: (C) => A): (TraversableOnce[C]) => TraversableOnce[A]

    Lifts a content parser to work on sequences of elements.

    Lifts a content parser to work on sequences of elements.

    parser

    the content parser to lift

    returns

    a content parser for parsing a sequence of elements by applying parser to each of them.

  24. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  25. def toString(): String
    Definition Classes
    AnyRef → Any
  26. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  27. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  28. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from AnyRef

Inherited from Any

Ungrouped