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

gov.nasa.pds.citool.file.FileObject Maven / Gradle / Ivy

Go to download

The Legacy Catalog Tool provides functionality for ingesting PDS3 catalog files into the PDS4 infrastructure including the Registry Service.

There is a newer version: 3.1.0
Show newest version
// $Id: FileObject.java 9719 2011-10-27 21:01:11Z mcayanan $
package gov.nasa.pds.citool.file;

import java.util.ArrayList;
import java.util.List;

/**
 * Class that contains file information to be used in registering file objects
 * to the PDS4 Registry.
 *
 * @author mcayanan, hyunlee
 *
 */
public class FileObject {
  
	/** File name. */
	private String name;

	/** File location. */
	private String location;

	/** File size. */
	private long size;

	/** File creation date time. */
	private String creationDateTime;

    /** md5 checksum. */
	private String checksum;

	/** The product identifier when registered to the PDS Storage Service. */
	private String storageServiceProductId;
  
	/** The access url of the transport service. */
	private String accessUrl;
  
	/**
	 * Constructor.
	 *
	 * @param name File name.
	 * @param location File location.
	 * @param size File size.
	 * @param creationDateTime File creation date time.
	 * @param checksum checksum of the file.
	 */
	public FileObject(String name, String location, long size,
			String creationDateTime, String checksum) {
		this.name = name;
		this.location = location;
		this.size = size;
		this.creationDateTime = creationDateTime;
		this.checksum = checksum;
		this.storageServiceProductId = null;
		this.accessUrl = null;
	}

	public String getName() {
		return name;
	}

	public String getLocation() {
		return location;
	}

	public long getSize() {
		return size;
	}

	public String getCreationDateTime() {
		return creationDateTime;
	}

	public String getChecksum() {
		return checksum;
	}

	public void setStorageServiceProductId(String productId) {
		this.storageServiceProductId = productId;
	}

	public String getStorageServiceProductId() {
		return storageServiceProductId;
	}

	public void setAccessUrl(String accessUrl) {
		this.accessUrl = accessUrl;
	}

	public String getAccessUrl() {
		return accessUrl;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy