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 getSourceObject()
           
 String getTargetObject()
           
 int hashCode()
           
 void setAssociationType(String associationType)
           
 void setSourceObject(String sourceObject)
           
 void setTargetObject(String targetObject)
           
 
Methods inherited from class gov.nasa.pds.registry.model.RegistryObject
getClassifications, getDescription, getExternalIdentifiers, getLid, getName, getObjectType, getStatus, getVersionName, setClassifications, setDescription, setExternalIdentifiers, setLid, setName, setObjectType, setStatus, setVersionName
 
Methods inherited from class gov.nasa.pds.registry.model.Identifiable
addSlot, getGuid, getHome, getSlot, 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

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

getSourceObject

public String getSourceObject()

setSourceObject

public void setSourceObject(String sourceObject)

getTargetObject

public String getTargetObject()

setTargetObject

public void setTargetObject(String targetObject)

hashCode

public int hashCode()
Overrides:
hashCode in class RegistryObject

equals

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


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