001 package org.kuali.student.common.dictionary.dto;
002
003 import javax.xml.bind.annotation.XmlAccessType;
004 import javax.xml.bind.annotation.XmlAccessorType;
005 import javax.xml.bind.annotation.XmlElement;
006
007 import org.kuali.student.common.validation.dto.ValidationResultInfo.ErrorLevel;
008
009 @XmlAccessorType(XmlAccessType.FIELD)
010 public class RequiredConstraint {
011 @XmlElement
012 protected String fieldPath;
013 @XmlElement
014 protected String fieldPathMessageKey;
015 @XmlElement
016 protected ErrorLevel errorLevel = ErrorLevel.ERROR;
017
018 public String getFieldPath() {
019 return fieldPath;
020 }
021
022 public void setFieldPath(String fieldPath) {
023 this.fieldPath = fieldPath;
024 }
025
026 public ErrorLevel getErrorLevel() {
027 return errorLevel;
028 }
029
030 public void setErrorLevel(ErrorLevel errorLevel) {
031 this.errorLevel = errorLevel;
032 }
033
034 public String getFieldPathMessageId() {
035 return fieldPathMessageKey;
036 }
037
038 public void setFieldPathMessageId(String fieldPathMessageKey) {
039 this.fieldPathMessageKey = fieldPathMessageKey;
040 }
041
042 }