You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Ivan Latysh <Iv...@yahoo.ca> on 2006/11/30 04:43:59 UTC

[betwixt] Please help with conditional property accessor

Hello All,

  I am looking for a way to read bean property based on certain condition.

  The bean has 3 property:
    isMultiple()
    getValue()
    getValues()

  I have to call getValue() when isMultiple()==false and getValues() when isMultiple()==true
  otherwise it throw an exception, so I can't include both of them into .betwixt

  P.S. Thank's in advance.

-- 
Best regards,
 Ivan                          mailto:IvanLatysh@yahoo.ca


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org