org.qi4j.library.alarm
Annotation Type AlarmNameFormat


@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
           
 

minimumLength

public abstract int minimumLength
Default:
5