|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deri.wsmo4j.validator.ValidationMessageImpl
org.deri.wsmo4j.validator.ValidationErrorImpl
public class ValidationErrorImpl
Gives Structure to a validation error.
Created on Jul 28, 2005 Committed by $Author: nathaliest $ $Source$,
ValidationError| Field Summary |
|---|
| Fields inherited from interface org.wsmo.validator.ValidationError |
|---|
ANON_ID_ERR, ATTR_CARD_ERR, ATTR_CONS_ERR, ATTR_ERR, ATTR_FEAT_ERR, AX_ATOMIC_ERR, AX_BODY_ERR, AX_EQUIV_ERR, AX_FORMULA_ERR, AX_GRAPH_ERR, AX_HEAD_ERR, AX_IMP_ERR, AX_IMPL_BY_ERR, AX_LHS_ERR, AX_RHS_ERR, AX_SAFETY_COND, CONC_ERR, ID_ERR, IMPORT_ERR, META_MODEL_ERR, REL_ARITY_ERR, REL_CONS_ERR, REL_ERR, REL_INST_ERR |
| Constructor Summary | |
|---|---|
ValidationErrorImpl(org.wsmo.common.Entity entity,
String reason,
String variant)
|
|
ValidationErrorImpl(org.wsmo.common.Entity entity,
String reason,
String variant,
String quickFix)
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
The equals method implements an equivalence relation
on non-null object references. |
String |
getViolatesVariant()
|
int |
hashCode()
If two objects are equal according to the equals(Object) method, then calling
the hashCode method on each of the two objects must produce the same integer
result. |
String |
toString()
Formats the String representation of the ValidationError. |
| Methods inherited from class org.deri.wsmo4j.validator.ValidationMessageImpl |
|---|
getEntity, getQuickFix, getReason |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.wsmo.validator.ValidationMessage |
|---|
getEntity, getQuickFix, getReason |
| Constructor Detail |
|---|
public ValidationErrorImpl(org.wsmo.common.Entity entity,
String reason,
String variant)
public ValidationErrorImpl(org.wsmo.common.Entity entity,
String reason,
String variant,
String quickFix)
| Method Detail |
|---|
public String getViolatesVariant()
getViolatesVariant in interface org.wsmo.validator.ValidationErrorValidationError.getViolatesVariant()public String toString()
toString in class ValidationMessageImplObject.toString()public boolean equals(Object obj)
The equals method implements an equivalence relation
on non-null object references. ValidationWarnings are equal if their
warning and quickFix messages are equal.
It is generally necessary to override the hashCode method whenever this method
is overridden.
equals in class Objecto - the reference object with which to compare.
true if this object is the same as the obj
argument; false otherwise.Object.equals(java.lang.Object),
Object.hashCode()public int hashCode()
If two objects are equal according to the equals(Object) method, then calling
the hashCode method on each of the two objects must produce the same integer
result. However, it is not required that if two objects are unequal according to
the equals(Object) method, then calling the hashCode method on each of the two
objects must produce distinct integer results.
This method should be overriden, when the equals(Object) method is overriden.
hashCode in class ObjectObject.hashCode(),
Object.equals(Object)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||