public class NameValidator extends Object
| Constructor and Description |
|---|
NameValidator() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isValidCacheName(String name)
Returns whether the specified name is valid for a cache.
|
static boolean |
isValidKeyName(String name)
Returns whether the specified name is valid for a key.
|
static boolean |
isValidPartitionIdentifier(String name)
Returns whether the specified name is valid for a partition identifier.
|
static boolean |
isValidProductIdentifier(String name)
Returns whether the specified name is valid for a product identifier.
|
static String |
requireValidCacheName(String name)
Verifies that the specified name is valid for a cache, and throws an
IllegalArgumentException if it
not. |
static String |
requireValidKeyName(String name)
Verifies that the specified name is valid for a key, and throws an
IllegalArgumentException if it
not. |
static String |
requireValidPartitionIdentifier(String name)
Verifies that the specified name is valid for a partition identifier,
and throws an
IllegalArgumentException if it not. |
static String |
requireValidProductIdentifier(String name)
Verifies that the specified name is valid for a product identifier,
and throws an
IllegalArgumentException if it not. |
public static boolean isValidProductIdentifier(@Nullable String name)
name - the name to checkpublic static String requireValidProductIdentifier(@Nullable String name)
IllegalArgumentException if it not.name - the name to verifypublic static boolean isValidPartitionIdentifier(@Nullable String name)
name - the name to checkpublic static String requireValidPartitionIdentifier(@Nullable String name)
IllegalArgumentException if it not.name - the name to verifypublic static boolean isValidKeyName(@Nullable String name)
name - the name to checkpublic static String requireValidKeyName(@Nullable String name)
IllegalArgumentException if it
not.name - the name to verifypublic static boolean isValidCacheName(String name)
name - the name to checkpublic static String requireValidCacheName(String name)
IllegalArgumentException if it
not.name - the name to verifyCopyright © 2019 Atlassian. All rights reserved.