fluent.api.generator.sender.FixtureBeanSimpleAccepter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fluent-api-generator-tests Show documentation
Show all versions of fluent-api-generator-tests Show documentation
Tests for fluent API generator.
They are deployed as maven plugin, which doesn't require the maven project, so they can be executed by anybody
simply by running:
mvn foundation.fluent.api:fluent-api-generator-project:run
package fluent.api.generator.sender;
import javax.annotation.Generated;
import fluent.api.End;
@Generated("Generated code using /fluent/api/templates/sender.jtwig")
public class FixtureBeanSimpleAccepter {
private final fluent.api.generator.sender.FixtureBean bean;
private final fluent.api.generator.sender.SenderFixtureInterface factory;
public FixtureBeanSimpleAccepter(fluent.api.generator.sender.SenderFixtureInterface factory, fluent.api.generator.sender.FixtureBean bean) {
this.factory = factory;
this.bean = bean;
}
public FixtureBeanSimpleAccepter firstName(java.lang.String value) {
this.bean.setFirstName(value);
return this;
}
public FixtureBeanSimpleAccepter lastName(java.lang.String value) {
this.bean.setLastName(value);
return this;
}
public FixtureBeanSimpleAccepter age(int value) {
this.bean.setAge(value);
return this;
}
public FixtureBeanSimpleAccepter children(java.util.List value) {
this.bean.setChildren(value);
return this;
}
public FixtureBeanSimpleAccepter array(int[] value) {
this.bean.setArray(value);
return this;
}
public FixtureBeanSimpleAccepter child(java.lang.String value) {
this.bean.addChild(value);
return this;
}
@End
public void simpleAccept() {
factory.accept(bean);
}
}