Package com.aspectran.core.context.rule
Class IncludeActionRule
- java.lang.Object
-
- com.aspectran.core.context.rule.IncludeActionRule
-
public class IncludeActionRule extends java.lang.ObjectThe Class IncludeActionRule.Created: 2008. 06. 05 PM 9:25:40
-
-
Constructor Summary
Constructors Constructor Description IncludeActionRule()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAttributeItemRule(ItemRule attributeItemRule)Adds the attribute item rule.voidaddParameterItemRule(ItemRule parameterItemRule)Adds the parameter item rule.java.lang.StringgetActionId()Gets the action id.ItemRuleMapgetAttributeItemRuleMap()Gets the attribute item rule map.java.lang.BooleangetHidden()Returns whether to hide result of the action.MethodTypegetMethodType()ItemRuleMapgetParameterItemRuleMap()Gets the parameter item rule map.java.lang.StringgetTransletName()Gets the translet name.java.lang.BooleanisHidden()Returns whether to hide result of the action.ItemRulenewAttributeItemRule(java.lang.String attributeName)Adds a new attribute rule with the specified name and returns it.static IncludeActionRulenewInstance(java.lang.String id, java.lang.String transletName, java.lang.String method, java.lang.Boolean hidden)Returns a new instance of IncludeActionRule.ItemRulenewParameterItemRule(java.lang.String parameterName)Adds a new parameter rule with the specified name and returns it.voidsetActionId(java.lang.String actionId)Sets the id.voidsetAttributeItemRuleMap(ItemRuleMap attributeItemRuleMap)Sets the attribute item rule map.voidsetHidden(java.lang.Boolean hidden)Sets whether to hide result of the action.voidsetMethodType(MethodType methodType)voidsetParameterItemRuleMap(ItemRuleMap parameterItemRuleMap)Sets the attribute item rule map.voidsetTransletName(java.lang.String transletName)Sets the translet name.java.lang.StringtoString()
-
-
-
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 id.- Parameters:
actionId- the new id
-
getTransletName
public java.lang.String getTransletName()
Gets the translet name.- Returns:
- the translet name
-
setTransletName
public void setTransletName(java.lang.String transletName)
Sets the translet name.- Parameters:
transletName- the new translet name
-
getMethodType
public MethodType getMethodType()
-
setMethodType
public void setMethodType(MethodType methodType)
-
getParameterItemRuleMap
public ItemRuleMap getParameterItemRuleMap()
Gets the parameter item rule map.- Returns:
- the parameter item rule map
-
setParameterItemRuleMap
public void setParameterItemRuleMap(ItemRuleMap parameterItemRuleMap)
Sets the attribute item rule map.- Parameters:
parameterItemRuleMap- the new attribute item rule map
-
newParameterItemRule
public ItemRule newParameterItemRule(java.lang.String parameterName)
Adds a new parameter rule with the specified name and returns it.- Parameters:
parameterName- the parameter name- Returns:
- the parameter item rule
-
addParameterItemRule
public void addParameterItemRule(ItemRule parameterItemRule)
Adds the parameter item rule.- Parameters:
parameterItemRule- the parameter item rule
-
getAttributeItemRuleMap
public ItemRuleMap getAttributeItemRuleMap()
Gets the attribute item rule map.- Returns:
- the attribute item rule map
-
setAttributeItemRuleMap
public void setAttributeItemRuleMap(ItemRuleMap attributeItemRuleMap)
Sets the attribute item rule map.- Parameters:
attributeItemRuleMap- the new attribute item rule map
-
newAttributeItemRule
public ItemRule newAttributeItemRule(java.lang.String attributeName)
Adds a new attribute rule with the specified name and returns it.- Parameters:
attributeName- the attribute name- Returns:
- the attribute item rule
-
addAttributeItemRule
public void addAttributeItemRule(ItemRule attributeItemRule)
Adds the attribute item rule.- Parameters:
attributeItemRule- the attribute item rule
-
getHidden
public java.lang.Boolean getHidden()
Returns whether to hide result of the action.- Returns:
- true, if this action is hidden
-
isHidden
public java.lang.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
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
newInstance
public static IncludeActionRule newInstance(java.lang.String id, java.lang.String transletName, java.lang.String method, java.lang.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
-
-