gov.nasa.pds.registry.model
Class Association

java.lang.Object
  extended by gov.nasa.pds.registry.model.Identifiable
      extended by gov.nasa.pds.registry.model.RegistryObject
          extended by gov.nasa.pds.registry.model.Association
All Implemented Interfaces:
Serializable

@Entity
public class Association
extends RegistryObject

This class allows one to relate a source and target registry object along a named relationship. The source and target can be identified by either the guid or the pairing of a lid vid. The home indicates where the registered originated.

Author:
pramirez
See Also:
Serialized Form

Constructor Summary
Association()
           
 
Method Summary
 boolean equals(Object obj)
           
 String getAssociationType()
           
 String getSourceGuid()
           
 String getSourceHome()
           
 String getSourceLid()
           
 String getSourceVersionId()
           
 String getTargetGuid()
           
 String getTargetHome()
           
 String getTargetLid()
           
 String getTargetVersionId()
           
 int hashCode()
           
 void setAssociationType(String associationType)
           
 void setSourceGuid(String sourceGuid)
           
 void setSourceHome(String sourceHome)
           
 void setSourceLid(String sourceLid)
           
 void setSourceVersionId(String sourceVersionId)
           
 void setTargetGuid(String targetGuid)
           
 void setTargetHome(String targetHome)
           
 void setTargetLid(String targetLid)
           
 void setTargetVersionId(String targetVersionId)
           
 
Methods inherited from class gov.nasa.pds.registry.model.RegistryObject
getDescription, getLid, getName, getObjectType, getStatus, getVersionId, getVersionName, setDescription, setLid, setName, setObjectType, setStatus, setVersionId, setVersionName
 
Methods inherited from class gov.nasa.pds.registry.model.Identifiable
getGuid, getHome, getSlots, setGuid, setHome, setSlots
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Association

public Association()
Method Detail

getSourceLid

public String getSourceLid()
Returns:
the local identifier of the source artifact

setSourceLid

public void setSourceLid(String sourceLid)
Parameters:
sourceLid - the local identifier of the source artifact

getSourceVersionId

public String getSourceVersionId()
Returns:
the version of the source artifact

setSourceVersionId

public void setSourceVersionId(String sourceVersionId)
Parameters:
sourceVersion - the version of the source's local identifier

getTargetLid

public String getTargetLid()
Returns:
the local identifier of the target artifact

setTargetLid

public void setTargetLid(String targetLid)
Parameters:
targetLid - the local identifier of the target artifact

getTargetVersionId

public String getTargetVersionId()
Returns:
the version of the target artifact

setTargetVersionId

public void setTargetVersionId(String targetVersionId)
Parameters:
targetVersionId - the version of the target's local identifier

getAssociationType

public String getAssociationType()
Returns:
the type of association that exists between the source and target artifact

setAssociationType

public void setAssociationType(String associationType)
Parameters:
associationType - the type of association between the source and target

getSourceGuid

public String getSourceGuid()

setSourceGuid

public void setSourceGuid(String sourceGuid)

getSourceHome

public String getSourceHome()

setSourceHome

public void setSourceHome(String sourceHome)

getTargetGuid

public String getTargetGuid()

setTargetGuid

public void setTargetGuid(String targetGuid)

getTargetHome

public String getTargetHome()

setTargetHome

public void setTargetHome(String targetHome)

hashCode

public int hashCode()
Overrides:
hashCode in class RegistryObject

equals

public boolean equals(Object obj)
Overrides:
equals in class RegistryObject


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