public class SchemaNameValidator extends Object
Modifier and Type | Field and Description |
---|---|
static Pattern |
OPTIONALLY_DELIMITED_UNICODE_WORD_PATTERN |
static String |
OPTIONALLY_DELIMITED_UNICODE_WORD_REGEX |
Constructor and Description |
---|
SchemaNameValidator() |
Modifier and Type | Method and Description |
---|---|
static void |
assertValid(String schemaName)
Asserts the specified schema name is valid.
|
static boolean |
isValid(String schemaName)
Validates the specified schema name.
|
public static final String OPTIONALLY_DELIMITED_UNICODE_WORD_REGEX
public static final Pattern OPTIONALLY_DELIMITED_UNICODE_WORD_PATTERN
public static boolean isValid(String schemaName)
"
)'
)[]
)`
)_
")schemaName
- the schema name String to be validatedpublic static void assertValid(String schemaName)
isValid(String)
.schemaName
- the schema name String to be validatedIllegalArgumentException
- if the specified schema name is not valid according to isValid(String)
}
OACC is a Java Application Security Framework developed by Acciente, LLC..
Copyright 2009-2016, Acciente, LLC.All rights reserved.