That is the correct behavior as designed. Getters and setters are
treated as properties and accessed that way (and that list doesn't
repeat it).
Sent from my phone.
On 04/09/2009, at 9:43 PM, mjido <m.benlachgar(a)netfective.ma> wrote:
Hi,
When calling a method on an object the choices only showed me
methods that
are not start with "get" or "set" (see ref1). I had to Add free form
drl to
get around it.
And it makes methods like fields (see ref2).
This is my class:
public class TestBO
{
private String first;
private String second;
private Long testId;
public String getFirst()
{
return first;
}
public void setFirst(String s)
{
this.first = s;
}
public String getSecond()
{
return second;
}
public void setSecond(String s)
{
this.second = s;
}
public Long getTestId()
{
return testId;
}
public void setTestId(Long long1)
{
this.testId = long1;
}
public boolean getCompareFirstAndSecond()
{
return false;
}
public String getConcatFirstAndSecond()
{
return this.getFirst()+this.getSecond();
}
public void hello()
{
System.out.print("hello world \n");
}
}
Any help will be very appreciated.
http://www.nabble.com/file/p25277517/ref1.JPG ref1.JPG
http://www.nabble.com/file/p25277517/ref2.JPG ref2.JPG
--
View this message in context:
http://www.nabble.com/call-method-getXXX-or-setXXX-tp25277517p25277517.html
Sent from the drools - dev mailing list archive at
Nabble.com.
_______________________________________________
rules-dev mailing list
rules-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev