Example usage for org.apache.commons.lang NullArgumentException NullArgumentException

List of usage examples for org.apache.commons.lang NullArgumentException NullArgumentException

Introduction

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

Prototype

public NullArgumentException(String argName) 

Source Link

Document

Instantiates with the given argument name.

Usage

From source file:com.eyeq.pivot4j.datasource.WrappingOlapDataSource.java

public WrappingOlapDataSource(DataSource dataSource) {
    if (dataSource == null) {
        throw new NullArgumentException("dataSource");
    }//from  w w w . ja  v  a2  s  .c  o m

    this.dataSource = dataSource;
}

From source file:com.eyeq.pivot4j.ui.impl.ConfigurablePropertyCollector.java

/**
 * @param propertyNames/*from   ww  w  . java  2s  .  c o m*/
 */
public ConfigurablePropertyCollector(List<String> propertyNames) {
    if (propertyNames == null) {
        throw new NullArgumentException("propertyNames");
    }

    this.propertyNames = propertyNames;
}

From source file:com.eyeq.pivot4j.ui.property.AbstractProperty.java

/**
 * Default public constructor.//  w w  w.j a va  2 s. c o m
 * 
 * @param name
 * @param value
 */
public AbstractProperty(String name) {
    if (name == null) {
        throw new NullArgumentException("name");
    }

    this.name = name;
}

From source file:com.eyeq.pivot4j.util.MarkupWriter.java

/**
 * @param writer/*  w  w w.j a v  a  2s. c  om*/
 */
public MarkupWriter(Writer writer) {
    if (writer == null) {
        throw new NullArgumentException("writer");
    }

    this.writer = new PrintWriter(writer);
}

From source file:com.eyeq.pivot4j.transform.AbstractTransform.java

/**
 * @param queryAdapter//from   ww  w. jav  a 2s .c  o  m
 * @param connection
 */
public AbstractTransform(QueryAdapter queryAdapter, OlapConnection connection) {
    if (queryAdapter == null) {
        throw new NullArgumentException("queryAdapter");
    }

    if (connection == null) {
        throw new NullArgumentException("connection");
    }

    this.queryAdapter = queryAdapter;
    this.connection = connection;
}

From source file:com.wavemaker.testsupport.UtilTest.java

public static void unlockSemaphore(String semaphoreLock) throws Exception {

    if (semaphoreLock == null) {
        throw new NullArgumentException("semaphoreLock");
    }/*from   w  w w  . j a  v  a 2s .  c om*/

    new File(semaphoreLock).delete();
}

From source file:com.eyeq.pivot4j.util.OlapUtils.java

/**
 * @param cube//from w ww .jav  a 2s  . c  om
 */
public OlapUtils(Cube cube) {
    if (cube == null) {
        throw new NullArgumentException("cube");
    }

    this.cube = cube;
}

From source file:com.eyeq.pivot4j.util.MemberSelection.java

/**
 * @param cube//from   w  ww . j a va2s.  c  o m
 */
public MemberSelection(Cube cube) {
    super(null);

    if (cube == null) {
        throw new NullArgumentException("cube");
    }

    this.cube = cube;
}

From source file:m.c.m.proxyma.resource.ProxymaHttpHeader.java

/**
 * The default constructor for this class.<br/>
 * It doesnt accept a null value as name.<br/>
 * NOTE: It accepts a null value as "value" but will store an empty string.
 * /*from   w  w w .  j  av a 2  s. c  o m*/
 * @param name the header name
 * @param value the value of the header
 * @throws NullArgumentException if the name is null
 */
public ProxymaHttpHeader(String name, String value) throws NullArgumentException {
    if (name == null || name.trim().equals(""))
        throw new NullArgumentException("I can't build an HttpHeader with a null or empty name.");
    this.name = name.trim();
    if (value == null)
        this.value = "";
    else
        this.value = value.trim();
}

From source file:it.geosolutions.geoserver.jms.impl.handlers.catalog.CatalogUtils.java

/**
 * @param info/*from w w  w  .ja v  a 2 s  .  com*/
 * @param catalog
 * @return the local workspace if found or the passed one (localized)
 */
public static WorkspaceInfo localizeWorkspace(final WorkspaceInfo info, final Catalog catalog) {
    if (info == null || catalog == null)
        throw new NullArgumentException("Arguments may never be null");

    final WorkspaceInfo localObject = catalog.getWorkspaceByName(info.getName());
    if (localObject != null) {
        return localObject;
    }

    final CatalogBuilder builder = new CatalogBuilder(catalog);
    builder.attach(info);

    return info;

}