net.sf.jsefa.common.validator
Class ValidationError

java.lang.Object
  extended by net.sf.jsefa.common.validator.ValidationError
All Implemented Interfaces:
Serializable

public final class ValidationError
extends Object
implements Serializable

A validation error.

Author:
Norman Lahme-Huetig
See Also:
Serialized Form

Method Summary
static ValidationError create(String errorCode, String errorText, ObjectPathElement... relativeObjectPathElements)
          Constructs a new ValidationError.
 String getErrorCode()
           
 String getErrorText()
           
 List<ObjectPathElement> getRelativeObjectPath()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static ValidationError create(String errorCode,
                                     String errorText,
                                     ObjectPathElement... relativeObjectPathElements)
Constructs a new ValidationError.

Parameters:
errorCode - the error code
errorText - the error text
relativeObjectPathElements - the relative path to the field this error refers to
Returns:
a ValidationError

getErrorCode

public String getErrorCode()
Returns:
the error code

getErrorText

public String getErrorText()
Returns:
the error text

getRelativeObjectPath

public List<ObjectPathElement> getRelativeObjectPath()
Returns:
the relative object path


Copyright © 2014. All rights reserved.