Class InventoryEntry
java.lang.Object
gov.nasa.pds.validate.inventory.reader.InventoryEntry
public class InventoryEntry extends Object
Class representation of a single entry in a PDS Inventory file.
- Author:
- mcayanan
-
Constructor Summary
Constructors Constructor Description InventoryEntry()
Default constructorInventoryEntry(File file, String checksum, String identifier, String memberStatus)
Constructor.InventoryEntry(String identifier, String memberStatus)
Constructor. -
Method Summary
Modifier and Type Method Description String
getChecksum()
Gets the checksum.File
getFile()
Gets the file.String
getIdentifier()
Gets the logical identifier.String
getMemberStatus()
Gets the member status.boolean
isEmpty()
Determines whether the object is empty.
-
Constructor Details
-
InventoryEntry
public InventoryEntry()Default constructor -
InventoryEntry
Constructor.- Parameters:
identifier
- logical identifier.memberStatus
- member status.
-
InventoryEntry
Constructor.- Parameters:
file
- A product file.checksum
- checksum.identifier
- logical identifier.
-
-
Method Details
-
getFile
Gets the file.- Returns:
- The file.
-
getChecksum
Gets the checksum.- Returns:
- Checksum value.
-
getIdentifier
Gets the logical identifier.- Returns:
- A LID or LIDVID.
-
getMemberStatus
Gets the member status.- Returns:
- "P", "Primary", "S", or "Secondary"
-
isEmpty
public boolean isEmpty()Determines whether the object is empty.- Returns:
- true if the object is empty, false otherwise.
-