Example usage for org.apache.commons.lang BooleanUtils toBooleanDefaultIfNull

List of usage examples for org.apache.commons.lang BooleanUtils toBooleanDefaultIfNull

Introduction

In this page you can find the example usage for org.apache.commons.lang BooleanUtils toBooleanDefaultIfNull.

Prototype

public static boolean toBooleanDefaultIfNull(Boolean bool, boolean valueIfNull) 

Source Link

Document

Converts a Boolean to a boolean handling null.

 BooleanUtils.toBooleanDefaultIfNull(Boolean.TRUE, false) = true BooleanUtils.toBooleanDefaultIfNull(Boolean.FALSE, true) = false BooleanUtils.toBooleanDefaultIfNull(null, true)          = true 

Usage

From source file:com.adaptris.core.CloneMessageServiceList.java

boolean overrideMetadata() {
    return BooleanUtils.toBooleanDefaultIfNull(getOverrideMetadata(), false);
}

From source file:com.adaptris.core.AdaptrisMessageWorkerImp.java

@Override
public boolean isConfirmation() {
    return BooleanUtils.toBooleanDefaultIfNull(getIsConfirmation(), false);
}

From source file:com.adaptris.core.jms.JmsConsumerImpl.java

boolean isTransacted() {
    return isManagedTransaction() || BooleanUtils.toBooleanDefaultIfNull(getTransacted(), false);
}

From source file:info.magnolia.cms.gui.dialog.DialogMultiSelect.java

public String getSaveInfo() {
    Boolean renderSaveInfo = BooleanUtils.toBooleanObject(this.getConfigValue("saveInfo"));
    if (BooleanUtils.toBooleanDefaultIfNull(renderSaveInfo, true)) {
        ControlImpl dummy = new ControlImpl(this.getName(), (String) null);
        if (!isSaveAsList() && !isSaveAsJSON()) {
            dummy.setValueType(ControlImpl.VALUETYPE_MULTIPLE);
        }/* w w  w.j a va2  s .  co m*/
        return dummy.getHtmlSaveInfo();
    }
    // don' create the save info
    return "";
}

From source file:com.adaptris.core.ServiceCollectionImp.java

/**
 *
 * @see com.adaptris.core.MessageEventGenerator#isTrackingEndpoint()
 *///from w w w. ja v a2 s .c  o  m
@Override
public boolean isTrackingEndpoint() {
    return BooleanUtils.toBooleanDefaultIfNull(getIsTrackingEndpoint(), false);
}

From source file:com.adaptris.core.services.jdbc.ResultSetTranslatorImp.java

protected boolean isDisplayColumnErrors() {
    return BooleanUtils.toBooleanDefaultIfNull(getDisplayColumnErrors(), false);
}

From source file:com.adaptris.core.ServiceCollectionImp.java

/**
 *
 * @see com.adaptris.core.MessageEventGenerator#isConfirmation()
 *//*w w  w .  j a va2  s.co m*/
@Override
public boolean isConfirmation() {
    return BooleanUtils.toBooleanDefaultIfNull(getIsConfirmation(), false);
}

From source file:com.adaptris.core.http.jetty.ResponseProducerImpl.java

protected boolean sendPayload() {
    return BooleanUtils.toBooleanDefaultIfNull(getSendPayload(), true);
}

From source file:com.adaptris.core.services.jdbc.XmlPayloadTranslator.java

private boolean isPreserveOriginalMessage() {
    return BooleanUtils.toBooleanDefaultIfNull(getPreserveOriginalMessage(), false);
}

From source file:com.adaptris.core.services.exception.ExceptionAsXml.java

private boolean ignoreXmlParseExceptions() {
    return BooleanUtils.toBooleanDefaultIfNull(getIgnoreXmlParseExceptions(), false);
}