org.sca4j.introspection.validation
Class ValidationUtils

java.lang.Object
  extended by org.sca4j.introspection.validation.ValidationUtils

public final class ValidationUtils
extends java.lang.Object

Version:
$Revision$ $Date$

Method Summary
static java.lang.String outputErrors(java.util.List<org.sca4j.host.contribution.ValidationFailure<?>> failures)
          Sorts and writes the list of error messages to a string.
static java.lang.String outputWarnings(java.util.List<org.sca4j.host.contribution.ValidationFailure<?>> failures)
          Sorts and writes the list of warning messages to a string.
static void writeErrors(java.io.PrintWriter writer, java.util.List<org.sca4j.host.contribution.ValidationFailure<?>> failures)
          Sorts and writes the list of errors to the given writer.
static void writeWarnings(java.io.PrintWriter writer, java.util.List<org.sca4j.host.contribution.ValidationFailure<?>> failures)
          Sorts and writes the list of warnings to the given writer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

outputErrors

public static java.lang.String outputErrors(java.util.List<org.sca4j.host.contribution.ValidationFailure<?>> failures)
Sorts and writes the list of error messages to a string.

Parameters:
failures - the collection of failures to write
Returns:
the string containing the validation messages

outputWarnings

public static java.lang.String outputWarnings(java.util.List<org.sca4j.host.contribution.ValidationFailure<?>> failures)
Sorts and writes the list of warning messages to a string.

Parameters:
failures - the collection of failures to write
Returns:
the string containing the validation messages

writeErrors

public static void writeErrors(java.io.PrintWriter writer,
                               java.util.List<org.sca4j.host.contribution.ValidationFailure<?>> failures)
Sorts and writes the list of errors to the given writer.

Parameters:
writer - the writer
failures - the collection of failures to write

writeWarnings

public static void writeWarnings(java.io.PrintWriter writer,
                                 java.util.List<org.sca4j.host.contribution.ValidationFailure<?>> failures)
Sorts and writes the list of warnings to the given writer.

Parameters:
writer - the writer
failures - the collection of failures to write


Copyright © 2008-2011 Service Symphony. All Rights Reserved.