com.opensymphony.xwork2.conversion

## Interface NullHandler

- All Known Implementing Classes:
    InstantiatingNullHandler

      public interface NullHandler

  Interface for handling null results from Chains. Object has the opportunity to substitute an object for the null and continue.

  Author:
    Luke Blanshard (blanshlu@netscape.net), Drew Davidson (drew@ognl.org)

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `Object` | `nullMethodResult(Map<String,Object> context, Object target, String methodName, Object[] args)` Method called on target returned null.
    `Object` | `nullPropertyValue(Map<String,Object> context, Object target, Object property)` Property in target evaluated to null.

- - ### Method Detail

    - #### nullMethodResult

          Object nullMethodResult(Map<String,Object> context,
                                Object target,
                                String methodName,
                                Object[] args)

      Method called on target returned null.
      Parameters:
        `context` - context
        `target` - target object
        `methodName` - method name
        `args` - arguments
      Returns:
        object

    - #### nullPropertyValue

          Object nullPropertyValue(Map<String,Object> context,
                                 Object target,
                                 Object property)

      Property in target evaluated to null. Property can be a constant String property name or a DynamicSubscript.
      Parameters:
        `context` - context
        `target` - target object
        `property` - property
      Returns:
        object

Copyright © 2000–2019 Apache Software Foundation. All rights reserved.