Class HeaderActionRule

java.lang.Object
com.aspectran.core.context.rule.HeaderActionRule

public class HeaderActionRule extends Object
The Class HeaderActionRule.

Created: 2016. 08. 23.

Since:
3.0.0
  • Constructor Details

    • HeaderActionRule

      public HeaderActionRule()
  • Method Details

    • getActionId

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

      public void setActionId(String actionId)
      Sets the action id.
      Parameters:
      actionId - the new action id
    • getHeaderItemRuleMap

      public ItemRuleMap getHeaderItemRuleMap()
      Gets the header item rule map.
      Returns:
      the header item rule map
    • setHeaderItemRuleMap

      public void setHeaderItemRuleMap(ItemRuleMap headerItemRuleMap)
      Sets the header rule map.
      Parameters:
      headerItemRuleMap - the new header item rule map
    • newHeaderItemRule

      public ItemRule newHeaderItemRule(String headerName)
      Adds a new header rule with the specified name and returns it.
      Parameters:
      headerName - the header name
      Returns:
      the header item rule
    • addHeaderItemRule

      public void addHeaderItemRule(ItemRule headerItemRule)
      Adds the header item rule.
      Parameters:
      headerItemRule - the header item rule
    • getHidden

      public 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(Boolean hidden)
      Sets whether to hide result of the action.
      Parameters:
      hidden - whether to hide result of the action
    • toString

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

      @NonNull public static HeaderActionRule newInstance(String id, Boolean hidden)
      Returns a new derived instance of HeaderActionRule.
      Parameters:
      id - the action id
      hidden - whether to hide result of the action
      Returns:
      the header action rule