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 void
addArgumentItemRule(ItemRule argumentItemRule)
Adds the argument item rule.void
addPropertyItemRule(ItemRule propertyItemRule)
Adds the property item rule.java.lang.String
getActionId()
Gets the action id.ItemRuleMap
getArgumentItemRuleMap()
Gets the argument item rule map.java.lang.Class<?>
getBeanClass()
java.lang.String
getBeanId()
Gets bean id.BeanRefererType
getBeanRefererType()
Returns the Bean Referrer Type.java.lang.Boolean
getHidden()
Returns whether to hide result of the action.java.lang.reflect.Method
getMethod()
java.lang.String
getMethodName()
Gets the action method name.ItemRuleMap
getPropertyItemRuleMap()
Gets the property item rule map.boolean
isHidden()
Returns whether to hide result of the action.boolean
isRequiresTranslet()
ItemRule
newArgumentItemRule(java.lang.String argumentName)
Adds a new argument rule with the specified name and returns it.static InvokeActionRule
newInstance(java.lang.String methodName, java.lang.Boolean hidden)
Returns a new instance of BeanActionRule.static InvokeActionRule
newInstance(java.lang.String id, java.lang.String beanId, java.lang.String methodName, java.lang.Boolean hidden)
Returns a new instance of BeanActionRule.ItemRule
newPropertyItemRule(java.lang.String propertyName)
Adds a new property rule with the specified name and returns it.void
setActionId(java.lang.String actionId)
Sets the action id.void
setArgumentItemRuleMap(ItemRuleMap argumentItemRuleMap)
Sets the argument item rule map.void
setBeanClass(java.lang.Class<?> beanClass)
void
setBeanId(java.lang.String beanId)
Sets bean id.void
setHidden(java.lang.Boolean hidden)
Sets whether to hide result of the action.void
setMethod(java.lang.reflect.Method method)
void
setMethodName(java.lang.String methodName)
Sets the action method name.void
setPropertyItemRuleMap(ItemRuleMap propertyItemRuleMap)
Sets the property item rule map.void
setRequiresTranslet(boolean requiresTranslet)
java.lang.String
toString()
-
-
-
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:BeanReferenceable
Returns the Bean Referrer Type.- Specified by:
getBeanRefererType
in interfaceBeanReferenceable
- Returns:
- the Bean Referrer Type
-
toString
public java.lang.String toString()
- Overrides:
toString
in 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
-
-