[jboss-jira] [JBoss JIRA] (WFCORE-460) Extended sytnax for read/write-attribute

Darran Lofthouse (JIRA) issues at jboss.org
Tue Mar 17 07:37:19 EDT 2015


     [ https://issues.jboss.org/browse/WFCORE-460?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Darran Lofthouse updated WFCORE-460:
------------------------------------
    Labels: affects_elytron  (was: )


> Extended sytnax for read/write-attribute
> ----------------------------------------
>
>                 Key: WFCORE-460
>                 URL: https://issues.jboss.org/browse/WFCORE-460
>             Project: WildFly Core
>          Issue Type: Feature Request
>          Components: Domain Management
>    Affects Versions: 1.0.0.Alpha14
>            Reporter: Tomaz Cerar
>            Assignee: Tomaz Cerar
>              Labels: affects_elytron
>             Fix For: 1.0.0.CR1
>
>
> :write-attribute enhancements for complex attributes
> Map write enhancements
> :write-attribute(name=map-attribute.myKey value="newValue")
> List write enhancements
> :write-attribute(name=list-attribute[1] value="new-element-value")
> :write-attribute(name=list-attribute.element-value value="new-element-value")
> Map read enhancements
> # return value of map-attribute with key "myKey"
> :read-attribute(name=map-attribute.myKey)
> List read enhancements
> # return element under index 5 of list-attribute
> :read-attribute(name=list-attribute[5])
> Generic complex attributes enhancments
> # return property.subproperty from complex attribute
> :read-attribute(name=complex-attribute.property.subproperty)
> # return subproperty of 5th property from complex attribute
> :read-attribute(name=complex-attribute[5].subproperty)
> # set subproperty of 5th property of complex attribute
> :write-attribute(name=complex-attribute[5].subproperty, value="new-value")
> # set property.subproperty.subsubproperty of attribute "complext-attribute to "new-value" 
> :write-attribute(name=complex-attribute.property.subproperty.subsubproperty, value="new-value")
> # return value of complex attribute with key "myKey"
> :read-attribute(name=complex-attribute.myKey)
> # return "property" of complex-attribute element on index 5
> :read-attribute(name=complex-attribute[5].property)
> # return object of complex-attribute element on index 5
> :read-attribute(name=complex-attribute[5])



--
This message was sent by Atlassian JIRA
(v6.3.11#6341)


More information about the jboss-jira mailing list