public class ProductFile
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.Date |
creationTime
Date product was created
|
protected java.lang.String |
id
Product ID (unique to product group)
|
static java.lang.String |
ID
CVS ID
|
protected java.lang.String |
path
Path to the image
|
protected HiProduct |
product
"Class" of product
|
protected boolean |
proffered
True if publicly released
|
protected java.lang.String |
ref
Refers to a related product ID
|
protected long |
size
File size in bytes
|
protected ProductFileType |
type
The type of this file
|
protected int |
version
Version number
|
Constructor and Description |
---|
ProductFile(java.lang.String id,
HiProduct product,
ProductFileType type,
java.lang.String path,
int version,
boolean proffered)
Create a new image product with empty meta data.
|
ProductFile(java.lang.String id,
HiProduct product,
java.lang.String ref,
ProductFileType type,
java.lang.String path,
int version,
boolean proffered)
Create a new image product with empty meta data.
|
Modifier and Type | Method and Description |
---|---|
java.util.Date |
getCreationTime()
Get the file creation time value
|
java.lang.String |
getId()
Get the product ID string (not unique)
|
java.lang.String |
getPath()
Get the path
|
HiProduct |
getProduct()
Get the product (unique)
|
boolean |
getProffered()
Return true if this product file is proffered
|
long |
getSize()
Get the size in bytes
|
ProductFileType |
getType()
Return the type of this file
|
int |
getVersion()
Get the version number
|
void |
setCreationTime(java.util.Date creationTime)
Set the file creation time value
|
void |
setPath(java.lang.String path)
Set the path (disk location)
|
void |
setSize(long size)
Set the size in bytes
|
java.lang.String |
toString() |
public static final java.lang.String ID
protected transient long size
protected transient java.util.Date creationTime
protected transient java.lang.String path
protected transient ProductFileType type
protected transient java.lang.String id
protected transient HiProduct product
protected transient int version
protected transient boolean proffered
protected transient java.lang.String ref
public ProductFile(java.lang.String id, HiProduct product, ProductFileType type, java.lang.String path, int version, boolean proffered)
id
- The product IDproduct
- Unique IDtype
- file typepath
- locationversion
- version IDproffered
- true if released to PDSpublic ProductFile(java.lang.String id, HiProduct product, java.lang.String ref, ProductFileType type, java.lang.String path, int version, boolean proffered)
id
- The product IDproduct
- Unique IDref
- Reference product IDtype
- file typepath
- locationversion
- version IDproffered
- true if released to PDSpublic java.lang.String getId()
public HiProduct getProduct()
public java.lang.String toString()
toString
in class java.lang.Object
public int getVersion()
public void setPath(java.lang.String path)
path
- file pathpublic java.lang.String getPath()
public long getSize()
public void setSize(long size)
size
- bytespublic java.util.Date getCreationTime()
public void setCreationTime(java.util.Date creationTime)
creationTime
- time of file creationpublic ProductFileType getType()
public boolean getProffered()
Copyright \ (C) Arizona Board of Regents on behalf of the \ Planetary Image Research Laboratory, Lunar and \ Planetary Laboratory at the University of Arizona