Class FieldDefinition

java.lang.Object
com.echothree.util.common.validation.FieldDefinition
All Implemented Interfaces:
Serializable

public class FieldDefinition extends Object implements Serializable
See Also:
  • Constructor Details

  • Method Details

    • setFieldName

      public void setFieldName(String fieldName)
      fieldName is a colon separated list of values. The first value should be the name of the field in the submitted form. Following that, there may be zero or more values that should be in the format "name,field" - where name is the name of the parameter, and field is the form field that the parameter's value may be found in. For example: "unitPrice:currencyIsoName,currencyIsoName"
    • getFieldName

      public String getFieldName()
    • setFieldType

      public void setFieldType(FieldType fieldType)
    • getFieldType

    • setIsRequired

      public void setIsRequired(Boolean isRequired)
    • getIsRequired

    • setMinimumValue

      public void setMinimumValue(Long minimumValue)
      minimumValue has two meanings. When dealing with Integers or Longs, it sets a lower limit for the acceptable value of the field, if its not equal to null. However, if the field is a String, it will set a minimum length required for the String, if its not equal to null.
      Parameters:
      minimumValue - The new minimumValue, may be null
    • getMinimumValue

      Get the current minimumValue
      Returns:
      The current minimumValue, may be null
    • setMaximumValue

      public void setMaximumValue(Long maximumValue)
      maximumValue has two meanings. When dealing with Integers or Longs, it sets an upper limit for the acceptable value of the field, if its not equal to null. However, if the field is a String, it will set a maximum length for the String, if its not equal to null.
      Parameters:
      maximumValue - The new maximumValue, may be null
    • getMaximumValue

      Get the current maximumValue
      Returns:
      The current maximumValue, may be null