View Javadoc

1   package org.kuali.rice.krad.datadictionary.validation.constraint;
2   
3   import javax.xml.bind.annotation.XmlAccessType;
4   import javax.xml.bind.annotation.XmlAccessorType;
5   import javax.xml.bind.annotation.XmlElement;
6   
7   /**
8    * Prerequisite constraints require that some other attribute be non-empty in order for the constraint to be valid. 
9    * So, a 7-digit US phone number might have a prerequisite of an area code, or an address street2 might have a prerequisite
10   * that street1 is non-empty. 
11   * 
12   * @author Kuali Rice Team (rice.collab@kuali.org)
13   * @since 1.1
14   */
15  @XmlAccessorType(XmlAccessType.FIELD)
16  public class PrerequisiteConstraint extends BaseConstraint {
17  	@XmlElement
18      protected String attributePath;
19  
20  	public String getAttributePath() {
21  		return attributePath;
22  	}
23  
24  	public void setAttributePath(String attributePath) {
25  		this.attributePath = attributePath;
26  	}
27  }