本文整理汇总了Java中javax.validation.metadata.ValidateUnwrappedValue类的典型用法代码示例。如果您正苦于以下问题:Java ValidateUnwrappedValue类的具体用法?Java ValidateUnwrappedValue怎么用?Java ValidateUnwrappedValue使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ValidateUnwrappedValue类属于javax.validation.metadata包,在下文中一共展示了ValidateUnwrappedValue类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getValueUnwrapping
import javax.validation.metadata.ValidateUnwrappedValue; //导入依赖的package包/类
@Override
public ValidateUnwrappedValue getValueUnwrapping() {
throw new UnsupportedOperationException();
}
示例2: getConstraintDescriptor
import javax.validation.metadata.ValidateUnwrappedValue; //导入依赖的package包/类
@Required
@Override
public ConstraintDescriptor<?> getConstraintDescriptor() {
String methodName = "getConstraintDescriptor";
Method method;
try {
method = MockConstraintViolation.class.getMethod(methodName, new Class<?>[] {});
} catch (NoSuchMethodException | SecurityException e) {
throw new IllegalStateException("Failed to get the method: " + methodName, e);
}
Required annotation = method.getAnnotation(Required.class);
return new ConstraintDescriptor<Annotation>() {
@Override
public Annotation getAnnotation() {
return annotation;
}
@Override
public String getMessageTemplate() {
return null;
}
@Override
public Set<Class<?>> getGroups() {
return DfCollectionUtil.newHashSet(ClientError.class);
}
@Override
public Set<Class<? extends Payload>> getPayload() {
return null;
}
@Override
public ConstraintTarget getValidationAppliesTo() {
return null;
}
@Override
public List<Class<? extends ConstraintValidator<Annotation, ?>>> getConstraintValidatorClasses() {
return null;
}
@Override
public Map<String, Object> getAttributes() {
return null;
}
@Override
public Set<ConstraintDescriptor<?>> getComposingConstraints() {
return null;
}
@Override
public boolean isReportAsSingleViolation() {
return false;
}
@Override
public ValidateUnwrappedValue getValueUnwrapping() {
return null;
}
@Override
public <U> U unwrap(Class<U> type) {
return null;
}
};
}
示例3: getValueUnwrapping
import javax.validation.metadata.ValidateUnwrappedValue; //导入依赖的package包/类
@Override
public ValidateUnwrappedValue getValueUnwrapping() {
throw new UnsupportedOperationException(
"GWT Validation does not support getValueUnwrapping().");
}