public void validateName ( final String name ) { Validate . validState ( TENANT_NAME_VALIDATOR_PATTERN . matcher ( name ) . matches ( ) , "Invalid tenant name '%s' -- names must match %s ." , name , TENANT_NAME_VALIDATOR_REGEX ) ; }
Throws an exception if the specified String isn t a valid tenant name .