sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Desruisseaux (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (SIS-109) Replace the boolean value of DataStore.canOpen(...) by an enum
Date Mon, 05 Aug 2013 09:06:48 GMT

     [ https://issues.apache.org/jira/browse/SIS-109?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Martin Desruisseaux resolved SIS-109.
-------------------------------------

    Resolution: Fixed

Provided a {{ProbeResult}} enumeration.
                
> Replace the boolean value of DataStore.canOpen(...) by an enum
> --------------------------------------------------------------
>
>                 Key: SIS-109
>                 URL: https://issues.apache.org/jira/browse/SIS-109
>             Project: Spatial Information Systems
>          Issue Type: Task
>          Components: Storage
>    Affects Versions: 0.3
>            Reporter: Martin Desruisseaux
>            Assignee: Martin Desruisseaux
>             Fix For: 0.4
>
>
> The {{DataStore.canOpen(StorageConnection)}} method currently returns a {{Boolean}}.
It should be a set of {{Enum}} values instead. The enumeration would contains at least {{READ}},
{{WRITE}}, {{APPEND}} and maybe an {{UNKNOWN}} value exclusive with all others. An empty set
would means that the {{DataStore}} does not recognize the format (it can neither read or write
it).
> The proposed enumeration is similar to the {{StandardOpenOption}} provided in JDK7. Maybe
we should leverage that enumeration. However we would need to provide a replacement for the
JDK6 branches.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message