Class BeanMethodActionRule

    • Constructor Detail

      • BeanMethodActionRule

        public BeanMethodActionRule()
    • Method Detail

      • getActionId

        public java.lang.String getActionId()
        Gets the action id.
        Returns:
        the action id
      • setActionId

        public void setActionId​(java.lang.String actionId)
        Sets the action id.
        Parameters:
        actionId - the new action id
      • getBeanId

        public java.lang.String getBeanId()
        Gets bean id.
        Returns:
        the bean id
      • setBeanId

        public void setBeanId​(java.lang.String beanId)
        Sets bean id.
        Parameters:
        beanId - the bean id
      • getBeanClass

        public java.lang.Class<?> getBeanClass()
      • setBeanClass

        public void setBeanClass​(java.lang.Class<?> beanClass)
      • getMethodName

        public java.lang.String getMethodName()
        Gets the action method name.
        Returns:
        the action method name
      • setMethodName

        public void setMethodName​(java.lang.String methodName)
        Sets the action method name.
        Parameters:
        methodName - the new action method name
      • getMethod

        public java.lang.reflect.Method getMethod()
      • setMethod

        public void setMethod​(java.lang.reflect.Method method)
      • isRequiresTranslet

        public boolean isRequiresTranslet()
      • setRequiresTranslet

        public void setRequiresTranslet​(boolean requiresTranslet)
      • getHidden

        public java.lang.Boolean getHidden()
        Returns whether to hide result of the action.
        Returns:
        true, if this action is hidden
      • isHidden

        public boolean isHidden()
        Returns whether to hide result of the action.
        Returns:
        true, if this action is hidden
      • setHidden

        public void setHidden​(java.lang.Boolean hidden)
        Sets whether to hide result of the action.
        Parameters:
        hidden - whether to hide result of the action
      • getArgumentItemRuleMap

        public ItemRuleMap getArgumentItemRuleMap()
        Gets the argument item rule map.
        Returns:
        the argument item rule map
      • setArgumentItemRuleMap

        public void setArgumentItemRuleMap​(ItemRuleMap argumentItemRuleMap)
        Sets the argument item rule map.
        Parameters:
        argumentItemRuleMap - the new argument item rule map
      • newArgumentItemRule

        public ItemRule newArgumentItemRule​(java.lang.String argumentName)
        Adds a new argument rule with the specified name and returns it.
        Parameters:
        argumentName - the argument name
        Returns:
        the argument item rule
      • addArgumentItemRule

        public void addArgumentItemRule​(ItemRule argumentItemRule)
        Adds the argument item rule.
        Parameters:
        argumentItemRule - the new argument item rule
      • getPropertyItemRuleMap

        public ItemRuleMap getPropertyItemRuleMap()
        Gets the property item rule map.
        Returns:
        the property item rule map
      • setPropertyItemRuleMap

        public void setPropertyItemRuleMap​(ItemRuleMap propertyItemRuleMap)
        Sets the property item rule map.
        Parameters:
        propertyItemRuleMap - the new property item rule map
      • newPropertyItemRule

        public ItemRule newPropertyItemRule​(java.lang.String propertyName)
        Adds a new property rule with the specified name and returns it.
        Parameters:
        propertyName - the property name
        Returns:
        the property item rule
      • addPropertyItemRule

        public void addPropertyItemRule​(ItemRule propertyItemRule)
        Adds the property item rule.
        Parameters:
        propertyItemRule - the new property item rule
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • newInstance

        public static BeanMethodActionRule newInstance​(java.lang.String id,
                                                       java.lang.String beanId,
                                                       java.lang.String methodName,
                                                       java.lang.Boolean hidden)
                                                throws IllegalRuleException
        Returns a new instance of BeanActionRule.
        Parameters:
        id - the action id
        beanId - the bean id
        methodName - the method name
        hidden - true if hiding the result of the action; false otherwise
        Returns:
        the bean method action rule
        Throws:
        IllegalRuleException - if an illegal rule is found