public interface RegexElement
Element.validate() and/or Element.buildAttribute(org.symphonyoss.symphony.messageml.MessageMLParser, Node) and/or Element.asPresentationML(XmlPrintStream, org.symphonyoss.symphony.messageml.MessageMLContext)
without calling super, it is needed to manage manually PATTERN_ATTR and PATTERN_ERROR_MESSAGE_ATTR in these methods| Modifier and Type | Field and Description |
|---|---|
static List<String> |
ALL_REGEX_ATTRS |
static String |
ATTRIBUTE_MANDATORY_WHEN_ATTRIBUTE_DEFINED_ERR |
static String |
ATTRIBUTE_TOO_LONG_ERR |
static String |
PATTERN_ATTR |
static String |
PATTERN_ERROR_MESSAGE_ATTR |
static int |
PATTERN_ERROR_MESSAGE_MAX_LENGTH |
static int |
PATTERN_MAX_LENGTH |
static String |
PRESENTATIONML_PATTERN_ERROR_MESSAGE_ATTR |
static String |
REGEX_NOT_VALID_ERR |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttribute(String attr) |
Map<String,String> |
getAttributes() |
default Map<String,String> |
getOtherAttributes() |
default Map<String,String> |
getRegexAttrForPresentationML()
Process MessageML attributes to build a map of regex related attributes for PresentationML
|
default void |
validateRegex()
Validate regex (it is called automatically by
when this method is not overridden |
static final String PATTERN_ATTR
static final String PATTERN_ERROR_MESSAGE_ATTR
static final String PRESENTATIONML_PATTERN_ERROR_MESSAGE_ATTR
static final int PATTERN_MAX_LENGTH
static final int PATTERN_ERROR_MESSAGE_MAX_LENGTH
static final String ATTRIBUTE_MANDATORY_WHEN_ATTRIBUTE_DEFINED_ERR
static final String ATTRIBUTE_TOO_LONG_ERR
static final String REGEX_NOT_VALID_ERR
default void validateRegex()
throws InvalidInputException
when this method is not overriddenInvalidInputExceptiondefault Map<String,String> getRegexAttrForPresentationML()
default Map<String,String> getOtherAttributes()
Copyright © 2020 The Symphony Software Foundation. All rights reserved.