1 23 24 28 29 package com.sun.enterprise.tools.common.validation.constraints; 30 31 import com.sun.enterprise.tools.common.validation.Failure; 32 33 42 public class ConstraintFailure implements Failure{ 43 44 47 private String constraint = null; 48 49 52 private String name = null; 53 54 57 private Object value = null; 58 59 62 private String failureMessage = null; 63 64 65 68 private String genericFailureMessage = null; 69 70 71 72 public ConstraintFailure(String constraint, 73 Object value, String name, String failureMessage, 74 String genericFailureMessage) { 75 this.constraint = constraint; 76 this.value = value; 77 this.failureMessage = failureMessage; 78 this.name = name; 79 this.genericFailureMessage = genericFailureMessage; 80 } 81 82 83 86 public String getConstraint(){ 87 return constraint; 88 } 89 90 91 95 public Object getFailedValue(){ 96 return value; 97 } 98 99 100 103 public String failureMessage(){ 104 return failureMessage; 105 } 106 107 108 112 public String getName(){ 113 return name; 114 } 115 116 117 120 public String getGenericfailureMessage(){ 121 return genericFailureMessage; 122 } 123 } 124 | Popular Tags |