Package com.aspectran.core.context.rule
Class InvokeActionRule
- java.lang.Object
-
- com.aspectran.core.context.rule.InvokeActionRule
-
- All Implemented Interfaces:
BeanReferenceable
public class InvokeActionRule extends java.lang.Object implements BeanReferenceable
The Class InvokeActionRule.Created: 2008. 03. 22 PM 5:50:35
-
-
Constructor Summary
Constructors Constructor Description InvokeActionRule()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddArgumentItemRule(ItemRule argumentItemRule)Adds the argument item rule.voidaddPropertyItemRule(ItemRule propertyItemRule)Adds the property item rule.java.lang.StringgetActionId()Gets the action id.ItemRuleMapgetArgumentItemRuleMap()Gets the argument item rule map.java.lang.Class<?>getBeanClass()java.lang.StringgetBeanId()Gets bean id.BeanRefererTypegetBeanRefererType()Returns the Bean Referrer Type.java.lang.BooleangetHidden()Returns whether to hide result of the action.java.lang.reflect.MethodgetMethod()java.lang.StringgetMethodName()Gets the action method name.ItemRuleMapgetPropertyItemRuleMap()Gets the property item rule map.booleanisHidden()Returns whether to hide result of the action.booleanisRequiresTranslet()ItemRulenewArgumentItemRule(java.lang.String argumentName)Adds a new argument rule with the specified name and returns it.static InvokeActionRulenewInstance(java.lang.String methodName, java.lang.Boolean hidden)Returns a new instance of BeanActionRule.static InvokeActionRulenewInstance(java.lang.String id, java.lang.String beanId, java.lang.String methodName, java.lang.Boolean hidden)Returns a new instance of BeanActionRule.ItemRulenewPropertyItemRule(java.lang.String propertyName)Adds a new property rule with the specified name and returns it.voidsetActionId(java.lang.String actionId)Sets the action id.voidsetArgumentItemRuleMap(ItemRuleMap argumentItemRuleMap)Sets the argument item rule map.voidsetBeanClass(java.lang.Class<?> beanClass)voidsetBeanId(java.lang.String beanId)Sets bean id.voidsetHidden(java.lang.Boolean hidden)Sets whether to hide result of the action.voidsetMethod(java.lang.reflect.Method method)voidsetMethodName(java.lang.String methodName)Sets the action method name.voidsetPropertyItemRuleMap(ItemRuleMap propertyItemRuleMap)Sets the property item rule map.voidsetRequiresTranslet(boolean requiresTranslet)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 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
-
getBeanRefererType
public BeanRefererType getBeanRefererType()
Description copied from interface:BeanReferenceableReturns the Bean Referrer Type.- Specified by:
getBeanRefererTypein interfaceBeanReferenceable- Returns:
- the Bean Referrer Type
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
newInstance
public static InvokeActionRule 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 idbeanId- the bean idmethodName- the method namehidden- true if hiding the result of the action; false otherwise- Returns:
- the invoke action rule
- Throws:
IllegalRuleException- if an illegal rule is found
-
newInstance
public static InvokeActionRule newInstance(java.lang.String methodName, java.lang.Boolean hidden) throws IllegalRuleException
Returns a new instance of BeanActionRule.- Parameters:
methodName- the method namehidden- true if hiding the result of the action; false otherwise- Returns:
- the invoke action rule
- Throws:
IllegalRuleException- if an illegal rule is found
-
-