Java Code Examples for org.apache.commons.lang.StringUtils#isWhitespace()

The following examples show how to use org.apache.commons.lang.StringUtils#isWhitespace() . These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may want to check out the right sidebar which shows the related API usage.
Example 1
@Override
public RolePermission build() {
    if (versionNumber == null || versionNumber <= 0) {
        throw new IllegalStateException("versionNumber is invalid");
    }
    if (StringUtils.isWhitespace(id)) {
        throw new IllegalStateException("id is blank");
    }
    return new RolePermission(this);
}
 
Example 2
public void setCode(String code) {
    if (StringUtils.isWhitespace(code)) {
        throw new IllegalArgumentException("code is empty");
    }
    this.code = code;
}
 
Example 3
public void setCode(String code) {
    if (StringUtils.isWhitespace(code)) {
        throw new IllegalArgumentException("code is empty");
    }
    this.code = code;
}
 
Example 4
public void setId(String id) {
    if (StringUtils.isWhitespace(id)) {
        throw new IllegalArgumentException("id was whitespace");
    }
    this.id = id;
}
 
Example 5
public void setId(String id) {
    if (StringUtils.isWhitespace(id)) {
        throw new IllegalArgumentException("id is whitespace");
    }
    this.id = id;
}
 
Example 6
Source Project: rice   File: Rule.java    License: Educational Community License v2.0 4 votes vote down vote up
public void setId(String id) {
    if (StringUtils.isWhitespace(id)) {
        throw new IllegalArgumentException("id is blank");
    }
    this.id  = id;
}
 
Example 7
public void setId(String id) {
    if (StringUtils.isWhitespace(id)) {
        throw new IllegalArgumentException("id is blank");
    }
    this.id = id;
}
 
Example 8
public void setId(String id) {
    if (StringUtils.isWhitespace(id)) {
    	throw new IllegalArgumentException("id was blank");
    }
    this.id = id;
}
 
Example 9
public void setId(String id) {
    if (StringUtils.isWhitespace(id)) {
    	throw new IllegalArgumentException("id was null or blank");
    }
    this.id = id;
}
 
Example 10
Source Project: rice   File: ActionItem.java    License: Educational Community License v2.0 4 votes vote down vote up
public void setId(String id) {
    if (StringUtils.isWhitespace(id)) {
        throw new IllegalArgumentException("id is blank");
    }
    this.id = id;
}
 
Example 11
public void setId(final String id) {
    if (StringUtils.isWhitespace(id)) {
        throw new IllegalArgumentException("id is blank");
    }
    this.id = id;
}
 
Example 12
Source Project: rice   File: Principal.java    License: Educational Community License v2.0 4 votes vote down vote up
public void setPrincipalId(String principalId) {
    if (StringUtils.isWhitespace(principalId)) {
        throw new IllegalArgumentException("principalId is blank");
    }
    this.principalId = principalId;
}
 
Example 13
public void setRoleResponsibilityId(String roleResponsibilityId) {
    if (StringUtils.isWhitespace(roleResponsibilityId)) {
        throw new IllegalArgumentException("roleResponsibilityId cannot be whitespace");
    }
    this.roleResponsibilityId = roleResponsibilityId;
}
 
Example 14
public void setId(String id) {
    if (StringUtils.isWhitespace(id)) {
        throw new IllegalArgumentException("id must be not be whitespace");
    }
    this.id = id;
}
 
Example 15
Source Project: rice   File: Group.java    License: Educational Community License v2.0 4 votes vote down vote up
public void setId(String id) {
    if (StringUtils.isWhitespace(id)) {
        throw new IllegalArgumentException("id is blank");
    }
    this.id = id;
}
 
Example 16
public void setCode(String code) {
    if (StringUtils.isWhitespace(code)) {
        throw new IllegalArgumentException("code is empty");
    }
    this.code = code;
}
 
Example 17
public void setId(String id) {
    if (StringUtils.isWhitespace(id)) {
        throw new IllegalArgumentException("id is blank");
    }
    this.id = id;
}
 
Example 18
Source Project: rice   File: EntityVisa.java    License: Educational Community License v2.0 4 votes vote down vote up
public void setId(String id) {
    if (StringUtils.isWhitespace(id)) {
        throw new IllegalArgumentException("id is blank");
    }
    this.id = id;
}
 
Example 19
public void setId(String id) {
    if (StringUtils.isWhitespace(id)) {
        throw new IllegalArgumentException("id is blank");
    }
    this.id = id;
}
 
Example 20
public void setId(String id) {
    if (StringUtils.isWhitespace(id)) {
        throw new IllegalArgumentException("id is blank");
    }
    this.id = id;
}