[ 
http://jira.magnolia-cms.com/browse/MAGNOLIA-3276?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Philipp Bärfuss updated MAGNOLIA-3276:
--------------------------------------

    Fix Version/s: 4.4
                       (was: 5.0)
                       (was: 4.4.x)

> Add noop to nodebuilder
> -----------------------
>
>                 Key: MAGNOLIA-3276
>                 URL: http://jira.magnolia-cms.com/browse/MAGNOLIA-3276
>             Project: Magnolia
>          Issue Type: New Feature
>          Components: core
>            Reporter: Grégory Joseph
>            Assignee: Grégory Joseph
>             Fix For: 4.4
>
>
> When using the node builder api, we sometimes want to use ternary operations, 
> where a noop() would be useful.
> Example:
> {code}
> new ModuleNodeBuilderTask("test paragraph", "", ErrorHandling.strict,
>                 getNode("paragraphs").then(
>                         addNode(name, "mgnl:contentNode").then(
>                                 addProperty("templatePath", templatePath),
>                                 addProperty("type", type),
>                                 modelClass != null ? 
> addProperty("modelClass", modelClass.getName()) : noop()
>                         )
>                 )
>         )
> {code}

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




----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <dev-list-unsubscr...@magnolia-cms.com>
----------------------------------------------------------------

Reply via email to