public abstract class TemplatedViolatedConstraintNameExtracter extends java.lang.Object implements ViolatedConstraintNameExtracter
Constructor and Description |
---|
TemplatedViolatedConstraintNameExtracter() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
extractUsingTemplate(java.lang.String templateStart,
java.lang.String templateEnd,
java.lang.String message)
Extracts the constraint name based on a template (i.e., templateStartconstraintNametemplateEnd).
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
extractConstraintName
public TemplatedViolatedConstraintNameExtracter()
protected java.lang.String extractUsingTemplate(java.lang.String templateStart, java.lang.String templateEnd, java.lang.String message)
templateStart
- The pattern denoting the start of the constraint name within the message.templateEnd
- The pattern denoting the end of the constraint name within the message.message
- The templated error message containing the constraint name.Copyright © 2013. All Rights Reserved.