org.apache.myfaces.extensions.cdi.message.impl.spi
Interface ArgumentFilter
- All Superinterfaces:
- Serializable
- All Known Implementing Classes:
- DefaultArgumentFilter
public interface ArgumentFilter
- extends Serializable
- Author:
- Gerhard Petracek
Method Summary |
String |
getDefaultValue(String expressionBody)
Allows to customize the default value e.g. for restricted or unresolved message arguments |
boolean |
isArgumentAllowed(String expressionBody,
Object value)
Allows to filter resolved argument values e.g. based on custom rules. |
isArgumentAllowed
boolean isArgumentAllowed(String expressionBody,
Object value)
- Allows to filter resolved argument values e.g. based on custom rules.
Return false to trigger
getDefaultValue(String)
- Parameters:
expressionBody
- the body of the expression used in the messagevalue
- the resolved value
- Returns:
- true if the given value should be used - false otherwise
getDefaultValue
String getDefaultValue(String expressionBody)
- Allows to customize the default value e.g. for restricted or unresolved message arguments
- Parameters:
expressionBody
- the body of the expression used in the message
- Returns:
- the default value for the given expression
Copyright © 2010 The Apache Software Foundation. All Rights Reserved.