abstract class ModelCommand[T] extends Command
- Annotations
- @deprecated
- Deprecated
(Since version 2.2.1) This was meant for usage with the
org.scalatra.commands.CommandHandler
, but that approach is not fully compiler verified. Look at using theexecute
method on a command instead.
- Alphabetic
- By Inheritance
- ModelCommand
- Command
- ParamsValueReaderProperties
- BindingSyntax
- BindingValidatorImplicits
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new ModelCommand()(implicit arg0: Manifest[T])
Type Members
-
abstract
type
CommandTypeConverterFactory[T] <: TypeConverterFactory[T]
- Definition Classes
- Command
- type ModelType = T
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
>>[S](handler: (ModelCommand.this.type) ⇒ S)(implicit executor: ExecutorView[S]): S
- Definition Classes
- Command
-
def
afterBinding(action: ⇒ Any): Unit
Add an action that will be evaluated after field binding has been done.
Add an action that will be evaluated after field binding has been done.
- Attributes
- protected
- Definition Classes
- Command
-
def
apply[S](handler: (ModelCommand.this.type) ⇒ S)(implicit executor: ExecutorView[S]): S
- Definition Classes
- Command
-
def
asBigDecimal(name: String): FieldDescriptor[BigDecimal]
- Definition Classes
- BindingSyntax
-
def
asBoolean(name: String): FieldDescriptor[Boolean]
- Definition Classes
- BindingSyntax
-
def
asByte(name: String): FieldDescriptor[Byte]
- Definition Classes
- BindingSyntax
-
def
asDate(name: String): FieldDescriptor[Date]
- Definition Classes
- BindingSyntax
-
def
asDateTime(name: String): FieldDescriptor[DateTime]
- Definition Classes
- BindingSyntax
-
def
asDouble(name: String): FieldDescriptor[Double]
- Definition Classes
- BindingSyntax
-
def
asFloat(name: String): FieldDescriptor[Float]
- Definition Classes
- BindingSyntax
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
asInt(name: String): FieldDescriptor[Int]
- Definition Classes
- BindingSyntax
-
def
asLong(name: String): FieldDescriptor[Long]
- Definition Classes
- BindingSyntax
-
def
asSeq[T](name: String)(implicit arg0: Manifest[T]): FieldDescriptor[Seq[T]]
- Definition Classes
- BindingSyntax
-
def
asShort(name: String): FieldDescriptor[Short]
- Definition Classes
- BindingSyntax
-
def
asString(name: String): FieldDescriptor[String]
- Definition Classes
- BindingSyntax
-
implicit
def
asType[T](name: String)(implicit arg0: Manifest[T]): FieldDescriptor[T]
- Definition Classes
- BindingSyntax
-
implicit
def
autoBind[T](fieldName: String)(implicit arg0: Manifest[T], arg1: TypeConverterFactory[T]): Field[T]
- Definition Classes
- Command
-
def
beforeBinding(action: ⇒ Any): Unit
Add an action that will be evaluated before field binding occurs.
Add an action that will be evaluated before field binding occurs.
- Attributes
- protected
- Definition Classes
- Command
-
implicit
def
bind[T](field: FieldDescriptor[T])(implicit mf: Manifest[T], conv: TypeConverterFactory[T]): FieldDescriptor[T]
- Definition Classes
- Command
-
def
bindTo[S, I](data: S, params: MultiParams = MultiMap.empty, headers: Map[String, String] = Map.empty)(implicit r: (S) ⇒ ValueReader[S, I], mi: Manifest[I], multiParams: (MultiParams) ⇒ ValueReader[MultiParams, Seq[String]]): ModelCommand.this.type
- Definition Classes
- Command
-
implicit
def
binding2field[T](field: FieldDescriptor[T])(implicit arg0: Manifest[T], arg1: TypeConverterFactory[T]): Field[T]
- Definition Classes
- Command
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
val
commandDescription: String
- Definition Classes
- Command
-
val
commandName: String
- Definition Classes
- Command
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
errors: Seq[Binding]
Return a Map of all field command error keyed by field binding name (NOT the name of the variable in command object).
Return a Map of all field command error keyed by field binding name (NOT the name of the variable in command object).
- Definition Classes
- Command
-
def
execute[S](handler: (ModelCommand.this.type) ⇒ S)(implicit executor: ExecutorView[S]): S
- Definition Classes
- Command
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isInvalid: Boolean
- Definition Classes
- Command
-
def
isValid: Boolean
Check whether this command is valid.
Check whether this command is valid.
- Definition Classes
- Command
-
implicit
def
multiMapHeadViewMapValueReader[T <: MultiMapHeadView[String, String]](d: T): ValueReader[T, String]
- Definition Classes
- ParamsValueReaderProperties
-
implicit
def
multiParamsValueReader(d: MultiParams): ValueReader[MultiParams, Seq[String]]
- Definition Classes
- ParamsValueReaderProperties
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
implicit
def
stringMapValueReader(d: Map[String, String]): ValueReader[Map[String, String], String]
- Definition Classes
- ParamsValueReaderProperties
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- Command → AnyRef → Any
-
def
typeConverterBuilder[I](tc: CommandTypeConverterFactory[_]): PartialFunction[ValueReader[_, _], TypeConverter[I, _]]
- Definition Classes
- Command
-
implicit
def
validatableGenericBinding[T](b: FieldDescriptor[T]): ValidatableGenericBinding[T]
- Definition Classes
- BindingValidatorImplicits
-
implicit
def
validatableOrderedBinding[T](b: FieldDescriptor[T])(implicit T: (T) ⇒ Ordered[T]): ValidatableOrdered[T]
- Definition Classes
- BindingValidatorImplicits
-
implicit
def
validatableSeqBinding[T <: Seq[_]](b: FieldDescriptor[T]): ValidatableSeq[T]
- Definition Classes
- BindingValidatorImplicits
-
implicit
def
validatableStringBinding(b: FieldDescriptor[String]): ValidatableStringBinding
- Definition Classes
- BindingValidatorImplicits
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )