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

com.github.jsonldjava.core.RemoteDocument Maven / Gradle / Ivy

There is a newer version: 0.12.3
Show newest version
package com.github.jsonldjava.core;

/**
 * Encapsulates a URL along with the parsed resource matching the URL.
 *
 * @author Tristan King
 */
public class RemoteDocument {
    private final String documentUrl;
    private final Object document;

    /**
     * Create a new RemoteDocument with the URL and the parsed resource for the
     * document.
     *
     * @param url
     *            The URL
     * @param document
     *            The parsed resource for the document
     */
    public RemoteDocument(String url, Object document) {
        this.documentUrl = url;
        this.document = document;
    }

    /**
     * Get the URL for this document.
     *
     * @return The URL for this document, as a String
     */
    public String getDocumentUrl() {
        return documentUrl;
    }

    /**
     * Get the parsed resource for this document.
     *
     * @return The parsed resource for this document
     */
    public Object getDocument() {
        return document;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy