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

pl.fhframework.model.forms.attributes.Attribute Maven / Gradle / Ivy

There is a newer version: 4.10.401
Show newest version
package pl.fhframework.model.forms.attributes;

import com.fasterxml.jackson.annotation.JsonIgnore;
import pl.fhframework.Binding;
import pl.fhframework.BindingResult;
import pl.fhframework.model.forms.Component;
import pl.fhframework.model.forms.Form;

public abstract class Attribute {

    @JsonIgnore
    private static final Binding BINDING = new Binding();

    public abstract T getValue();

    public abstract void setValue(T value);

    public abstract String getXmlValue();

    public abstract T getDefaultValue();

    protected String convertBindingToString(BindingResult bindingResult) {
        return BINDING.convertBindingValueToString(bindingResult);
    }

    public Attribute(Form form, Component component) {
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy