myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Blake Sullivan <blake.sulli...@oracle.com>
Subject Re: [Trinidad] RequestContext.Accessibility.valueOfAlias() API
Date Tue, 14 Feb 2012 04:26:49 GMT
This example 
<http://www.basilv.com/psd/blog/2006/advanced-uses-of-java-5-enums>uses 
getDisplayName(), though given the presence of name(), I think 
displayName() makes more sense (Josh Bloch hates the getXXX(), setXXX() 
pattern)

-- Blake Sullivan


On 2/13/12 7:23 PM, Andy Schwartz wrote:
> Gang -
>
> For this newly logged issue:
>
> TRINIDAD-2215 String ->  Accessibility enum API
> https://issues.apache.org/jira/browse/TRINIDAD-2215
>
> I would like to add a new valueOfAlias() method to
> RequestContext.Accessibility, as shown here:
>
> https://issues.apache.org/jira/secure/attachment/12514439/trinidad-2215.patch
>
> This serves a similar purpose to good old Enum.valueOf(), but operates
> on the pretty names/aliases used by the Accessibility enum.
>
> Any concerns about this?  Or suggestions for a better method name?
>
> Andy


Mime
View raw message