All Downloads are FREE. Search and download functionalities are using the official Maven repository.

tech.grasshopper.pdf.data.AttributeData Maven / Gradle / Ivy

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 getAttributes();

	@Getter
	@Builder
	public static class AuthorData extends AttributeData {

		@Default
		private List authors = new ArrayList<>();

		@Override
		public List getAttributes() {
			return authors;
		}
	}

	@Getter
	@Builder
	public static class DeviceData extends AttributeData {

		@Default
		private List devices = new ArrayList<>();

		@Override
		public List getAttributes() {
			return devices;
		}
	}

	@Getter
	@Builder
	public static class TagData extends AttributeData {

		@Default
		private List tags = new ArrayList<>();

		@Override
		public List getAttributes() {
			return tags;
		}
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy