Class Reference


  • public class Reference
    extends Object
    A source referenced by the answer
    • Constructor Detail

      • Reference

        public Reference()
    • Method Detail

      • getIndex

        public int getIndex()
        Returns the reference index.
        Returns:
        reference index
      • getOriginalIndex

        public int getOriginalIndex()
        Returns the original index in the source list, before any reranking.
        Returns:
        original reference index
      • getRefType

        public String getRefType()
        Returns the reference kind, e.g. "NewsArticle".
        Returns:
        reference kind
      • getId

        public String getId()
        Returns the reference id.
        Returns:
        reference id
      • getTitle

        public String getTitle()
        Returns the reference title. Often empty at the top level — the human-readable title usually lives in getContent().
        Returns:
        reference title
      • getUrl

        public String getUrl()
        Returns the reference URL. Often empty at the top level — see getContent().
        Returns:
        reference URL
      • getContent

        public String getContent()
        Returns the full reference payload as sent by the server ( source, description, published_at, source_url, source_logo, kind, …), as JSON text. Kept as raw JSON because the field set varies by getRefType().
        Returns:
        full reference payload (JSON text), or null