sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Desruisseaux (JIRA)" <>
Subject [jira] [Resolved] (SIS-81) Replace ModifiableMetadata.isModifiable() by an enum
Date Tue, 06 Oct 2015 14:16:27 GMT


Martin Desruisseaux resolved SIS-81.
    Resolution: Won't Fix

Will not fix. The current API works since SIS 0.3 and the needs for a different API is not
yet obvious at this stage.

Additionally, the current method signatures ({{isModifiable()}}, {{unmodifiable()}}, {{freeze()}})
make more obvious that those methods perform operations and are not just getter and setter
for a "state" property. Since subclasses provide lot of getters and setters, this distinction
may be useful.

> Replace ModifiableMetadata.isModifiable() by an enum
> ----------------------------------------------------
>                 Key: SIS-81
>                 URL:
>             Project: Spatial Information Systems
>          Issue Type: Improvement
>          Components: Metadata
>            Reporter: Martin Desruisseaux
>            Assignee: Martin Desruisseaux
>             Fix For: 0.7
> The {{ModifiableMetadata}} abstract class provides a {{isModifiable()}} method which
currently returns a {{boolean}} value. The boolean value should be replaced by an enumeration
containing the following values (for now):
> * {{EDITABLE}}
> * {{FINAL}}
> The new functionality is the {{APPENDABLE}} value, which would be like {{EDITABLE}} except
that only new values could be set; an exception would be thrown on attempt to modify an existing

This message was sent by Atlassian JIRA

View raw message