@ConstraintDeclaration @Retention(value=RUNTIME) @Constraints(value=AlarmNameFormat.AlarmNameConstraint.class) public @interface AlarmNameFormat
AlarmPoint Names must contain characters. The default is 5 characters but can possibly be overridden. It must also not only contain white spaces. To override the default minimumLength, specify the minimumLength value in the annotation, such as;
public interface ExpressiveAlarm extends AlarmPoint
{
@AlarmNameFormat(minimumLength=25)
Property<String> systemName();
}
The obvious downside is that the Property become publicly visible to the users of AlarmPoint.
Modifier and Type | Optional Element and Description |
---|---|
int |
minimumLength |