@Documented @Retention(value=RUNTIME) @Target(value=METHOD) @ConstraintDefinition public @interface LengthConstraint
Example:
public interface UserInfo extends Storable { String getFirstName(); @LengthConstraint(min=1, max=50) void setFirstName(String name); ... }
Copyright © 2006-2013 Amazon Technologies, Inc.. All Rights Reserved.