BeanReferenceInspectable
public class BeanActionRule extends java.lang.Object implements BeanReferenceInspectable
Created: 2008. 03. 22 PM 5:50:35
Constructor | Description |
---|---|
BeanActionRule() |
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() |
|
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 BeanActionRule |
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() |
public java.lang.String getActionId()
public void setActionId(java.lang.String actionId)
actionId
- the new action idpublic java.lang.String getBeanId()
public void setBeanId(java.lang.String beanId)
beanId
- the bean idpublic java.lang.Class<?> getBeanClass()
public void setBeanClass(java.lang.Class<?> beanClass)
public java.lang.String getMethodName()
public void setMethodName(java.lang.String methodName)
methodName
- the new action method namepublic java.lang.reflect.Method getMethod()
public void setMethod(java.lang.reflect.Method method)
public boolean isRequiresTranslet()
public void setRequiresTranslet(boolean requiresTranslet)
public java.lang.Boolean getHidden()
public boolean isHidden()
public void setHidden(java.lang.Boolean hidden)
hidden
- whether to hide result of the actionpublic ItemRuleMap getArgumentItemRuleMap()
public void setArgumentItemRuleMap(ItemRuleMap argumentItemRuleMap)
argumentItemRuleMap
- the new argument item rule mappublic ItemRule newArgumentItemRule(java.lang.String argumentName)
argumentName
- the argument namepublic void addArgumentItemRule(ItemRule argumentItemRule)
argumentItemRule
- the new argument item rulepublic ItemRuleMap getPropertyItemRuleMap()
public void setPropertyItemRuleMap(ItemRuleMap propertyItemRuleMap)
propertyItemRuleMap
- the new property item rule mappublic ItemRule newPropertyItemRule(java.lang.String propertyName)
propertyName
- the property namepublic void addPropertyItemRule(ItemRule propertyItemRule)
propertyItemRule
- the new property item rulepublic BeanRefererType getBeanRefererType()
getBeanRefererType
in interface BeanReferenceInspectable
public java.lang.String toString()
toString
in class java.lang.Object
public static BeanActionRule newInstance(java.lang.String id, java.lang.String beanId, java.lang.String methodName, java.lang.Boolean hidden) throws IllegalRuleException
id
- the action idbeanId
- the bean idmethodName
- the method namehidden
- true if hiding the result of the action; false otherwiseIllegalRuleException
- if an illegal rule is foundCopyright © 2008–2018 The Aspectran Project. All rights reserved.