Class ArrayPropertyAccessor

    • Constructor Detail

      • ArrayPropertyAccessor

        public ArrayPropertyAccessor()
    • Method Detail

      • getSourceAccessor

        public String getSourceAccessor​(OgnlContext context,
                                        Object target,
                                        Object index)
        Description copied from interface: PropertyAccessor
        Returns a java string representing the textual method that should be called to access a particular element. (ie "get")
        Specified by:
        getSourceAccessor in interface PropertyAccessor
        Overrides:
        getSourceAccessor in class ObjectPropertyAccessor
        Parameters:
        context - The current execution context.
        target - The current object target on the expression tree being evaluated.
        index - The index object that will be placed inside the string to access the value.
        Returns:
        The source accessor method to call.
      • getSourceSetter

        public String getSourceSetter​(OgnlContext context,
                                      Object target,
                                      Object index)
        Description copied from interface: PropertyAccessor
        Returns a java string representing the textual method that should be called to set a particular element. (ie "set")
        Specified by:
        getSourceSetter in interface PropertyAccessor
        Overrides:
        getSourceSetter in class ObjectPropertyAccessor
        Parameters:
        context - The current execution context.
        target - The current object target on the expression tree being evaluated.
        index - The index object that will be placed inside the string to set the value.
        Returns:
        The source setter method to call.