/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.amazonaws.mturk.model; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlAttribute; import javax.xml.bind.annotation.XmlRootElement; /** * * @author Jeremy Custenborder */ @XmlAccessorType(XmlAccessType.FIELD) @XmlRootElement(name = "Length", namespace = QuestionForm.NS) public class LengthConstraint implements Constraint { @XmlAttribute(name = "minLength", required = false) Integer minValue; @XmlAttribute(name = "maxLength", required = false) Integer maxValue; public Integer getMinValue() { return minValue; } public void setMinValue(Integer minValue) { this.minValue = minValue; } public Integer getMaxValue() { return maxValue; } public void setMaxValue(Integer maxValue) { this.maxValue = maxValue; } }