gov.nasa.pds.harvest.inventory
Class ReferenceEntry

java.lang.Object
  extended by gov.nasa.pds.harvest.inventory.ReferenceEntry

public class ReferenceEntry
extends Object

Class that holds metadata of an association.

Author:
mcayanan

Constructor Summary
ReferenceEntry()
          Constructor.
 
Method Summary
 String getAssociationType()
          Get the association type.
 File getFile()
          Gets the file.
 String getGuid()
           
 int getLineNumber()
          Gets the line number.
 String getLogicalID()
          Get the logical identifier.
 String getObjectType()
          Get the referenced object type.
 String getVersion()
          Get the version.
 boolean hasGuid()
          Determines if the guid has been set.
 boolean hasVersion()
          Flag to indicate if the association contains a version.
 void setAssociationType(String type)
          Set the association type.
 void setFile(File file)
          Sets the file associated with the reference entry.
 void setGuid(String guid)
          Set the guid.
 void setLineNumber(int num)
          Sets the line number associated with the reference entry.
 void setLogicalID(String id)
          Set the logical identifier.
 void setObjectType(String type)
          Set the reference object type.
 void setVersion(String ver)
          Set the version.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReferenceEntry

public ReferenceEntry()
Constructor.

Method Detail

getLogicalID

public String getLogicalID()
Get the logical identifier.

Returns:
A LID.

setLogicalID

public void setLogicalID(String id)
Set the logical identifier.

Parameters:
id - A LID.

getVersion

public String getVersion()
Get the version.

Returns:
A version ID.

setVersion

public void setVersion(String ver)
Set the version.

Parameters:
ver - A version ID.

hasVersion

public boolean hasVersion()
Flag to indicate if the association contains a version.

Returns:
'true' if the association has a LID-VID reference.

getAssociationType

public String getAssociationType()
Get the association type.

Returns:
An association type.

setAssociationType

public void setAssociationType(String type)
Set the association type.

Parameters:
type - An association type.

getObjectType

public String getObjectType()
Get the referenced object type.

Returns:
A referenced object type.

setObjectType

public void setObjectType(String type)
Set the reference object type.

Parameters:
type - A type.

setFile

public void setFile(File file)
Sets the file associated with the reference entry.

Parameters:
file - The file.

getFile

public File getFile()
Gets the file.

Returns:
The file.

setLineNumber

public void setLineNumber(int num)
Sets the line number associated with the reference entry.

Parameters:
num - A line number.

getLineNumber

public int getLineNumber()
Gets the line number.

Returns:
The line number.

getGuid

public String getGuid()

setGuid

public void setGuid(String guid)
Set the guid.

Parameters:
guid - A guid.

hasGuid

public boolean hasGuid()
Determines if the guid has been set.

Returns:
true if the guid is not null.


Copyright © 2010-2011 Planetary Data System. All Rights Reserved.