com.xebialabs.deployit.plugin.was.validator
Annotation Type SingletonCollection


@Retention(value=RUNTIME)
@Target(value=FIELD)
public @interface SingletonCollection

This rule enables you to restrict a collection property to contain only zero or one elements. Type = exclusive-property Attributes: message: override the default error message


Optional Element Summary
 java.lang.String message
           
 

message

public abstract java.lang.String message
Default:
"The collection property can not contain more than 1 item, found: %s"