
com.phoenixnap.oss.ramlapisync.generation.rules.spring.SpringValidatedClassAnnotationRule Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of springmvc-raml-parser Show documentation
Show all versions of springmvc-raml-parser Show documentation
Components including the parsing of RAML documents and Spring MVC Annotations to create RAML models
package com.phoenixnap.oss.ramlapisync.generation.rules.spring;
import org.springframework.validation.annotation.Validated;
import com.phoenixnap.oss.ramlapisync.data.ApiResourceMetadata;
import com.phoenixnap.oss.ramlapisync.generation.rules.Rule;
import com.sun.codemodel.JAnnotationUse;
import com.sun.codemodel.JDefinedClass;
public class SpringValidatedClassAnnotationRule implements Rule {
@Override
public JAnnotationUse apply(ApiResourceMetadata controllerMetadata, JDefinedClass generatableType) {
return generatableType.annotate(Validated.class);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy