|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.maven.exceptions.conf.ConfigUtils
public final class ConfigUtils
This class provides utilities to discover source files.
Method Summary | |
---|---|
static void |
checkCollectionValueProvided(StringBuilder buffer, Collection<?> value, String message) Checks that the Collection value is provided. |
static void |
checkStringValueProvided(StringBuilder buffer, String value, String message) Checks that the String value is provided. |
static void |
checkValueProvided(StringBuilder buffer, Object value, String message) Checks that the Object value is provided. |
static String |
discoverSourceDirectory(String classRootDirectoryName) Dispatches the given name and tries to find a source directory for it. |
static Collection<String> |
discoverSourceJars(Collection<String> classRootDirectoryNames) Checks each name if it references a library and if this is the case tries to find a source archive for the class archive. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Collection<String> discoverSourceJars(Collection<String> classRootDirectoryNames)
classRootDirectoryNames
- the root directory names for the class archives (may be directories or files).
public static String discoverSourceDirectory(String classRootDirectoryName) throws NullPointerException
classRootDirectoryName
- the name that references an archive with classes.
null
if no such archive has been found.
NullPointerException
- if the argument is
null
.
public static void checkStringValueProvided(StringBuilder buffer, String value, String message)
String
value is provided. If not, the given message will be appended to the given buffer.
buffer
- the buffer to append the
message
to, if
value
is blank.
value
- the value that must not be blank.
message
- the validation failure message.
public static void checkValueProvided(StringBuilder buffer, Object value, String message)
Object
value is provided. If not, the given message will be appended to the given buffer.
buffer
- the buffer to append the
message
to, if
value
is
null
.
value
- the value that must not be
null
.
message
- the validation failure message.
public static void checkCollectionValueProvided(StringBuilder buffer, Collection<?> value, String message)
Collection
value is provided. If not, the given message will be appended to the given buffer.
buffer
- the buffer to append the
message
to, if
value
is
null
or empty.
value
- the value that must not be
null
or empty.
message
- the validation failure message.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |