public class NotEmptyXhtmlConstraint extends Constraint
Modifier and Type | Field and Description |
---|---|
static String |
CLASS_VERSION
The version of this class.
|
mErrorMessage
Constructor and Description |
---|
NotEmptyXhtmlConstraint(String pErrorMessage) |
NotEmptyXhtmlConstraint(String pErrorMessage,
String pTagName)
Constructs a constraint that makes sure that the content of the given field is never a empty tag with the given name.
|
Modifier and Type | Method and Description |
---|---|
String |
getTagName() |
boolean |
isValid(Object pValue) |
describeError, equals, hashCode, toString
public static final String CLASS_VERSION
public NotEmptyXhtmlConstraint(String pErrorMessage, String pTagName)
pErrorMessage
- the error message to display if this constraint is not met.pTagName
- The name of the tag that is not allowed to be empty.public NotEmptyXhtmlConstraint(String pErrorMessage)
public boolean isValid(Object pValue)
isValid
in class Constraint
public String getTagName()
© 1998- 2021 Escenic AS