com.xlrit.gears.base.function.DisplayedAs Maven / Gradle / Ivy
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;
}
}