[dna-issues] [JBoss JIRA] Commented: (DNA-266) Improve usability of graph API with additional methods

Randall Hauch (JIRA) jira-events at lists.jboss.org
Fri Dec 19 14:51:04 EST 2008


    [ https://jira.jboss.org/jira/browse/DNA-266?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12443660#action_12443660 ] 

Randall Hauch commented on DNA-266:
-----------------------------------

Added additional methods for setting the values of properties, overloading with the different types allowed for property values (e.g., boolean, int, Path, Name, etc.).  This resulted in quite a bit more code (that is all pretty straightforward), but this detriment is outweighed by the API being more useful and clear.

> Improve usability of graph API with additional methods
> ------------------------------------------------------
>
>                 Key: DNA-266
>                 URL: https://jira.jboss.org/jira/browse/DNA-266
>             Project: DNA
>          Issue Type: Feature Request
>          Components: API, Graph
>    Affects Versions: 0.3
>            Reporter: Randall Hauch
>            Assignee: Randall Hauch
>            Priority: Minor
>             Fix For: 0.4
>
>
> Provide an easy way to set references to nodes as property values.  Currently, one has to get the node, obtain a reference value factory, create the reference, then set the property using that value.  It's pretty impossible to make a single chained call that does all this.
> Also, provide additional flexibility when setting properties.  Currently, the only way to set a property is to do the following:
>         graph.set("propName").to("value").on("/node1");
> but it would also be nice to reverse the "on" and "to" methods, such as:
>         graph.set("propName").on("/node1").to("value");

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the dna-issues mailing list