io.takari.builder.internal.model.MapParameter Maven / Gradle / Ivy
package io.takari.builder.internal.model;
import io.takari.builder.Parameter;
public class MapParameter extends AbstractParameter {
private final Parameter annotation;
/**
* @param element is the originating element of the map parameter
* @param type is the type of the originating element
*/
public MapParameter(MemberAdapter element, TypeAdapter type) {
super(element, type);
this.annotation = element.getAnnotation(Parameter.class);
}
@Override
public Parameter annotation() {
return annotation;
}
@Override
public boolean required() {
return annotation != null && annotation.required();
}
@Override
public void accept(BuilderMetadataVisitor visitor) {
visitor.visitMap(this);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy