public final class SdkServiceIdValidator extends AbstractValidator
MODEL_ERROR
Constructor and Description |
---|
SdkServiceIdValidator() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isPreviouslyReleasedInvalidServiceId(java.lang.String serviceId)
Checks if the given value is a previously released but
invalid service ID.
|
java.util.List<ValidationEvent> |
validate(Model model)
Validates a model and returns a list of validation events.
|
static void |
validateServiceId(java.lang.String serviceId)
Validates a service ID value.
|
createEvent, createEvent, danger, danger, error, error, getName, note, note, warning, warning
public java.util.List<ValidationEvent> validate(Model model)
Validator
model
- Model to validate.public static boolean isPreviouslyReleasedInvalidServiceId(java.lang.String serviceId)
serviceId
- Service ID value to check.public static void validateServiceId(java.lang.String serviceId)
serviceId
- Service ID to validate.java.lang.IllegalArgumentException
- if the service ID is invalid.