|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.acsinet_solutions.util.build.Checks
public final class Checks
Build checking utility methods
| Constructor Summary | |
|---|---|
Checks()
|
|
| Method Summary | |
|---|---|
static void |
checkNotEmpty(java.lang.String field,
java.util.Collection list)
Check the given List is not empty. |
static void |
checkNotEmpty(java.lang.String field,
java.util.Map map)
Check the given Map is not empty. |
static void |
checkNotEmpty(java.lang.String field,
java.lang.String str)
Check the given str is not empty. |
static void |
checkNotNull(java.lang.String field,
java.lang.Object obj)
Check the given Object is not null. |
static void |
checkNotNullOrEmpty(java.lang.String field,
java.util.Collection collection)
Check the given Collection is not null or empty. |
static void |
checkNotNullOrEmpty(java.lang.String field,
java.lang.String str)
Check the given String is not null or empty. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Checks()
| Method Detail |
|---|
public static void checkNotEmpty(java.lang.String field,
java.lang.String str)
throws BuildException
field - The not-null name of the fieldstr - The not-null String instance to test
BuildException - Thrown if the test failed
public static void checkNotEmpty(java.lang.String field,
java.util.Collection list)
throws BuildException
field - The not-null name of the fieldlist - The not-null List instance to test
BuildException - Thrown if the test failed
public static void checkNotEmpty(java.lang.String field,
java.util.Map map)
throws BuildException
field - The not-null name of the fieldmap - The not-null Map instance to test
BuildException - Thrown if the test failed
public static void checkNotNull(java.lang.String field,
java.lang.Object obj)
throws BuildException
field - The not-null name of the fieldobj - The not-null Object instance to test
BuildException - Thrown if the test failed
public static void checkNotNullOrEmpty(java.lang.String field,
java.lang.String str)
throws BuildException
field - The not-null name of the fieldobj - The String reference to test
BuildException - Thrown if the test failed
public static void checkNotNullOrEmpty(java.lang.String field,
java.util.Collection collection)
throws BuildException
field - The not-null name of the fieldobj - The String reference to test
BuildException - Thrown if the test failed
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||