Class FormValidationInterceptor.Field
java.lang.Object
com.predic8.membrane.core.config.AbstractXmlElement
com.predic8.membrane.core.interceptor.formvalidation.FormValidationInterceptor.Field
- All Implemented Interfaces:
XMLElement
- Enclosing class:
- FormValidationInterceptor
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()getRegex()booleanmatchesSubstring(String input) protected voidparseAttributes(XMLStreamReader token) voidvoidvoidwrite(XMLStreamWriter out) Methods inherited from class com.predic8.membrane.core.config.AbstractXmlElement
doAfterParsing, getBoolean, getElementName, move2RootElementIfNeeded, parse, parseCharacters, parseChildren, toXml, writeIfNotNull
-
Field Details
-
name
-
regex
-
-
Constructor Details
-
Field
public Field()
-
-
Method Details
-
matchesSubstring
-
parseAttributes
- Overrides:
parseAttributesin classAbstractXmlElement- Throws:
Exception
-
write
- Specified by:
writein interfaceXMLElement- Overrides:
writein classAbstractXmlElement- Throws:
XMLStreamException
-
getName
-
setName
- Description
- Name of the form parameter.
- Example
- age
-
getRegex
-
setRegex
- Description
- Java Regular expression
- Example
- \d+
-