1 /* 2 * NotNullConstraint.java 3 * 4 * Created on 8 Июль 2006 г., 10:31 5 */ 6 7 package org.weda.property.impl; 8 9 import org.weda.property.ConstraintException; 10 11 /** 12 * 13 * @author Mikhail Titov 14 */ 15 public class NotNullConstraint extends AbstractConstraint{ 16 17 public void check(Object value, Object[] parameters) 18 throws ConstraintException 19 { 20 if (value==null) 21 fail(); 22 } 23 24 public Class[] getParameterTypes(Class valueType) 25 throws ConstraintException 26 { 27 return null; 28 } 29 30 }