summaryrefslogtreecommitdiff
path: root/src/dotnet-library/scala/reflect/BeanProperty.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/dotnet-library/scala/reflect/BeanProperty.scala')
-rw-r--r--src/dotnet-library/scala/reflect/BeanProperty.scala34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/dotnet-library/scala/reflect/BeanProperty.scala b/src/dotnet-library/scala/reflect/BeanProperty.scala
new file mode 100644
index 0000000000..beba9fa418
--- /dev/null
+++ b/src/dotnet-library/scala/reflect/BeanProperty.scala
@@ -0,0 +1,34 @@
+/* __ *\
+** ________ ___ / / ___ Scala API **
+** / __/ __// _ | / / / _ | (c) 2002-2006, LAMP/EPFL **
+** __\ \/ /__/ __ |/ /__/ __ | **
+** /____/\___/_/ |_/____/_/ | | **
+** |/ **
+*/
+
+// $Id$
+
+
+package scala.reflect
+
+/**
+ * This attribute adds a setter and a getter method, following the
+ Java Bean convention (first letter of the property is capitalized) used
+by popular Java web frameworks.
+For example
+<pre>
+ [BeanProperty]
+ var status = ""
+</pre>
+<p> adds the following methods to the <b>generated</b> code </p>
+<pre>
+ def setStatus(s:String): Unit = { this.status = s }
+ def getStatus: String = { this.status }
+</pre>
+ *
+ <p>
+ However, you cannot call <code>setStatus</code> from Scala, you should
+ use the normal Scala access and assignment.
+ </p>
+ */
+class BeanProperty extends Attribute