public final class ObjectNameValidator
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ObjectNameValidator.ObjectType |
Modifier and Type | Field and Description |
---|---|
static char[] |
ILLEGAL_SCOPED |
static char[] |
ILLEGAL_UNSCOPED |
static int |
MAX_SCOPED_NAME_LENGTH |
static int |
MAX_UNSCOPED_NAME_LENGTH |
Modifier and Type | Method and Description |
---|---|
static void |
validateScopedName(java.lang.String name)
Validate that a scoped object name is valid.
|
static void |
validateUnscopedName(java.lang.String name)
Validate that an unscoped object name is valid.
|
static void |
validateUnscopedName(java.lang.String name,
java.lang.String className,
ObjectNameValidator.ObjectType type) |
public static final char[] ILLEGAL_SCOPED
public static final char[] ILLEGAL_UNSCOPED
public static final int MAX_UNSCOPED_NAME_LENGTH
public static final int MAX_SCOPED_NAME_LENGTH
public static void validateScopedName(java.lang.String name)
name
- The name to checkInvalidNameException
- when the name is invalidpublic static void validateUnscopedName(java.lang.String name)
name
- The name to checkInvalidNameException
- when the name is invalidpublic static void validateUnscopedName(java.lang.String name, java.lang.String className, ObjectNameValidator.ObjectType type)