Java Code Examples for org.apache.commons.lang.StringUtils#isWhitespace()
The following examples show how to use
org.apache.commons.lang.StringUtils#isWhitespace() .
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 File: RolePermission.java From rice with 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 File: EntityEmail.java From rice with 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 3
Source File: EntityExternalIdentifierType.java From rice with 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 File: EntityPhone.java From rice with 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 5
Source File: EntityVisa.java From rice with 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 6
Source File: EntityAffiliation.java From rice with 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 File: EntityAffiliationType.java From rice with 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 8
Source File: Group.java From rice with 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 9
Source File: RoleResponsibilityAction.java From rice with 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 10
Source File: RoleResponsibility.java From rice with 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 11
Source File: Principal.java From rice with 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 12
Source File: RolePermission.java From rice with 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 13
Source File: ActionItem.java From rice with 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 14
Source File: ActionRequest.java From rice with 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 15
Source File: ActionTaken.java From rice with 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 16
Source File: EntityCitizenship.java From rice with 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 17
Source File: Rule.java From rice with 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 File: RuleResponsibility.java From rice with 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 19
Source File: RuleTemplateAttribute.java From rice with 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 20
Source File: CodedAttribute.java From rice with 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; }