Class RemoteDocument

java.lang.Object
com.github.jsonldjava.core.RemoteDocument

public class RemoteDocument extends Object
Encapsulates a URL along with the parsed resource matching the URL.
  • Field Details

    • documentUrl

      private final String documentUrl
    • document

      private final Object document
  • Constructor Details

    • RemoteDocument

      public RemoteDocument(String url, Object document)
      Create a new RemoteDocument with the URL and the parsed resource for the document.
      Parameters:
      url - The URL
      document - The parsed resource for the document
  • Method Details

    • getDocumentUrl

      public String getDocumentUrl()
      Get the URL for this document.
      Returns:
      The URL for this document, as a String
    • getDocument

      public Object getDocument()
      Get the parsed resource for this document.
      Returns:
      The parsed resource for this document