|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.composite.util.Assert
net.sf.morph.util.Assert
public abstract class Assert
Assertions built using Morph.
Nested Class Summary | |
---|---|
protected static interface |
Assert.Validator
|
Constructor Summary | |
---|---|
Assert()
|
Method Summary | |
---|---|
protected static void |
contentsAssertion(Assert.Validator validator,
java.lang.Object container,
java.lang.String message)
|
static void |
contentsNotEmpty(java.lang.Object container)
Throws an exception if any object in the given container is empty, as defined by ObjectUtils.isEmpty(Object) . |
static void |
contentsNotNull(java.lang.Object container)
Throws an exception if any object in the given container is null . |
Methods inherited from class net.sf.composite.util.Assert |
---|
notEmpty, notNull |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Assert()
Method Detail |
---|
protected static void contentsAssertion(Assert.Validator validator, java.lang.Object container, java.lang.String message)
public static void contentsNotNull(java.lang.Object container)
null
.
container
- any container for which Morph provides a
ContainerReflector
java.lang.IllegalArgumentException
- if any object in the container is null
public static void contentsNotEmpty(java.lang.Object container)
ObjectUtils.isEmpty(Object)
.
container
- any container for which Morph provides a
ContainerReflector
java.lang.IllegalArgumentException
- if any object in the container is empty, as defined by
ObjectUtils.isEmpty(Object)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |