blob: dc8d98c9844dd80a47e0bdb12d5d71f7f222da90 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.hosted.controller.api.identifiers;
/**
* @author smorgrav
*/
public class TenantId extends NonDefaultIdentifier {
public TenantId(String id) {
super(id);
}
@Override
public void validate() {
super.validate();
validateNoUpperCase();
}
public static void validate(String id) {
if ( ! strictPattern.matcher(id).matches())
throwInvalidId(id, strictPatternExplanation);
new TenantId(id); // validate
}
}
|