[jboss-svn-commits] JBL Code SVN: r5061 - labs/jbossrules/branches/3.0.x/documentation/manual/en/Chapter-Rule_Language
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Wed Jul 12 20:33:27 EDT 2006
Author: mark.proctor at jboss.com
Date: 2006-07-12 20:33:24 -0400 (Wed, 12 Jul 2006)
New Revision: 5061
Modified:
labs/jbossrules/branches/3.0.x/documentation/manual/en/Chapter-Rule_Language/Section-Rule.xml
Log:
-Fixed grammer mistake
Modified: labs/jbossrules/branches/3.0.x/documentation/manual/en/Chapter-Rule_Language/Section-Rule.xml
===================================================================
--- labs/jbossrules/branches/3.0.x/documentation/manual/en/Chapter-Rule_Language/Section-Rule.xml 2006-07-12 23:32:20 UTC (rev 5060)
+++ labs/jbossrules/branches/3.0.x/documentation/manual/en/Chapter-Rule_Language/Section-Rule.xml 2006-07-13 00:33:24 UTC (rev 5061)
@@ -294,13 +294,13 @@
<para>For example, refering to our Cheese class, the following :
Cheese(type == ...) uses the getType() method on the a cheese instance.
You can also access non getter methods, like "toString()" on the Object
- for instance (in which case, you do Cheese(toString == ..) - you use the full name of the
- method with correct capitalisation, but not brackets).
- Do please make sure that you are accessing methods that
- take no parameters, and are in-fact "accessors" (as in, they don't change
- the state of the object in a way that may effect the rules - remember
- that the rule engine effectively caches the results of its matching
- inbetween invocations to make it faster).</para>
+ for instance (in which case, you do Cheese(toString == ..) - you use the
+ full name of the method with correct capitalisation, but not brackets).
+ Do please make sure that you are accessing methods that take no
+ parameters, and are in-fact "accessors" (as in, they don't change the
+ state of the object in a way that may effect the rules - remember that
+ the rule engine effectively caches the results of its matching inbetween
+ invocations to make it faster).</para>
<para>Note that if primitive types are used for a field, Drools will
autobox them to their corresponding object types (even if you are using
@@ -313,16 +313,17 @@
not yet support Java 5).</para>
<section>
- <title>JavaBeans as facts</title>
- <para>A note on JavaBeans: The JavaBean convention is followed, but as
- shown above, you can access non getter methods by using the method name.
- The syntax is case sensitive. In the case of getter methods like
- "getURI" which uses capitals, the property name is "URI" as there is
- more then one capital letter after the "get" - this is exactly as per
- the JavaBean standard (in fact, the Instrospector utility is used).
- </para>
+ <title>JavaBeans as facts</title>
+
+ <para>A note on JavaBeans: The JavaBean convention is followed, but as
+ shown above, you can access non getter methods by using the method
+ name. The syntax is case sensitive. In the case of getter methods like
+ "getURI" which uses capitals, the property name is "URI" as there is
+ more then one capital letter after the "get" - this is exactly as per
+ the JavaBean standard (in fact, the Instrospector utility is
+ used).</para>
</section>
-
+
<section>
<title>Operators</title>
@@ -694,8 +695,8 @@
<example>
<title>Return Value operator</title>
- <programlisting>Person( girlAge : age, sex = "F" )
-Person( age == ( new Integer(girlAge.intValue() + 2) ), sex = 'M' )
+ <programlisting>Person( girlAge : age, sex == "F" )
+Person( age == ( new Integer(girlAge.intValue() + 2) ), sex == 'M' )
</programlisting>
</example>
</section>
@@ -999,4 +1000,4 @@
! The fact that not quite *everything* in java is an object causes
headaches like this (keep those tablets handy).</para>
</section>
-</section>
+</section>
\ No newline at end of file
More information about the jboss-svn-commits
mailing list