Interface ViolationCheckContext
-
- All Known Subinterfaces:
ViolationCheckContextWithViolations
public interface ViolationCheckContext
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetClassName()Returns the fully-qualified class name of the class being currently checkedjava.util.Map<java.lang.String,?>getUserData()Returns a map that can be used by the writer of a rule to read and write arbitrary data.<T> TgetUserData(java.lang.String key)<T> voidputUserData(java.lang.String key, T value)
-
-
-
Method Detail
-
getClassName
java.lang.String getClassName()
Returns the fully-qualified class name of the class being currently checked- Returns:
- the fully-qualified class name of the class being currently checked, or null if it's a pre/post rule
-
getUserData
java.util.Map<java.lang.String,?> getUserData()
Returns a map that can be used by the writer of a rule to read and write arbitrary data.- Returns:
- a user-data map, never null
-
getUserData
<T> T getUserData(java.lang.String key)
-
putUserData
<T> void putUserData(java.lang.String key, T value)
-
-