org.weborganic.bastille.flint.helpers
Class IndexNames
java.lang.Object
org.weborganic.bastille.flint.helpers.IndexNames
public final class IndexNames
- extends Object
A utility class to handle index names.
- Since:
- 0.8.9
Method Summary |
static boolean |
isValid(String name)
Indicates whether this specified name is a valid index name. |
isValid
public static boolean isValid(String name)
- Indicates whether this specified name is a valid index name.
A valid name can only contain the following characters:
[A-Z]
[a-z]
[0-9]
$
@
-
_
.
- Parameters:
name
- The name of the index.
- Returns:
true
if the name is considered valid and can be used as an index name;
false
otherwise.