Search in sources :

Example 6 with BooleanFormatter

use of org.kuali.rice.core.web.format.BooleanFormatter in project cu-kfs by CU-CommunityApps.

the class BatchDisbursementVoucherNonResidentAlienTax method setForeignSourceIncomeCode.

/**
 * Takes a <code>String</code> and attempt to format as <code>Boolean</code> for setting the foreignSourceIncomeCode field
 *
 * @param foreignSourceIncomeCode as string
 */
public void setForeignSourceIncomeCode(String foreignSourceIncomeCode) {
    if (StringUtils.isNotBlank(foreignSourceIncomeCode)) {
        Boolean foreignSourceIncome = (Boolean) (new BooleanFormatter()).convertFromPresentationFormat(foreignSourceIncomeCode);
        super.setForeignSourceIncomeCode(foreignSourceIncome);
    }
}
Also used : BooleanFormatter(org.kuali.rice.core.web.format.BooleanFormatter)

Example 7 with BooleanFormatter

use of org.kuali.rice.core.web.format.BooleanFormatter in project cu-kfs by CU-CommunityApps.

the class BatchDisbursementVoucherDocument method setDisbVchrSpecialHandlingCode.

/**
 * Takes a <code>String</code> and attempt to format as <code>Boolean</code> for setting the disbVchrSpecialHandlingCode field
 *
 * @param disbVchrSpecialHandlingCode as string
 */
public void setDisbVchrSpecialHandlingCode(String disbVchrSpecialHandlingCode) {
    if (StringUtils.isNotBlank(disbVchrSpecialHandlingCode)) {
        Boolean disbVchrSpecialHandling = (Boolean) (new BooleanFormatter()).convertFromPresentationFormat(disbVchrSpecialHandlingCode);
        super.setDisbVchrSpecialHandlingCode(disbVchrSpecialHandling);
    }
}
Also used : BooleanFormatter(org.kuali.rice.core.web.format.BooleanFormatter)

Example 8 with BooleanFormatter

use of org.kuali.rice.core.web.format.BooleanFormatter in project cu-kfs by CU-CommunityApps.

the class BatchDisbursementVoucherDocument method setExceptionIndicator.

/**
 * Takes a <code>String</code> and attempt to format as <code>Boolean</code> for setting the exceptionIndicator field
 *
 * @param exceptionIndicator as string
 */
public void setExceptionIndicator(String exceptionIndicator) {
    if (StringUtils.isNotBlank(exceptionIndicator)) {
        Boolean exception = (Boolean) (new BooleanFormatter()).convertFromPresentationFormat(exceptionIndicator);
        super.setExceptionIndicator(exception);
    }
}
Also used : BooleanFormatter(org.kuali.rice.core.web.format.BooleanFormatter)

Example 9 with BooleanFormatter

use of org.kuali.rice.core.web.format.BooleanFormatter in project cu-kfs by CU-CommunityApps.

the class BatchIWantDocument method setGoods.

public void setGoods(String goods) {
    if (StringUtils.isNotBlank(goods)) {
        Boolean goodsB = (Boolean) (new BooleanFormatter()).convertFromPresentationFormat(goods);
        super.setGoods(goodsB);
    }
}
Also used : BooleanFormatter(org.kuali.rice.core.web.format.BooleanFormatter)

Example 10 with BooleanFormatter

use of org.kuali.rice.core.web.format.BooleanFormatter in project cu-kfs by CU-CommunityApps.

the class BatchIWantDocument method setSameAsInitiator.

public void setSameAsInitiator(String sameAsInitiator) {
    if (StringUtils.isNotBlank(sameAsInitiator)) {
        Boolean sameAsInitiatorB = (Boolean) (new BooleanFormatter()).convertFromPresentationFormat(sameAsInitiator);
        super.setSameAsInitiator(sameAsInitiatorB);
    }
}
Also used : BooleanFormatter(org.kuali.rice.core.web.format.BooleanFormatter)

Aggregations

BooleanFormatter (org.kuali.rice.core.web.format.BooleanFormatter)10 List (java.util.List)1 BeanPropertyComparator (org.kuali.kfs.krad.util.BeanPropertyComparator)1