io.fintrospect.parameters

Parameters

class Parameters[P[_]] extends AnyRef

Prototype functions for creating parameters of various types.

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Parameters
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Parameters(builder: ParameterBuilder[P])

    Attributes
    protected[io.fintrospect.parameters]

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 bigDecimal(name: String, description: String = null): P[BigDecimal]

    Create a BigDecimal parameter which is constrained to numeric values

    Create a BigDecimal parameter which is constrained to numeric values

    name

    the name of the parameter (for use in description endpoints)

    description

    optional description of the parameter (for use in description endpoints)

    returns

    a parameter for retrieving a BigDecimal value from the request

  8. def boolean(name: String, description: String = null): P[Boolean]

    Create a Boolean parameter which is constrained to boolean values

    Create a Boolean parameter which is constrained to boolean values

    name

    the name of the parameter (for use in description endpoints)

    description

    optional description of the parameter (for use in description endpoints)

    returns

    a parameter for retrieving a Boolean value from the request

  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def custom[T](name: String, attemptToParse: (String) ⇒ Try[T], description: String = null): P[T]

    Create a parameter of a custom type.

    Create a parameter of a custom type. This will hook into pre-request validation (in terms of optional/mandatory parameters)

    T

    the type of the parameter

    name

    the name of the parameter (for use in description endpoints)

    attemptToParse

    function to take the input string from the request and attempt to construct a deserialized instance

    description

    optional description of the parameter (for use in description endpoints)

    returns

    a parameter for retrieving a value of type [T] from the request

  11. def dateTime(name: String, description: String = null): P[LocalDateTime]

    Create a LocalDateTime parameter which is constrained by the format YYYY-MM-DDTHH:mm:SS

    Create a LocalDateTime parameter which is constrained by the format YYYY-MM-DDTHH:mm:SS

    name

    the name of the parameter (for use in description endpoints)

    description

    optional description of the parameter (for use in description endpoints)

    returns

    a parameter for retrieving a LocalDateTime value from the request

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

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

    Definition Classes
    AnyRef → Any
  14. def finalize(): Unit

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

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

    Definition Classes
    AnyRef → Any
  17. def int(name: String, description: String = null): P[Int]

    Create a Scala Int parameter which is constrained to numeric Int values

    Create a Scala Int parameter which is constrained to numeric Int values

    name

    the name of the parameter (for use in description endpoints)

    description

    optional description of the parameter (for use in description endpoints)

    returns

    a parameter for retrieving a Int value from the request

  18. def integer(name: String, description: String = null): P[Integer]

    Create a Java Integer parameter which is constrained to numeric Integer values

    Create a Java Integer parameter which is constrained to numeric Integer values

    name

    the name of the parameter (for use in description endpoints)

    description

    optional description of the parameter (for use in description endpoints)

    returns

    a parameter for retrieving a Integer value from the request

  19. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  20. def json(name: String, description: String = null): P[JsonNode]

    Create a Argo-format JsonNode parameter which is constrained to values which parse to valid JSON objects

    Create a Argo-format JsonNode parameter which is constrained to values which parse to valid JSON objects

    name

    the name of the parameter (for use in description endpoints)

    description

    optional description of the parameter (for use in description endpoints)

    returns

    a parameter for retrieving a JsonNode value from the request

  21. def localDate(name: String, description: String = null): P[LocalDate]

    Create a LocalDate parameter which is constrained by the format YYYY-MM-DD

    Create a LocalDate parameter which is constrained by the format YYYY-MM-DD

    name

    the name of the parameter (for use in description endpoints)

    description

    optional description of the parameter (for use in description endpoints)

    returns

    a parameter for retrieving a LocalDate value from the request

  22. def long(name: String, description: String = null): P[Long]

    Create a Long parameter which is constrained to numeric Long values

    Create a Long parameter which is constrained to numeric Long values

    name

    the name of the parameter (for use in description endpoints)

    description

    optional description of the parameter (for use in description endpoints)

    returns

    a parameter for retrieving a Long value from the request

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

    Definition Classes
    AnyRef
  24. final def notify(): Unit

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

    Definition Classes
    AnyRef
  26. def string(name: String, description: String = null): P[String]

    Create a String parameter which is not constrained

    Create a String parameter which is not constrained

    name

    the name of the parameter (for use in description endpoints)

    description

    optional description of the parameter (for use in description endpoints)

    returns

    a parameter for retrieving a String value from the request

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

    Definition Classes
    AnyRef
  28. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. def zonedDateTime(name: String, description: String = null): P[ZonedDateTime]

    Create a ZonedDateTime parameter which is constrained by the format YYYY-MM-DDTHH:mm:SSZ (See DateTimeFormatter.

    Create a ZonedDateTime parameter which is constrained by the format YYYY-MM-DDTHH:mm:SSZ (See DateTimeFormatter.ISO_OFFSET_DATE_TIME)

    name

    the name of the parameter (for use in description endpoints)

    description

    optional description of the parameter (for use in description endpoints)

    returns

    a parameter for retrieving a ZonedDateTime value from the request

Inherited from AnyRef

Inherited from Any

Ungrouped