@Documented @Retention(value=RUNTIME) @Target(value=METHOD) @ConstraintDefinition public @interface TextConstraint
Example:
public interface UserInfo extends Storable {
char isActive();
@TextConstraint(allowed={"Y", "N"})
void setActive(char value);
...
}
IntegerConstraint,
FloatConstraint| Modifier and Type | Optional Element and Description |
|---|---|
java.lang.String[] |
allowed
Specific allowed values for property.
|
java.lang.String[] |
disallowed
Specific disallowed values for property.
|
Copyright © 2006-2013 Amazon Technologies, Inc.. All Rights Reserved.