Trait

io.fintrospect.parameters

Parameters

Related Doc: package parameters

Permalink

trait Parameters[P[_], R[_]] 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
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def apply[T](spec: ParameterSpec[T]): P[T] with R[T]

    Permalink

    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

    spec

    the parameter spec

    returns

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

Concrete 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 apply[T](parameterSpecSupplier: ParameterSpecSupplier[T]): P[T] with R[T]

    Permalink

    Create a parameter of a custom type using the spec supplied by the Supplier

    Create a parameter of a custom type using the spec supplied by the Supplier

    T

    the type of the parameter

    parameterSpecSupplier

    provides a parameter spec

    returns

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

  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def bigDecimal(name: String, description: String = null): P[BigDecimal] with R[BigDecimal]

    Permalink

    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

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

    Permalink

    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

  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def dateTime(name: String, description: String = null): P[LocalDateTime] with R[LocalDateTime]

    Permalink

    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

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

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

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

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

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

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

    Permalink

    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

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

    Permalink

    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

  17. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  18. def json[T](name: String, description: String = null, format: JsonFormat[T, _] = Argo.JsonFormat): P[T] with R[T]

    Permalink

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

    Create a Json-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

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

    Permalink

    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

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

    Permalink

    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

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

    Permalink
    Definition Classes
    AnyRef
  22. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  24. def string(name: String, description: String = null, validation: StringValidation = EmptyIsValid): P[String] with R[String]

    Permalink

    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)

    validation

    validation mode for String values

    returns

    a parameter for retrieving a String value from the request

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  27. def uuid(name: String, description: String = null): P[UUID] with R[UUID]

    Permalink

    Create a UUID parameter

    Create a UUID parameter

    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 UUID value from the request

  28. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. def xml(name: String, description: String = null): P[Elem] with R[Elem]

    Permalink

    Create a native Scala XML-format parameter which is constrained to values which parse to valid XML objects

    Create a native Scala XML-format parameter which is constrained to values which parse to valid XML 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

  32. def zonedDateTime(name: String, description: String = null): P[ZonedDateTime] with R[ZonedDateTime]

    Permalink

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

    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