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

com.xlrit.gears.base.function.DisplayedAs Maven / Gradle / Ivy

There is a newer version: 1.17.5
Show newest version
package com.xlrit.gears.base.function;

import com.xlrit.gears.base.meta.Attribute;
import com.xlrit.gears.base.meta.Attributes;
import com.xlrit.gears.base.meta.DataType;
import com.xlrit.gears.base.model.Tuple;

import lombok.Data;

@Data
@Attributes({"format", "value"}) // TODO move to .model
public class DisplayedAs implements Tuple {
	private String format;
	private Object value;

	public DisplayedAs(String format, Object value) {
		this.format = format;
		this.value = value;
	}

	@Attribute(formalName = "__format", type = DataType.TEXT, label = "format")
	public String getFormat() {
		return format;
	}

	public void setFormat(String format) {
		this.format = format;
	}

	@Attribute(formalName = "__value", type = DataType.TUPLE, label = "value")
	public Object getValue() {
		return value;
	}

	public void setValue(Object value) {
		this.value = value;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy