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 check out the related API usage on the sidebar.
Example 1
Source Project: rice File: RolePermission.java License: Educational Community License v2.0 | 5 votes |
@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
Source Project: rice File: EntityExternalIdentifierType.java License: Educational Community License v2.0 | 4 votes |
public void setCode(String code) { if (StringUtils.isWhitespace(code)) { throw new IllegalArgumentException("code is empty"); } this.code = code; }
Example 3
Source Project: rice File: CodedAttribute.java License: Educational Community License v2.0 | 4 votes |
public void setCode(String code) { if (StringUtils.isWhitespace(code)) { throw new IllegalArgumentException("code is empty"); } this.code = code; }
Example 4
Source Project: rice File: RuleTemplateAttribute.java License: Educational Community License v2.0 | 4 votes |
public void setId(String id) { if (StringUtils.isWhitespace(id)) { throw new IllegalArgumentException("id was whitespace"); } this.id = id; }
Example 5
Source Project: rice File: RuleResponsibility.java License: Educational Community License v2.0 | 4 votes |
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 |
public void setId(String id) { if (StringUtils.isWhitespace(id)) { throw new IllegalArgumentException("id is blank"); } this.id = id; }
Example 7
Source Project: rice File: EntityCitizenship.java License: Educational Community License v2.0 | 4 votes |
public void setId(String id) { if (StringUtils.isWhitespace(id)) { throw new IllegalArgumentException("id is blank"); } this.id = id; }
Example 8
Source Project: rice File: ActionTaken.java License: Educational Community License v2.0 | 4 votes |
public void setId(String id) { if (StringUtils.isWhitespace(id)) { throw new IllegalArgumentException("id was blank"); } this.id = id; }
Example 9
Source Project: rice File: ActionRequest.java License: Educational Community License v2.0 | 4 votes |
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 |
public void setId(String id) { if (StringUtils.isWhitespace(id)) { throw new IllegalArgumentException("id is blank"); } this.id = id; }
Example 11
Source Project: rice File: RolePermission.java License: Educational Community License v2.0 | 4 votes |
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 |
public void setPrincipalId(String principalId) { if (StringUtils.isWhitespace(principalId)) { throw new IllegalArgumentException("principalId is blank"); } this.principalId = principalId; }
Example 13
Source Project: rice File: RoleResponsibility.java License: Educational Community License v2.0 | 4 votes |
public void setRoleResponsibilityId(String roleResponsibilityId) { if (StringUtils.isWhitespace(roleResponsibilityId)) { throw new IllegalArgumentException("roleResponsibilityId cannot be whitespace"); } this.roleResponsibilityId = roleResponsibilityId; }
Example 14
Source Project: rice File: RoleResponsibilityAction.java License: Educational Community License v2.0 | 4 votes |
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 |
public void setId(String id) { if (StringUtils.isWhitespace(id)) { throw new IllegalArgumentException("id is blank"); } this.id = id; }
Example 16
Source Project: rice File: EntityAffiliationType.java License: Educational Community License v2.0 | 4 votes |
public void setCode(String code) { if (StringUtils.isWhitespace(code)) { throw new IllegalArgumentException("code is empty"); } this.code = code; }
Example 17
Source Project: rice File: EntityAffiliation.java License: Educational Community License v2.0 | 4 votes |
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 |
public void setId(String id) { if (StringUtils.isWhitespace(id)) { throw new IllegalArgumentException("id is blank"); } this.id = id; }
Example 19
Source Project: rice File: EntityPhone.java License: Educational Community License v2.0 | 4 votes |
public void setId(String id) { if (StringUtils.isWhitespace(id)) { throw new IllegalArgumentException("id is blank"); } this.id = id; }
Example 20
Source Project: rice File: EntityEmail.java License: Educational Community License v2.0 | 4 votes |
public void setId(String id) { if (StringUtils.isWhitespace(id)) { throw new IllegalArgumentException("id is blank"); } this.id = id; }