Package nz.org.riskscape.engine
Class CustomCode
java.lang.Object
nz.org.riskscape.engine.CustomCode
- All Implemented Interfaces:
ProblemCode
A unique/one-off custom code to use as a Problem's code. Problem.getCode().toKey() becomes the canonical name of the object that generated the Problem, with the given suffix appended.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
CustomCode
-
-
Method Details
-
getAffectedClass
-
toKey
Description copied from interface:ProblemCode
A key to use for i18n look ups to describe this problem.
- Specified by:
toKey
in interfaceProblemCode
-
name
Description copied from interface:ProblemCode
The name of this code, unique among all other codes in its class
- Specified by:
name
in interfaceProblemCode
-