Modifier and Type | Method and Description |
---|---|
static ConvertibleNut |
findByName(ConvertibleNut nut,
String nutName)
Finds a nut with a name matching the given path.
|
static ConvertibleNut |
findByName(List<ConvertibleNut> nuts,
String name)
Finds a nut with a name matching the given path.
|
static Long |
getVersionNumber(List<? extends Nut> nuts)
Computes the version number based on version number retrieved from given nuts.
|
static Long |
getVersionNumber(Nut nut)
Gets the version number from the given nut.
|
static String |
readTransform(ConvertibleNut n)
Reads the result of the transformation process configured on the
Nut . |
public static ConvertibleNut findByName(ConvertibleNut nut, String nutName)
Finds a nut with a name matching the given path.
nut
- the nut to testnutName
- the nutNamenull
if not foundpublic static ConvertibleNut findByName(List<ConvertibleNut> nuts, String name)
Finds a nut with a name matching the given path.
nuts
- the nuts to iterate to findname
- the nut namenull
if not foundpublic static Long getVersionNumber(Nut nut)
Gets the version number from the given nut.
nut
- the nutpublic static Long getVersionNumber(List<? extends Nut> nuts)
Computes the version number based on version number retrieved from given nuts.
nuts
- the nutspublic static String readTransform(ConvertibleNut n) throws IOException
Reads the result of the transformation process configured on the Nut
. If the Nut
is compressed,
then the result if uncompressed to return a readable string.
n
- the nutIOException
- if transformation failsCopyright © 2012-2015. All Rights Reserved.