List of usage examples for org.apache.commons.lang Validate notEmpty
public static void notEmpty(String string)
Validate an argument, throwing IllegalArgumentException
if the argument String is empty (null
or zero length).
Validate.notEmpty(myString);
The message in the exception is 'The validated string is empty'.
From source file:com.vmware.identity.authz.RoleCheckFactory.java
public static <R extends Enum<R>> RoleCheck<R> createRoleCheck(Map<PrincipalId, R> groupKeyRoleValue, PrincipalDiscovery pd) {/*from w w w . j av a 2 s .c o m*/ Validate.notEmpty(groupKeyRoleValue); Validate.notNull(pd); return new RoleCheckBase<R>(groupKeyRoleValue, pd); }
From source file:it.filosganga.mobile.widgets.component.TableColumn.java
public TableColumn(String label, String shortLabel, int colspan) { Validate.notEmpty(label); Validate.isTrue(colspan >= 1);/*from w w w. j a v a2 s.c o m*/ this.label = label; this.shortLabel = shortLabel; this.colspan = colspan; }
From source file:ar.com.zauber.garfio.modules.mock.model.MockIssue.java
/** constructor */ public MockIssue(final String id) { Validate.notEmpty(id); this.id = id; }
From source file:com.homeadvisor.kafdrop.model.ConsumerVO.java
public ConsumerVO(String groupId) { Validate.notEmpty("groupId is required"); this.groupId = groupId; }
From source file:io.tilt.minka.utils.CircularCollection.java
public CircularCollection(final Collection<T> collection) { Validate.notEmpty(collection); source = collection; }
From source file:ar.com.zauber.commons.dao.predicate.InPredicate.java
/** Creates the EqualsPredicate. */ public InPredicate(final List<T> target) { Validate.notEmpty(target); this.target = target; }
From source file:ar.com.zauber.commons.repository.query.aggreate.PropertyAggregateFunction.java
/** @param property nombre de la propiedad */ public PropertyAggregateFunction(final String property) { Validate.notEmpty(property); this.property = property; }
From source file:ar.com.zauber.commons.spring.beans.factory.impl.MockHostnameProvider.java
/** * Creates the MockHostnameProvider./*from ww w .ja v a 2s . c o m*/ * * @param hostname hostname */ public MockHostnameProvider(final String hostname) { Validate.notEmpty(hostname); this.hostname = hostname; }
From source file:com.vmware.identity.sts.ws.WSFaultException.java
public WSFaultException(FaultKey key, String message) { super(message); Validate.notNull(key); Validate.notEmpty(message); this.key = key; }
From source file:com.useekm.fulltext.Word.java
/** * This constructor is called for prefix-search-words such as 'xyz*' (for lookup of words starting with xyz). * The grammar makes am operator out of the star, hence it can be removed from the lexical token. */// ww w .j a va 2 s . co m public Word(String word, boolean removeOperator) { Validate.notEmpty(word); Validate.isTrue(!removeOperator || (word.length() >= 2 && word.endsWith("*"))); if (removeOperator) this.word = word.substring(0, word.length() - 1); else this.word = word; }