org.kuali.student.datadictionary.dto
Class ValidCharactersConstraintInfo
java.lang.Object
org.kuali.student.datadictionary.dto.ValidCharactersConstraintInfo
- All Implemented Interfaces:
- Serializable, org.kuali.rice.kns.datadictionary.validation.constraint.Constraint, BaseConstraintInfc, ValidCharactersConstraintInfc
public class ValidCharactersConstraintInfo
- extends Object
- implements ValidCharactersConstraintInfc, Serializable
- See Also:
- Serialized Form
Method Summary |
String |
getJsValue()
Name: Java Script Value
Javascript version of the regex defined in value. |
String |
getLabelKey()
Name: Label Key
LabelKey should be a single word key. |
String |
getValue()
Name: Value
The Java based regex for valid characters
There are two forms:
regex:xxxxx
and just
xxxx
If the 2nd form then it is interpreted as a simple list of valid characters. |
Boolean |
isApplyClientSide()
Name: Apply Client Side
If this is true, the constraint should be applied on the client side when the user interacts with
a field - if this constraint can be interpreted for client side use. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
value
private String value
jsValue
private String jsValue
applyClientSide
private Boolean applyClientSide
labelKey
private String labelKey
ValidCharactersConstraintInfo
public ValidCharactersConstraintInfo()
ValidCharactersConstraintInfo
private ValidCharactersConstraintInfo(ValidCharactersConstraintInfc infc)
getJsValue
public String getJsValue()
- Description copied from interface:
ValidCharactersConstraintInfc
- Name: Java Script Value
Javascript version of the regex defined in value. This does not have to be set if this constraint's
key maps to one of the default valid character methods contained in jQuery - (insert that list here).
This must be set if there is NO default method that matches the label key and applyClientSide is true.
This is completely ignored if applyClientSide is set to false.
- Specified by:
getJsValue
in interface ValidCharactersConstraintInfc
getValue
public String getValue()
- Description copied from interface:
ValidCharactersConstraintInfc
- Name: Value
The Java based regex for valid characters
There are two forms:
regex:xxxxx
and just
xxxx
If the 2nd form then it is interpreted as a simple list of valid characters.
Note: it is actualy converted to a regular expression by wrapping it in [].
- Specified by:
getValue
in interface ValidCharactersConstraintInfc
isApplyClientSide
public Boolean isApplyClientSide()
- Description copied from interface:
BaseConstraintInfc
- Name: Apply Client Side
If this is true, the constraint should be applied on the client side when the user interacts with
a field - if this constraint can be interpreted for client side use. Default is true.
- Specified by:
isApplyClientSide
in interface BaseConstraintInfc
getLabelKey
public String getLabelKey()
- Description copied from interface:
BaseConstraintInfc
- Name: Label Key
LabelKey should be a single word key. This key is used to find a message to use for this
constraint from available messages. The key is also used for defining/retrieving validation method
names when applicable - as such this key MUST exist for valid character constraints.
- Specified by:
getLabelKey
in interface BaseConstraintInfc
Copyright © 2007-2011 The Kuali Foundation. All Rights Reserved.