|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@ConstraintDeclaration @Retention(value=RUNTIME) @Constraints(value=AlarmNameFormat.AlarmNameConstraint.class) public @interface AlarmNameFormat
The definition of the format of AlarmPoint system names.
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 systemName();
}
The obvious downside is that the Property become publicly visible to the users of AlarmPoint.
Optional Element Summary | |
---|---|
int |
minimumLength
|
public abstract int minimumLength
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |