org.kuali.rice.krad.datadictionary.validation.constraint
Class ValidCharactersPatternConstraint
java.lang.Object
org.kuali.rice.krad.datadictionary.DictionaryBeanBase
org.kuali.rice.krad.datadictionary.validation.constraint.BaseConstraint
org.kuali.rice.krad.datadictionary.validation.constraint.ValidCharactersConstraint
org.kuali.rice.krad.datadictionary.validation.constraint.ValidCharactersPatternConstraint
- All Implemented Interfaces:
- Serializable, Cloneable, Copyable, DictionaryBean, Constraint
- Direct Known Subclasses:
- AllowCharacterConstraint, AnyCharacterPatternConstraint, CharsetPatternConstraint, UTF8AnyCharacterPatternConstraint
public abstract class ValidCharactersPatternConstraint
- extends ValidCharactersConstraint
This abstract class extends from ValidCharactersConstraint. Its subclasses contain a regex that
is built out with flags that can be turned off and on. All ValidCharactersPatternConstraints
allow a certain set of characters to be repeated multiple times
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
- See Also:
- Serialized Form
Method Summary |
protected abstract String |
getRegexString()
This method returns a string representing a regex with characters to match, this string
should not include the start(^) and end($) symbols or any length related symbols (*, {0,},
etc) |
String |
getValue()
The Java based regex for valid characters
This value should include the ^ and $ symbols if needed |
void |
setValue(String value)
Warning: This value should NOT be set on ValidCharactersPatternConstraints as the value is
built dynamically from the flags set on the constraint - if this value IS set it will
override any automatic generation and only use that which was set through this method for
server side validation |
Methods inherited from class org.kuali.rice.krad.datadictionary.validation.constraint.BaseConstraint |
getApplyClientSide, getConstraintStateOverrides, getMessageComponentCode, getMessageKey, getMessageNamespaceCode, getStates, getValidationMessageParams, getValidationMessageParamsArray, setApplyClientSide, setConstraintStateOverrides, setMessageComponentCode, setMessageKey, setMessageNamespaceCode, setStates, setValidationMessageParams |
ValidCharactersPatternConstraint
public ValidCharactersPatternConstraint()
setValue
public void setValue(String value)
- Warning: This value should NOT be set on ValidCharactersPatternConstraints as the value is
built dynamically from the flags set on the constraint - if this value IS set it will
override any automatic generation and only use that which was set through this method for
server side validation
- Overrides:
setValue
in class ValidCharactersConstraint
- Parameters:
value
- the value to set- See Also:
ValidCharactersConstraint.setValue(java.lang.String)
getValue
public String getValue()
- Description copied from class:
ValidCharactersConstraint
- The Java based regex for valid characters
This value should include the ^ and $ symbols if needed
- Overrides:
getValue
in class ValidCharactersConstraint
- Returns:
- the value
- See Also:
ValidCharactersConstraint.getValue()
getRegexString
protected abstract String getRegexString()
- This method returns a string representing a regex with characters to match, this string
should not include the start(^) and end($) symbols or any length related symbols (*, {0,},
etc)
- Returns:
- regular expression
Copyright © 2005–2014 The Kuali Foundation. All rights reserved.