tech.grasshopper.pdf.data.AttributeData Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cucumber-pdf-report Show documentation
Show all versions of cucumber-pdf-report Show documentation
Generates Cucumber execution report in PDF format
The newest version!
package tech.grasshopper.pdf.data;
import java.util.ArrayList;
import java.util.List;
import lombok.Builder;
import lombok.Builder.Default;
import lombok.Getter;
import tech.grasshopper.pdf.pojo.cucumber.Attribute;
import tech.grasshopper.pdf.pojo.cucumber.Author;
import tech.grasshopper.pdf.pojo.cucumber.Device;
import tech.grasshopper.pdf.pojo.cucumber.Tag;
public abstract class AttributeData implements DisplayData {
public abstract List extends Attribute> getAttributes();
@Getter
@Builder
public static class AuthorData extends AttributeData {
@Default
private List authors = new ArrayList<>();
@Override
public List extends Attribute> getAttributes() {
return authors;
}
}
@Getter
@Builder
public static class DeviceData extends AttributeData {
@Default
private List devices = new ArrayList<>();
@Override
public List extends Attribute> getAttributes() {
return devices;
}
}
@Getter
@Builder
public static class TagData extends AttributeData {
@Default
private List tags = new ArrayList<>();
@Override
public List extends Attribute> getAttributes() {
return tags;
}
}
}