You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beehive.apache.org by ek...@apache.org on 2005/09/19 23:56:27 UTC
svn commit: r290287 -
/beehive/trunk/docs/forrest/release/src/documentation/content/xdocs/controls/programming.xml
Author: ekoneil
Date: Mon Sep 19 14:56:23 2005
New Revision: 290287
URL: http://svn.apache.org/viewcvs?rev=290287&view=rev
Log:
Remove section in the Controls documentation that docs a compile error on violation of the @AnnotationConstraint annotation. Apparently, this does not cause the correct compile error -- we'll need to fix this post Beehive 1.0.
BB: self
Test: build.release pass
Modified:
beehive/trunk/docs/forrest/release/src/documentation/content/xdocs/controls/programming.xml
Modified: beehive/trunk/docs/forrest/release/src/documentation/content/xdocs/controls/programming.xml
URL: http://svn.apache.org/viewcvs/beehive/trunk/docs/forrest/release/src/documentation/content/xdocs/controls/programming.xml?rev=290287&r1=290286&r2=290287&view=diff
==============================================================================
--- beehive/trunk/docs/forrest/release/src/documentation/content/xdocs/controls/programming.xml (original)
+++ beehive/trunk/docs/forrest/release/src/documentation/content/xdocs/controls/programming.xml Mon Sep 19 14:56:23 2005
@@ -1237,22 +1237,6 @@
<source> @Control
@BookControl.Intro( title="title", subject="subject of the book" )
BookControlBean myBook</source>
- <p>
- When constraining properties with <code>@AnnotationConstraints</code>, all of the property members must be annotated
- with <code>@AnnotationMemberTypes</code>, or compile errors will be thrown. For example, the following
- will <em>not</em> compile, because not all of the property members (namely <code>someMember3()</code>)
- are decorated with <code>@AnnotationMemberTypes</code>.
- </p>
-<source>
- @AnnotationConstraints.MembershipRule(AnnotationConstraints.MembershipRuleValues.EXACTLY_ONE)
- public @interface SomeProperty
- {
- @AnnotationMemberTypes.Text(maxLength=8)
- public String someMember();
- @AnnotationMemberTypes.Text(maxLength=8)
- public String someMember2();
- <strong>public String someMember3();</strong>
- }</source>
<p>Not all Java types are supported by <code>@AnnotationMemberTypes</code>. For a list of the supported types
see <a href="../apidocs/classref_controls/org/apache/beehive/controls/api/bean/AnnotationMemberTypes.html">Interface AnnotationMemberTypes</a>.</p>
</section>