1 19 20 package org.netbeans.modules.j2ee.sun.validation.constraints; 21 22 import org.netbeans.modules.j2ee.sun.validation.Failure; 23 24 33 public class ConstraintFailure implements Failure{ 34 35 38 private String constraint = null; 39 40 43 private String name = null; 44 45 48 private Object value = null; 49 50 53 private String failureMessage = null; 54 55 56 59 private String genericFailureMessage = null; 60 61 62 63 public ConstraintFailure(String constraint, 64 Object value, String name, String failureMessage, 65 String genericFailureMessage) { 66 this.constraint = constraint; 67 this.value = value; 68 this.failureMessage = failureMessage; 69 this.name = name; 70 this.genericFailureMessage = genericFailureMessage; 71 } 72 73 74 77 public String getConstraint(){ 78 return constraint; 79 } 80 81 82 86 public Object getFailedValue(){ 87 return value; 88 } 89 90 91 94 public String failureMessage(){ 95 return failureMessage; 96 } 97 98 99 103 public String getName(){ 104 return name; 105 } 106 107 108 111 public String getGenericfailureMessage(){ 112 return genericFailureMessage; 113 } 114 } 115 | Popular Tags |