org.kuali.student.r2.common.datadictionary.dto
Class ValidCharactersConstraintInfo.Builder

java.lang.Object
  extended by org.kuali.student.r2.common.datadictionary.dto.ValidCharactersConstraintInfo.Builder
All Implemented Interfaces:
Serializable, Constraint, BaseConstraintInfc, ValidCharactersConstraintInfc
Enclosing class:
ValidCharactersConstraintInfo

public static class ValidCharactersConstraintInfo.Builder
extends Object
implements ValidCharactersConstraintInfc

See Also:
Serialized Form

Constructor Summary
ValidCharactersConstraintInfo.Builder()
           
ValidCharactersConstraintInfo.Builder(ValidCharactersConstraintInfc vcc)
           
 
Method Summary
 ValidCharactersConstraintInfo build()
           
 Boolean getIsApplyClientSide()
          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.
 String getJsValue()
          Javascript version of the regex defined in value.
 String getLabelKey()
          LabelKey should be a single word key.
 String getValue()
          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.
 ValidCharactersConstraintInfo.Builder setApplyClientSide(Boolean applyClientSide)
           
 ValidCharactersConstraintInfo.Builder setJsValue(String jsValue)
           
 ValidCharactersConstraintInfo.Builder setLabelKey(String labelKey)
           
 ValidCharactersConstraintInfo.Builder setValue(String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValidCharactersConstraintInfo.Builder

public ValidCharactersConstraintInfo.Builder()

ValidCharactersConstraintInfo.Builder

public ValidCharactersConstraintInfo.Builder(ValidCharactersConstraintInfc vcc)
Method Detail

build

public ValidCharactersConstraintInfo build()

getJsValue

public String getJsValue()
Description copied from interface: ValidCharactersConstraintInfc
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
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

setJsValue

public ValidCharactersConstraintInfo.Builder setJsValue(String jsValue)

setValue

public ValidCharactersConstraintInfo.Builder setValue(String value)

getIsApplyClientSide

public Boolean getIsApplyClientSide()
Description copied from interface: BaseConstraintInfc
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:
getIsApplyClientSide in interface BaseConstraintInfc

getLabelKey

public String getLabelKey()
Description copied from interface: BaseConstraintInfc
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

setApplyClientSide

public ValidCharactersConstraintInfo.Builder setApplyClientSide(Boolean applyClientSide)

setLabelKey

public ValidCharactersConstraintInfo.Builder setLabelKey(String labelKey)


Copyright © 2004-2013 The Kuali Foundation. All Rights Reserved.