io.polyapi.plugin.model.specification.function.ClientFunctionSpecification Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of polyapi-maven-plugin Show documentation
Show all versions of polyapi-maven-plugin Show documentation
Maven plugin to run handle Poly API functions.
package io.polyapi.plugin.model.specification.function;
import io.polyapi.plugin.model.visitor.PolySpecificationVisitor;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
public class ClientFunctionSpecification extends FunctionSpecification {
private String[] requirements;
private String code;
private String language;
@Override
protected String getSpecificationSubtype() {
return "client";
}
@Override
public void accept(PolySpecificationVisitor visitor) {
visitor.visit(this);
}
public boolean isJava() {
return "java".equals(language);
}
}