org.kuali.rice.krad.datadictionary.validation.constraint
Class NumericPatternConstraint

java.lang.Object
  extended by org.kuali.rice.krad.datadictionary.validation.constraint.BaseConstraint
      extended by org.kuali.rice.krad.datadictionary.validation.constraint.ValidCharactersConstraint
          extended by org.kuali.rice.krad.datadictionary.validation.constraint.ValidCharactersPatternConstraint
              extended by org.kuali.rice.krad.datadictionary.validation.constraint.AllowCharacterConstraint
                  extended by org.kuali.rice.krad.datadictionary.validation.constraint.NumericPatternConstraint
All Implemented Interfaces:
Serializable, Constraint

public class NumericPatternConstraint
extends AllowCharacterConstraint

Pattern for matching numeric characters, difference between NumericPatternConstraint and IntegerPatternConstraint is that a numeric pattern constraint is for matching numeric characters and can be mixed with other characters by setting allow flags on, while integer is for only positive/negative numbers

Author:
Kuali Rice Team (rice.collab@kuali.org)
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.kuali.rice.krad.datadictionary.validation.constraint.AllowCharacterConstraint
allowAll, allowAmpersand, allowApostrophe, allowAsterisk, allowAtSign, allowBackslash, allowBrackets, allowColon, allowComma, allowCurlyBraces, allowDash, allowDollar, allowDoubleQuote, allowEquals, allowExclaimation, allowForwardSlash, allowGreaterThan, allowLessThan, allowParenthesis, allowPercent, allowPeriod, allowPlus, allowPound, allowQuestionMark, allowSemiColon, allowUnderscore, allowWhitespace, omitNewline
 
Fields inherited from class org.kuali.rice.krad.datadictionary.validation.constraint.ValidCharactersConstraint
value
 
Fields inherited from class org.kuali.rice.krad.datadictionary.validation.constraint.BaseConstraint
applyClientSide, constraintStateOverrides, messageComponentCode, messageKey, messageNamespaceCode, states, validationMessageParams
 
Constructor Summary
NumericPatternConstraint()
           
 
Method Summary
 String getMessageKey()
          A key that is used to retrieve the constraint message text (used with the namespace and component code if specified)
protected  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)
 
Methods inherited from class org.kuali.rice.krad.datadictionary.validation.constraint.AllowCharacterConstraint
getAllowedCharacterRegex, getValidationMessageParams, isAllowAll, isAllowAmpersand, isAllowApostrophe, isAllowAsterisk, isAllowAtSign, isAllowBackslash, isAllowBrackets, isAllowColon, isAllowComma, isAllowCurlyBraces, isAllowDash, isAllowDollar, isAllowDoubleQuote, isAllowEquals, isAllowExclaimation, isAllowForwardSlash, isAllowGreaterThan, isAllowLessThan, isAllowParenthesis, isAllowPercent, isAllowPeriod, isAllowPlus, isAllowPound, isAllowQuestionMark, isAllowSemiColon, isAllowUnderscore, isAllowWhitespace, isOmitNewline, setAllowAll, setAllowAmpersand, setAllowApostrophe, setAllowAsterisk, setAllowAtSign, setAllowBackslash, setAllowBrackets, setAllowColon, setAllowComma, setAllowCurlyBraces, setAllowDash, setAllowDollar, setAllowDoubleQuote, setAllowEquals, setAllowExclaimation, setAllowForwardSlash, setAllowGreaterThan, setAllowLessThan, setAllowParenthesis, setAllowPercent, setAllowPeriod, setAllowPlus, setAllowPound, setAllowQuestionMark, setAllowSemiColon, setAllowUnderscore, setAllowWhitespace, setOmitNewline
 
Methods inherited from class org.kuali.rice.krad.datadictionary.validation.constraint.ValidCharactersPatternConstraint
getValue, setValue
 
Methods inherited from class org.kuali.rice.krad.datadictionary.validation.constraint.ValidCharactersConstraint
completeValidation
 
Methods inherited from class org.kuali.rice.krad.datadictionary.validation.constraint.BaseConstraint
getApplyClientSide, getConstraintStateOverrides, getMessageComponentCode, getMessageNamespaceCode, getStates, getValidationMessageParamsArray, setApplyClientSide, setConstraintStateOverrides, setMessageComponentCode, setMessageKey, setMessageNamespaceCode, setStates, setValidationMessageParams
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NumericPatternConstraint

public NumericPatternConstraint()
Method Detail

getRegexString

protected String getRegexString()
Description copied from class: ValidCharactersPatternConstraint
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)

Specified by:
getRegexString in class ValidCharactersPatternConstraint
Returns:
See Also:
ValidationPattern.getRegexString()

getMessageKey

public String getMessageKey()
Description copied from class: BaseConstraint
A key that is used to retrieve the constraint message text (used with the namespace and component code if specified)

Overrides:
getMessageKey in class BaseConstraint
Returns:
String message key
See Also:
BaseConstraint.getMessageKey()


Copyright © 2005-2014 The Kuali Foundation. All Rights Reserved.