Package com.aspectran.core.context.rule
Class IncludeActionRule
java.lang.Object
com.aspectran.core.context.rule.IncludeActionRule
The Class IncludeActionRule.
Created: 2008. 06. 05 PM 9:25:40
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAttributeItemRule
(ItemRule attributeItemRule) Adds the attribute item rule.void
addParameterItemRule
(ItemRule parameterItemRule) Adds the parameter item rule.Gets the action id.Gets the attribute item rule map.Returns whether to hide result of the action.Gets the parameter item rule map.Gets the translet name.isHidden()
Returns whether to hide result of the action.newAttributeItemRule
(String attributeName) Adds a new attribute rule with the specified name and returns it.static IncludeActionRule
newInstance
(String id, String transletName, String method, Boolean hidden) Returns a new instance of IncludeActionRule.newParameterItemRule
(String parameterName) Adds a new parameter rule with the specified name and returns it.void
setActionId
(String actionId) Sets the id.void
setAttributeItemRuleMap
(ItemRuleMap attributeItemRuleMap) Sets the attribute item rule map.void
Sets whether to hide result of the action.void
setMethodType
(MethodType methodType) void
setParameterItemRuleMap
(ItemRuleMap parameterItemRuleMap) Sets the attribute item rule map.void
setTransletName
(String transletName) Sets the translet name.toString()
-
Constructor Details
-
IncludeActionRule
public IncludeActionRule()
-
-
Method Details
-
getActionId
Gets the action id.- Returns:
- the action id
-
setActionId
Sets the id.- Parameters:
actionId
- the new id
-
getTransletName
Gets the translet name.- Returns:
- the translet name
-
setTransletName
Sets the translet name.- Parameters:
transletName
- the new translet name
-
getMethodType
-
setMethodType
-
getParameterItemRuleMap
Gets the parameter item rule map.- Returns:
- the parameter item rule map
-
setParameterItemRuleMap
Sets the attribute item rule map.- Parameters:
parameterItemRuleMap
- the new attribute item rule map
-
newParameterItemRule
Adds a new parameter rule with the specified name and returns it.- Parameters:
parameterName
- the parameter name- Returns:
- the parameter item rule
-
addParameterItemRule
Adds the parameter item rule.- Parameters:
parameterItemRule
- the parameter item rule
-
getAttributeItemRuleMap
Gets the attribute item rule map.- Returns:
- the attribute item rule map
-
setAttributeItemRuleMap
Sets the attribute item rule map.- Parameters:
attributeItemRuleMap
- the new attribute item rule map
-
newAttributeItemRule
Adds a new attribute rule with the specified name and returns it.- Parameters:
attributeName
- the attribute name- Returns:
- the attribute item rule
-
addAttributeItemRule
Adds the attribute item rule.- Parameters:
attributeItemRule
- the attribute item rule
-
getHidden
Returns whether to hide result of the action.- Returns:
- true, if this action is hidden
-
isHidden
Returns whether to hide result of the action.- Returns:
- true, if this action is hidden
-
setHidden
Sets whether to hide result of the action.- Parameters:
hidden
- whether to hide result of the action
-
toString
-
newInstance
@NonNull public static IncludeActionRule newInstance(String id, String transletName, String method, Boolean hidden) throws IllegalRuleException Returns a new instance of IncludeActionRule.- Parameters:
id
- the action idtransletName
- the translet namemethod
- the request method typehidden
- whether to hide result of the action- Returns:
- the include action rule
- Throws:
IllegalRuleException
- if an illegal rule is found
-