commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ivan Latysh <IvanLat...@yahoo.ca>
Subject [betwixt] Please help with conditional property accessor
Date Thu, 30 Nov 2006 03:43:59 GMT
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


Mime
View raw message