public static class ValidateElement.RegexValidateElement extends ValidateElement
ValidateElement
ValidateElement.BasicValidateElement, ValidateElement.ListRange, ValidateElement.OpenValidateElement, ValidateElement.RangeValidateElement, ValidateElement.RegexValidateElement
Modifier and Type | Field and Description |
---|---|
static String |
METHOD |
DATATYPE_XS_STRING, ELEMENT, NAMESPACE
Constructor and Description |
---|
RegexValidateElement(String dataType,
String regex) |
Modifier and Type | Method and Description |
---|---|
protected void |
appendXML(XmlStringBuilder buf) |
void |
checkConsistency(FormField formField)
Check if this element is consistent according to the business rules in XEP=0122
|
String |
getRegex()
the expression is that defined for POSIX extended regular expressions, including support for Unicode.
|
checkListRangeConsistency, checkNonMultiConsistency, getDatatype, getElementName, getListRange, getNamespace, setListRange, toXML
public static final String METHOD
public RegexValidateElement(String dataType, String regex)
dataType
- regex
- ValidateElement.getDatatype()
public String getRegex()
protected void appendXML(XmlStringBuilder buf)
appendXML
in class ValidateElement
public void checkConsistency(FormField formField)
ValidateElement
checkConsistency
in class ValidateElement