public final class IDs extends Object
Modifier and Type | Method and Description |
---|---|
static void |
check(String id,
Pattern regexp)
Validate that ID matches regexp Pattern passed as argument.
|
static void |
checkOnlyAZ09(String id)
Validate that ID matches regular expression
[a-zA-Z][a-zA-Z0-9]*
(upper or lower case letter or digits, but not start with digit, no dots). |
static void |
checkOnlyAZ09Dot(String id)
Validate that ID matches regular expression
[a-zA-Z0-9][a-zA-Z0-9.]* (dots allowed, but not starting with). |
static void |
checkOnlyAZ09Underscore(String id)
Validate that ID matches regular expression
[a-zA-Z][a-zA-Z0-9_]* (underscores allowed, but not starting with; no dots). |
static void |
checkOnlyLowercaseAZ09(String id)
Validate that ID matches regular expression
[a-z][a-z0-9]*
(lower case letter or digits, but not start with digit, no dots). |
public static void checkOnlyLowercaseAZ09(String id)
[a-z][a-z0-9]*
(lower case letter or digits, but not start with digit, no dots).IllegalArgumentException
- if not matching expected reg exp.public static void checkOnlyAZ09(String id)
[a-zA-Z][a-zA-Z0-9]*
(upper or lower case letter or digits, but not start with digit, no dots).IllegalArgumentException
- if not matching expected reg exp.public static void checkOnlyAZ09Underscore(String id)
[a-zA-Z][a-zA-Z0-9_]*
(underscores allowed, but not starting with; no dots).IllegalArgumentException
- if not matching expected reg exp.public static void checkOnlyAZ09Dot(String id)
[a-zA-Z0-9][a-zA-Z0-9.]*
(dots allowed, but not starting with).IllegalArgumentException
- if not matching expected reg exp.public static void check(String id, Pattern regexp)
IllegalArgumentException
- if not matching expected reg exp.Copyright © 2019 OpenDaylight. All rights reserved.