Methods Summary |
---|
public void | gui(java.util.Collection collection)Displays validation failures in a GUI mode.
assert false :
(BundleReader.getValue("MSG_not_yet_implemented")); //NOI18N
|
protected boolean | isFailureObject(java.lang.Object object)Determines whether the given object is of
type {@link Failure}
return (object instanceof Failure);
|
protected void | reportError(java.lang.Object object)Reports an error message.
String format = BundleReader.getValue(
"MSG_does_not_support_displaying_of"); //NOI18N
Class classObject = object.getClass();
Object[] arguments = new Object[]{"Display", //NOI18N
classObject.getName()};
String message =
MessageFormat.format(format, arguments);
assert false : message;
|
protected void | reportFailure(java.lang.String message)Systems out the failure message.
System.out.println(message);
|
public void | text(java.util.Collection collection)Displays validation failures in a command mode.
It systems out the failure messages.
Object object = null;
Failure failure = null;
if(collection != null){
Iterator iterator = collection.iterator();
while(iterator.hasNext()){
object = iterator.next();
boolean failureObect = isFailureObject(object);
if(failureObect){
failure = (Failure) object;
reportFailure(failure.failureMessage());
} else {
reportError(object);
}
}
}
|