|
|||||||||
| Home >> All >> com >> thermidor >> util >> [ exception overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.thermidor.util.exception
Class ValidationDescriptor

java.lang.Objectcom.thermidor.util.exception.ValidationDescriptor
- All Implemented Interfaces:
- java.io.Serializable
- public class ValidationDescriptor
- extends java.lang.Object
- implements java.io.Serializable
- extends java.lang.Object
The purpose of the ValidationDescriptor class is provide a container for data validation errors that can be used in the DataValidationException and its subclasses
- Version:
- 1.0
| Field Summary | |
private java.lang.String |
description
The human meaningful description validation that took place |
private java.util.LinkedList |
elements
The list of error elements for this descriptor |
private java.lang.String |
subject
The subject of the validation |
| Constructor Summary | |
ValidationDescriptor()
Construct a default instance of the ValidationDescriptor. |
|
ValidationDescriptor(java.lang.String subject,
java.lang.String description)
Construct a new instance of an ValidationDescriptor with the specifed details. |
|
| Method Summary | |
void |
addErrorElement(java.lang.String toAdd)
Add an error element to this descriptor. |
java.lang.String |
getDescription()
Retrieve the description of the exception |
java.util.List |
getErrorElements()
Retrieve the list of error elements |
java.lang.String |
getSubject()
Retrieve the subject of the exception |
boolean |
hasErrorElements()
Does this instance have any error elements assigned to it. |
java.lang.String |
toString()
Return a string representation of this descriptor. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
elements
private java.util.LinkedList elements
- The list of error elements for this descriptor
subject
private java.lang.String subject
- The subject of the validation
description
private java.lang.String description
- The human meaningful description validation that took place
| Constructor Detail |
ValidationDescriptor
public ValidationDescriptor()
- Construct a default instance of the ValidationDescriptor.
ValidationDescriptor
public ValidationDescriptor(java.lang.String subject, java.lang.String description)
- Construct a new instance of an ValidationDescriptor with the specifed
details.
| Method Detail |
toString
public java.lang.String toString()
- Return a string representation of this descriptor.
getDescription
public java.lang.String getDescription()
- Retrieve the description of the exception
getSubject
public java.lang.String getSubject()
- Retrieve the subject of the exception
getErrorElements
public java.util.List getErrorElements()
- Retrieve the list of error elements
addErrorElement
public void addErrorElement(java.lang.String toAdd)
- Add an error element to this descriptor. In this case an error element
may be a validation error that was encounterd when validing input, or
similar
hasErrorElements
public boolean hasErrorElements()
- Does this instance have any error elements assigned to it.
|
|||||||||
| Home >> All >> com >> thermidor >> util >> [ exception overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
com.thermidor.util.exception.ValidationDescriptor