com.acsinet_solutions.util.validator
Class SimpleValidationIssue
java.lang.Object
com.acsinet_solutions.util.validator.SimpleValidationIssue
- All Implemented Interfaces:
- ValidationIssue, java.io.Serializable
public class SimpleValidationIssue
- extends java.lang.Object
- implements ValidationIssue
Plain-text validation issue, used in cases where internationalization of
messages is not a concern, or it is performed outside the scope of this
class. Instances of this class hold actual message texts that need no
additional interpretation mechanisms before being printed.
- Author:
- Santiago Arriaga
- See Also:
- Serialized Form
|
Method Summary |
java.lang.String |
getMessage(MessageFactory factory)
MessageFactory reference is not used in this implementation, and may
be ignored. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SimpleValidationIssue
public SimpleValidationIssue(java.lang.String text)
- Create a validation issue.
- Parameters:
text - A not-null not-empty String instance
getMessage
public final java.lang.String getMessage(MessageFactory factory)
- MessageFactory reference is not used in this implementation, and may
be ignored. This method always returns the internal text reference.
- Specified by:
getMessage in interface ValidationIssue
toString
public final java.lang.String toString()
- Overrides:
toString in class java.lang.Object