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

de.datexis.sector.model.WikiDocument Maven / Gradle / Ivy

There is a newer version: 1.3.3
Show newest version
package de.datexis.sector.model;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import de.datexis.model.Document;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * Extension of Document to include a dedicated Abstract section.
 * @author Sebastian Arnold 
 */
@JsonPropertyOrder({ "id", "type", "title", "abstract", "text", "annotations" })
@JsonIgnoreProperties({"begin", "length", "language"})
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "class", defaultImpl=WikiDocument.class)
public class WikiDocument extends Document {

  protected final static Logger log = LoggerFactory.getLogger(WikiDocument.class);

  protected String abstr;

  public String getAbstract() {
    return abstr;
  }

  public void setAbstract(String abstr) {
    this.abstr = abstr;
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy