net.sf.jsefa.common.validator
Class ValidationError
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
create
public static ValidationError create(String errorCode,
String errorText,
ObjectPathElement... relativeObjectPathElements)
- Constructs a new
ValidationError
.
- Parameters:
errorCode
- the error codeerrorText
- the error textrelativeObjectPathElements
- 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.