Class ReferenceEntry
- java.lang.Object
- 
- gov.nasa.pds.harvest.search.inventory.ReferenceEntry
 
- 
 public class ReferenceEntry extends Object Class that holds metadata of an association.- Author:
- mcayanan
 
- 
- 
Constructor SummaryConstructors Constructor Description ReferenceEntry()Constructor.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description FilegetFile()Gets the file.StringgetGuid()intgetLineNumber()Gets the line number.StringgetLogicalID()Get the logical identifier.StringgetType()Get the reference type.StringgetVersion()Get the version.booleanhasGuid()Determines if the guid has been set.booleanhasVersion()Flag to indicate if the association contains a version.voidsetFile(File file)Sets the file associated with the reference entry.voidsetGuid(String guid)Set the guid.voidsetLineNumber(int num)Sets the line number associated with the reference entry.voidsetLogicalID(String id)Set the logical identifier.voidsetType(String type)Set the reference type.voidsetVersion(String ver)Set the version.
 
- 
- 
- 
Method Detail- 
getLogicalIDpublic String getLogicalID() Get the logical identifier.- Returns:
- A LID.
 
 - 
setLogicalIDpublic void setLogicalID(String id) Set the logical identifier.- Parameters:
- id- A LID.
 
 - 
getVersionpublic String getVersion() Get the version.- Returns:
- A version ID.
 
 - 
setVersionpublic void setVersion(String ver) Set the version.- Parameters:
- ver- A version ID.
 
 - 
hasVersionpublic boolean hasVersion() Flag to indicate if the association contains a version.- Returns:
- 'true' if the association has a LID-VID reference.
 
 - 
getTypepublic String getType() Get the reference type.- Returns:
- A type.
 
 - 
setTypepublic void setType(String type) Set the reference type.- Parameters:
- type- A type.
 
 - 
setFilepublic void setFile(File file) Sets the file associated with the reference entry.- Parameters:
- file- The file.
 
 - 
getFilepublic File getFile() Gets the file.- Returns:
- The file.
 
 - 
setLineNumberpublic void setLineNumber(int num) Sets the line number associated with the reference entry.- Parameters:
- num- A line number.
 
 - 
getLineNumberpublic int getLineNumber() Gets the line number.- Returns:
- The line number.
 
 - 
getGuidpublic String getGuid() 
 - 
setGuidpublic void setGuid(String guid) Set the guid.- Parameters:
- guid- A guid.
 
 - 
hasGuidpublic boolean hasGuid() Determines if the guid has been set.- Returns:
- true if the guid is not null.
 
 
- 
 
-