Skip to main content

[jsr363-experts] Re: [JIRA] (UNITSOFMEASUREMENT-90) UnitFormatService (or Provider) is missing a getAvailableFormat() method

  • From: Werner Keil < >
  • To: " " < >
  • Subject: [jsr363-experts] Re: [JIRA] (UNITSOFMEASUREMENT-90) UnitFormatService (or Provider) is missing a getAvailableFormat() method
  • Date: Wed, 17 Dec 2014 17:09:15 +0100

Btw. none of these are Bugs, just because a method is missing that so far
no implementation or app used doesn't mean this is a bug.
Cases like wrong formatting, methods returning null where they shouldn't,
etc. would be bugs. all other tickets are improvements or (if it's
something like "set up a Jenkins server for X") rather tasks.

Thanks,
Werner






On Wed, Dec 17, 2014 at 4:40 PM, desruisseaux (JIRA) 
<
> wrote:
>
> desruisseaux created UNITSOFMEASUREMENT-90:
> ----------------------------------------------
>
>              Summary: UnitFormatService (or Provider) is missing a
> getAvailableFormat() method
>                  Key: UNITSOFMEASUREMENT-90
>                  URL: https://java.net/jira/browse/UNITSOFMEASUREMENT-90
>              Project: unitsofmeasurement
>           Issue Type: Bug
>           Components: API
>             Reporter: desruisseaux
>             Assignee: keilw
>
>
> The {{UnitFormatService}} interface has a {{getUnitFormat(String)}}
> method, but no way to know which {{String}} are legal values. I suggest to
> add the following methods:
>
> {code:java}
> /**
>  * Returns the formats recognized by {@link #getUnitFormat(String)}.
>  */
> Set<String> getAvailableFormats();
> {code}
>
> I think that we should also standardize the spelling of a few common
> format (or maybe even provide static final {{String}} constants for them).
> Examples:
>
> * If the provider supports the SI format, then the name of that format
> shall be spelled {{"SI"}} in upper-case.
> * If the provider supports the UCUM format, then the name of that format
> shall be spelled {{"UCUM"}} in upper-case.
>
>
>
>
> --
> This message was sent by Atlassian JIRA
> (v6.2.3#6260)
>


[jsr363-experts] Re: [JIRA] (UNITSOFMEASUREMENT-90) UnitFormatService (or Provider) is missing a getAvailableFormat() method

Werner Keil 12/17/2014
 
 
Close
loading
Please Confirm
Close