org.inxar.affirm
Interface Detail
- public interface Detail
A Detail
acts as a container for one particular error
message that originated from a single invalid
Affirmation.affirm(Object)
invocation.
Method Summary |
java.lang.String |
getMessage()
Returns an error message that originated from the
Affirmation object. |
java.lang.Object |
getValue()
Returns the argument value which caused the
Affirmation.affirm(Input) to fail. |
boolean |
hasNext()
Detail objects are typically implemented as a
linked list. |
Detail |
next()
Returns the next detail in the list or null if this is the last
one. |
getValue
public java.lang.Object getValue()
- Returns the argument value which caused the
Affirmation.affirm(Input)
to fail.
getMessage
public java.lang.String getMessage()
- Returns an error message that originated from the
Affirmation
object.
hasNext
public boolean hasNext()
Detail
objects are typically implemented as a
linked list. To run through all the error details for a
certain key, evaluate a do .. while
statment until
the Detail.hasNext()
method returns
false
.
next
public Detail next()
- Returns the next detail in the list or null if this is the last
one.