From d479253768d296a40b4f699e1de9b03c7146a97a Mon Sep 17 00:00:00 2001 From: Jesse Morgan Date: Tue, 3 Dec 2013 14:03:28 -0800 Subject: Adding javadocs and Carbonado User Guide --- .../carbonado/constraint/LengthConstraint.html | 247 +++++++++++++++++++++ 1 file changed, 247 insertions(+) create mode 100644 apidocs/com/amazon/carbonado/constraint/LengthConstraint.html (limited to 'apidocs/com/amazon/carbonado/constraint/LengthConstraint.html') diff --git a/apidocs/com/amazon/carbonado/constraint/LengthConstraint.html b/apidocs/com/amazon/carbonado/constraint/LengthConstraint.html new file mode 100644 index 0000000..378a28b --- /dev/null +++ b/apidocs/com/amazon/carbonado/constraint/LengthConstraint.html @@ -0,0 +1,247 @@ + + + + + + +LengthConstraint (Carbonado 1.2.3 API) + + + + + + + +
+ + + + + +
+ + + +
+
com.amazon.carbonado.constraint
+

Annotation Type LengthConstraint

+
+
+
+
    +
  • +
    +
    +
    @Documented
    +@Retention(value=RUNTIME)
    +@Target(value=METHOD)
    +@ConstraintDefinition
    +public @interface LengthConstraint
    +
    Limits the value of a property to lie within a specific length range. The + property value may be a String, CharSequence, or any kind of array. If the + set property length is outside the range, an IllegalArgumentException is + thrown. + +

    Example:

    + public interface UserInfo extends Storable {
    +     String getFirstName();
    +     @LengthConstraint(min=1, max=50)
    +     void setFirstName(String name);
    +
    +     ...
    + }
    + 
    +
    Author:
    +
    Brian S O'Neill
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Optional Element Summary

      + + + + + + + + + + + + + + +
      Optional Elements 
      Modifier and TypeOptional Element and Description
      intmax +
      Specify maximum allowed length for property.
      +
      intmin +
      Specify minimum allowed length for property.
      +
      +
    • +
    +
  • +
+
+
+
    +
  • + +
      +
    • + + +

      Element Detail

      + + + +
        +
      • +

        min

        +
        public abstract int min
        +
        Specify minimum allowed length for property. Default is zero.
        +
        +
        Default:
        +
        0
        +
        +
      • +
      + + + +
        +
      • +

        max

        +
        public abstract int max
        +
        Specify maximum allowed length for property. Default is unlimited.
        +
        +
        Default:
        +
        2147483647
        +
        +
      • +
      +
    • +
    +
  • +
+
+
+ + +
+ + + + + +
+ + +

Copyright © 2006-2013 Amazon Technologies, Inc.. All Rights Reserved.

+ + -- cgit v1.2.3