public enum DominoUtils extends Enum<DominoUtils>
Modifier and Type | Field and Description |
---|---|
static Pattern |
PATTERN_PROFILE_NAME
This pattern matches the internal format used for the note name in the
DominoAPI.FIELD_NAMED item. |
Modifier and Type | Method and Description |
---|---|
static String |
checksum(byte[] bytes,
String alg)
Checksum.
|
static String |
checksum(Serializable object,
String algorithm)
Checksum.
|
static String |
getProfileForm(String profileName)
Extracts the form name from a given profile $Name value
|
static String |
getProfileUser(String profileName)
Extracts the user name from a given profile $Name value
|
static boolean |
isHex(CharSequence value)
Checks if is hex.
|
static boolean |
isUnid(CharSequence value)
Checks if is unid.
|
static String |
md5(Serializable object)
Md5.
|
static String |
toUnid(Serializable value)
To unid.
|
static DominoUtils |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DominoUtils[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Pattern PATTERN_PROFILE_NAME
DominoAPI.FIELD_NAMED
item.public static DominoUtils[] values()
for (DominoUtils c : DominoUtils.values()) System.out.println(c);
public static DominoUtils valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static String toUnid(Serializable value)
value
- the valuepublic static boolean isUnid(CharSequence value)
value
- the valuepublic static boolean isHex(CharSequence value)
value
- the valuepublic static String md5(Serializable object)
object
- the Serializable objectpublic static String checksum(Serializable object, String algorithm)
object
- the objectalgorithm
- the algorithmpublic static String checksum(byte[] bytes, String alg)
bytes
- the bytesalg
- the algpublic static String getProfileForm(String profileName)
profileName
- the profile key, from the $Name fieldnull
if the provided name is not a profile keyCopyright © 2014–2018. All rights reserved.