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], name: String, description: String = null): 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

    name

    the parameter name

    description

    the parameter description

    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. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. 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

  6. 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

  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. 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

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  14. 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

  15. 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

  16. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  17. def json[T](name: String, description: String = null, jsonLib: JsonLibrary[T, _] = Argo): 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

  18. 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

  19. 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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  23. def string(name: String, description: String = null, validation: StringValidations.Rule = StringValidations.EmptyIsInvalid): 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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  26. 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

  27. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. 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

  31. 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