public class RuleRegistration extends Object
| Constructor and Description |
|---|
RuleRegistration(String name) |
| Modifier and Type | Method and Description |
|---|---|
RuleRegistration |
acceptedPattern(String acceptedPattern)
Java
Pattern to validate values. |
RuleRegistration |
componentType(String componentType)
Determine the component type for which apply the validation rule.
|
protected Validation |
getRule() |
RuleRegistration |
rejectedPattern(String rejectedPattern)
Java
Pattern to validate values. |
public RuleRegistration(String name)
public RuleRegistration componentType(String componentType)
Determine the component type for which apply the validation rule.
Some options are, 'text' and 'textarea'.
componentType - Type of the component.public RuleRegistration acceptedPattern(String acceptedPattern)
Java Pattern to validate values.
Contains the whitelist validation.
acceptedPattern - Accepter patternpublic RuleRegistration rejectedPattern(String rejectedPattern)
Java Pattern to validate values.
Contains the blacklist validation.
rejectedPattern - Rejected patternprotected Validation getRule()
Copyright © 2018 hdiv.org. All rights reserved.