nl.vpro.domain.api.HighLight Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of api-domain Show documentation
Show all versions of api-domain Show documentation
Contains the objects used by the Frontend API, like forms and result objects
The newest version!
package nl.vpro.domain.api;
import java.util.Arrays;
import java.util.List;
import jakarta.xml.bind.annotation.*;
/**
* @author Michiel Meeuwissen
* @since 2.0
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "highlightType")
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