Package org.apache.any23.validator
Interface RuleContext<T>
-
- All Known Implementing Classes:
DefaultRuleContext
public interface RuleContext<T>
- Author:
- Michele Mostarda (mostarda@fbk.eu), Davide Palmisano (palmisano@fbk.eu)
- See Also:
Rule
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
getData(String name)
Retrieves a registered object.void
putData(String name, T value)
Puts a data within the context.void
removeData(String name)
Removes a data from the context.
-
-
-
Method Detail
-
putData
void putData(String name, T value)
Puts a data within the context.- Parameters:
name
- rule keyvalue
- rule value
-
getData
T getData(String name)
Retrieves a registered object.- Parameters:
name
- rule key- Returns:
- a registered object,
null
if not found.
-
removeData
void removeData(String name)
Removes a data from the context.- Parameters:
name
- remove entry with this name
-
-