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 voidValidate that ID matches regexp Pattern passed as argument.static voidcheckOnlyAZ09(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 voidValidate that ID matches regular expression[a-zA-Z0-9][a-zA-Z0-9.]*(dots allowed, but not starting with).static voidValidate that ID matches regular expression[a-zA-Z][a-zA-Z0-9_]*(underscores allowed, but not starting with; no dots).static voidValidate 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.
-