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

Tomaz Cerar (JIRA) issues at jboss.org
Thu Dec 11 08:42:29 EST 2014


Tomaz Cerar created WFCORE-460:
----------------------------------

             Summary: 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
             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