Class IDs
java.lang.Object
org.opendaylight.serviceutils.metrics.IDs
Validations for "ID" like simple types.
- Author:
- Michael Vorburger.ch
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
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
Validate that ID matches regular expression[a-zA-Z0-9][a-zA-Z0-9.]*
(dots allowed, but not starting with).static void
Validate that ID matches regular expression[a-zA-Z][a-zA-Z0-9_]*
(underscores allowed, but not starting with; no dots).static void
Validate that ID matches regular expression[a-z][a-z0-9]*
(lower case letter or digits, but not start with digit, no dots).
-
Method Details
-
checkOnlyLowercaseAZ09
Validate that ID matches regular expression[a-z][a-z0-9]*
(lower case letter or digits, but not start with digit, no dots).- Throws:
IllegalArgumentException
- if not matching expected reg exp.
-
checkOnlyAZ09
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).- Throws:
IllegalArgumentException
- if not matching expected reg exp.
-
checkOnlyAZ09Underscore
Validate that ID matches regular expression[a-zA-Z][a-zA-Z0-9_]*
(underscores allowed, but not starting with; no dots).- Throws:
IllegalArgumentException
- if not matching expected reg exp.
-
checkOnlyAZ09Dot
Validate that ID matches regular expression[a-zA-Z0-9][a-zA-Z0-9.]*
(dots allowed, but not starting with).- Throws:
IllegalArgumentException
- if not matching expected reg exp.
-
check
Validate that ID matches regexp Pattern passed as argument.- Throws:
IllegalArgumentException
- if not matching expected reg exp.
-