public class CkanToZenodoUtil extends Object
| Constructor and Description |
|---|
CkanToZenodoUtil() |
| Modifier and Type | Method and Description |
|---|---|
static List<String> |
getNames(Enum<?>[] arrayEnum)
Gets the names.
|
static boolean |
isNotEmpty(String value)
Checks if is not empty.
|
static <E extends ZenodoLicense> |
toSerializableEnum(List<E> selectedLicense,
List<E> allLicenses)
To serializable enum.
|
static <T extends Enum<T>> |
toSerializableEnum(T[] enumSelected,
T[] enumValues)
To serializable enum.
|
public static List<String> getNames(Enum<?>[] arrayEnum)
arrayEnum - the list valuespublic static <T extends Enum<T>> SerializableEnum<String> toSerializableEnum(T[] enumSelected, T[] enumValues)
T - the generic typeenumSelected - the enum selectedenumValues - the enum valuespublic static <E extends ZenodoLicense> SerializableEnum<E> toSerializableEnum(List<E> selectedLicense, List<E> allLicenses)
E - the element typeselectedLicense - the selected licenseallLicenses - the all licensespublic static boolean isNotEmpty(String value)
value - the valueCopyright © 2021. All Rights Reserved.