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

nl.vpro.domain.api.FacetResultItem Maven / Gradle / Ivy

Go to download

Contains the objects used by the Frontend API, like forms and result objects

There is a newer version: 8.3.3
Show newest version
package nl.vpro.domain.api;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;

/**
 * @author Michiel Meeuwissen
 * @since 2.0
 */
@XmlAccessorType(XmlAccessType.FIELD)
public abstract class FacetResultItem {

    protected long count;

    private Boolean selected = null;

    protected FacetResultItem() {
    }

    protected FacetResultItem(long count) {
        this.count = count;
    }

    public abstract String getValue();

    public abstract void setValue(String name);

    public long getCount() {
        return count;
    }

    public void setCount(long l) {
        this.count = l;
    }


    public boolean isSelected() {
        return selected != null && selected;
    }

    public void setSelected(Boolean selected) {
        this.selected = selected == Boolean.FALSE ? null : selected;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy