blob: 105703b6adb69ab5fbc50b371c323d7621bce537 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
package org.onap.nbi.apis.serviceorder.serviceordervalidator;
import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;
@Target({ElementType.TYPE, ElementType.ANNOTATION_TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = ServiceOrderValidator.class)
@Documented
public @interface ValidServiceOrder {
String message() default "one of orderItem action is not add : serviceOrderItem.service.id is mandatory.";
Class<?>[] groups() default {};
Class<? extends Payload>[] payload() default {};
}
|