Package models.gui

Class StudyCodeProperties

  • All Implemented Interfaces:
    play.data.validation.Constraints.Validatable<java.util.List<play.data.validation.ValidationError>>

    public class StudyCodeProperties
    extends java.lang.Object
    implements play.data.validation.Constraints.Validatable<java.util.List<play.data.validation.ValidationError>>
    Properties of a study code request + validation rules
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String AMOUNT  
      static java.lang.String COMMENT  
      static java.lang.String TYPE  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getAmount()  
      java.lang.String getComment()  
      java.lang.String getType()  
      void setAmount​(int amount)  
      void setComment​(java.lang.String comment)  
      void setType​(java.lang.String type)  
      java.util.List<play.data.validation.ValidationError> validate()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • StudyCodeProperties

        public StudyCodeProperties()
    • Method Detail

      • getType

        public java.lang.String getType()
      • setType

        public void setType​(java.lang.String type)
      • getComment

        public java.lang.String getComment()
      • setComment

        public void setComment​(java.lang.String comment)
      • getAmount

        public int getAmount()
      • setAmount

        public void setAmount​(int amount)
      • validate

        public java.util.List<play.data.validation.ValidationError> validate()
        Specified by:
        validate in interface play.data.validation.Constraints.Validatable<java.util.List<play.data.validation.ValidationError>>