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

nl.vpro.domain.api.HighLight 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;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlType;
import java.util.Arrays;
import java.util.List;

/**
 * @author Michiel Meeuwissen
 * @since 2.0
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "hightlightType")
public class HighLight {


    @XmlAttribute
    private String term;

    private List body;

    public HighLight() {

    }

    public HighLight(String term, String... body) {
        this.term = term;
        this.body = Arrays.asList(body);

    }


    public String getTerm() {
        return term;
    }

    public List getBody() {
        return body;
    }

    @Override
    public String toString() {
        return term + ":" + body;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy