001 package org.kuali.rice.krad.datadictionary.validation.constraint;
002
003 import java.util.ArrayList;
004 import java.util.List;
005
006 import javax.xml.bind.annotation.XmlAccessType;
007 import javax.xml.bind.annotation.XmlAccessorType;
008 import javax.xml.bind.annotation.XmlElement;
009
010 /**
011 * This is a constraint that limits attribute values to some subset of valid characters or to match a particular regular expression.
012 *
013 * For example:
014 * - To limit to both upper and lower-case letters, value can be set to "[A-Za-z]*"
015 * - To limit to any character except carriage returns and line feeds, value can be set to "[^\n\r]*"
016 *
017 *
018 * @author Kuali Student Team
019 * @since 1.1
020 */
021 @XmlAccessorType(XmlAccessType.FIELD)
022 public class ValidCharactersConstraint extends BaseConstraint {
023
024 @XmlElement
025 protected String value;
026
027 /**
028 * The Java based regex for valid characters
029 * This value should include the ^ and $ symbols if needed
030 * @return the value
031 */
032 public String getValue() {
033 return value;
034 }
035
036 /**
037 * @param value the value to set
038 */
039 public void setValue(String value) {
040 this.value = value;
041 }
042
043
044 }