Class

scala.beans

BeanProperty

Related Doc: package beans

Permalink

class BeanProperty extends Annotation with StaticAnnotation

When attached to a field, this annotation adds a setter and a getter method following the Java Bean convention. For example:

@BeanProperty
var status = ""

adds the following methods to the class:

def setStatus(s: String) { this.status = s }
def getStatus: String = this.status

For fields of type Boolean, if you need a getter named isStatus, use the scala.beans.BooleanBeanProperty annotation instead.

Annotations
@field()
Source
BeanProperty.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BeanProperty
  2. StaticAnnotation
  3. Annotation
  4. AnyRef
  5. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new BeanProperty()

    Permalink